HighDots Forums  

refresh frame by reload()

Javascript JavaScript language (comp.lang.javascript)


Discuss refresh frame by reload() in the Javascript forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
WL Yang
 
Posts: n/a

Default refresh frame by reload() - 08-05-2003 , 09:48 PM






Hi all,
I am a new comer, and also a beginner for web page making.

I am making a page with 2 frame, a button was added on the left-side
frame( called frame1 ) to reload the page on the right-side frame (
called frame2 ) by this statment "parent.frame2.location.reload();".
The reload action always success if the right frame's page on the
local server, but not for the pages on other servers. and it shows
error on the status bar of browser too.

am I using the wrong methods or forget to set something inside the
javascript before reloading frame2.

thank you very much for your attention.

Reply With Quote
  #2  
Old   
WL Yang
 
Posts: n/a

Default Re: refresh frame by reload() - 08-06-2003 , 08:51 PM






Martin Honnen <Martin.Honnen (AT) t-online (DOT) de> wrote

Quote:
WL Yang wrote:
Hi all,
I am a new comer, and also a beginner for web page making.

I am making a page with 2 frame, a button was added on the left-side
frame( called frame1 ) to reload the page on the right-side frame (
called frame2 ) by this statment "parent.frame2.location.reload();".
The reload action always success if the right frame's page on the
local server, but not for the pages on other servers. and it shows
error on the status bar of browser too.

am I using the wrong methods or forget to set something inside the
javascript before reloading frame2.

If one frame is on your file system and the other on a http server then
you run into a security restrciction, the so called same origin policy.
However if all frames and the frameset are from the same server there
shouldn't be a problem.
Perhaps post a URL so that other can visit the page and check it.
Dear Martin,

thk so much for yr reponse, could u explain how to post a URL in this case,
do u mean use METHOD=POST to export?

thks a lot


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.