Jump to content
xisto Community
Sign in to follow this  
leiaah

Refresh Main Window By Clicking Link In Popup?

Recommended Posts

This is another refresh problem question. The project I'm doing uses tons of frames (I know, some of you will probably advise me not to use frames) and I'm having problems with refreshing the target frames. The problem is, I have a main page (main.html) that is a popup (so that I don't see the address bar and the other toolbar bits in my browser) and there are links in that page that when clicked also pops up a page. What I don't know is how to refresh the main page using a link in the other popup page.

 

I've tried using this but this only works for frames so I'm really lost here. Anyone out there knows?

parent.frme_itemTable.location.reload();

Posted Image

Share this post


Link to post
Share on other sites

This is another refresh problem question. The project I'm doing uses tons of frames (I know, some of you will probably advise me not to use frames) and I'm having problems with refreshing the target frames. The problem is, I have a main page (main.html) that is a popup (so that I don't see the address bar and the other toolbar bits in my browser) and there are links in that page that when clicked also pops up a page. What I don't know is how to refresh the main page using a link in the other popup page.
I've tried using this but this only works for frames so I'm really lost here. Anyone out there knows?

parent.frme_itemTable.location.reload();


maybe this code work:
opener.frme_itemTable.location.reload(); //oropener.frme_itemTable.location="Your URL"; 

please check it on your project!

Share this post


Link to post
Share on other sites

I believe that it also works (if the window opened as a pop up) if you add to the link the target attribute and point it to "_parent". It is not strict xhtml though...

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.