[thelist] Two windows; child window reloads the parent.

Maximillian Schwanekamp lists at neptunewebworks.com
Mon Oct 10 03:22:23 CDT 2005


Maximillian Schwanekamp wrote:
> window.opener.reload(true);

Darr... guess it's late.  Like the others said, that should be 
window.opener.location.reload(true);
The true argument is to force a reload, even if the page is cached.

Why are you opening a new window anyway?  If you want a reload, have the 
link/button open the "little window" content in the main window, do its 
thing and then reload the original window.  Classic web app 
functionality, no javascript popups required.

<tip type="Multi-table updates in MySQL" author="Max Schwanekamp">
An often-missed feature MySQL 4+ supports is multi-table update queries. 
  Instead of doing a select query and then performing an update query 
for each row returned e.g. via a script for... or do...while loop; 
update a batch of records in one query by doing a multi-table update, 
which takes standard JOIN syntax.  E.g.:
UPDATE products p
INNER JOIN monthly_specials ms
ON ms.product_id = p.id
SET p.price = ms.sale_price
WHERE ms.month = '10'

Ref: http://dev.mysql.com/doc/mysql/en/update.html
</tip>
-- 
Max Schwanekamp
http://www.neptunewebworks.com/



More information about the thelist mailing list