Click to See Complete Forum and Search --> : refresh parent w/o asking


drewex
12-10-2003, 11:16 AM
Hi all

I need a to refresh my parent page from frame. But the parent has is a request and asks the message for refresh that I attached when i use the code below.

parent.location.reload(true);

I need to find some way to update the parent with out the message is there a way to do this. Thanks all.

little jim
12-10-2003, 02:06 PM
All you have to do is not refresh it in the standard way, you just say...
var loc=parent.location.href;
parent.location.href=loc;

simple.

drewex
12-10-2003, 02:49 PM
thanks for the help i think i could use this. thanks thanks thanks

fredmv
12-11-2003, 05:15 AM
Originally posted by little jim
var loc=parent.location.href;
parent.location.href=loc;Why would you use that when the location object already has a reload method built-in? I believe that dialog is a result of you passing the argument true to the function which supposedly causes a fresh request of the file from the server, and therefore opens that dialog. All you should need is:parent.location.reload();

drewex
12-11-2003, 11:03 AM
i tried all three it still asks.
parent.location.reload();
parent.location.reload(false);
parent.location.reload(true);