Click to See Complete Forum and Search --> : refresh
Alien Man
08-08-2003, 04:40 PM
Can anyone tel me how to refresh an <iframe> from another iframe this is driviing me nuts. I have tried a few different ways including
document.location.reload();
parent.(iframe).refresh();
window.opener.location.href="filename.html"
opener.location.reload(true);
window.opener.refresh("iframe");
parent.bottomNav.refresh();
window.opener.parent.history.go(0)
and I can't get it to work.
This is not on a web site but is a html mock up of a site for training purposes. I have been going nuts trying to figure it out.
I've also tried the onclick refresh() method and can't get it to work.
Thanks
Khalid Ali
08-08-2003, 05:39 PM
this will work..make sure you know the correct index number
parent.frames[frameIndex].location.reload()
Alien Man
08-08-2003, 06:02 PM
Kahlid,
There are underlying buttons that change color when refreshed the reload does reload but to the current state of the same colors for the buttons. What I need to do is to simulate an f5 press because colors on the buttons change when I do an f5. I guess I really just need to simulate an f5 for the css and current js to work the way I want it to.
Any ideas.
Thanks
Zero-x252
08-08-2003, 06:33 PM
whatever.execCommand('refresh')
Zero-x252
08-08-2003, 06:58 PM
oops 'Refresh"*
Alien Man
08-08-2003, 07:04 PM
Zero-x252
If you have no idea y reply just my own thought. If I had nothing to say that would help I wouldn't reply at all but then again that's me not YOU.
Khalid Ali
08-08-2003, 07:05 PM
Originally posted by Alien Man
Kahlid,
What I need to do is to simulate an f5 press because colors on the buttons change when I do an f5.
Thanks
the location.reload takes a boolean parameter
if you pass a true value then it forces the browser to get a fresh copy.
location.reload(true);
Alien Man
08-08-2003, 07:27 PM
Khalid,
This I know about the true param being passed I tried it both way's and it still didn't emulate an f5 press. I am on a very strict time limit and am working to no end to find the solution to this one and only glich in the whole 85+ pages of the training program. I would like very much to go to work on Monday and have this issue taken care of. What can I say I work on my weekends to get the job done my weekends are from Friday to Sunday. Hours are long but ya gotta love to do this stuff.
Thanks
Khalid Ali
08-08-2003, 07:30 PM
interesting...
you have a link..I'll be able to work on it later tonight or may bsome time tomorrow.However..there has to be something wrong...
How about meta tags..no-cache...?
Alien Man
08-08-2003, 07:41 PM
As much as I would like to post the code any where I am restricted to not being able to. I am on assigment with a fortune 100 company. If youare in the industrie you understand sorry. But I really would like to get this issue taken care of.
Thanks
Zero-x252
08-08-2003, 10:40 PM
I got that from the MSDN library and that forces a browser refresh
:o
Originally posted by Zero-x252
and that forces a browser refreshActually, it forces IE to refresh. You'd be be off using reload() (http://devedge.netscape.com/library/manuals/2000/javascript/1.3/reference/location.html#1194198), as Khalid suggested.