Jump to content


Photo

iFrames


  • Please log in to reply
5 replies to this topic

#1 mobrien

mobrien
  • New Members
  • Pip
  • Newbie
  • 4 posts
  • LocationAustralia

Posted 03 March 2006 - 12:38 AM

Hi guys

I am working on a project at the moment that uses a series of different pages which are loaded into iFrames.
Basically the way it works is that you start with a main page, click on a link which opens up a popup window. From that popup window, there are a series of links which when clicked open up another page inside of an iFrame. Each of these linked pages also contain their own iFrames. So when 2 lots of links are used the page appears like this:

-------------------------------- (starting point)

----------------------- (1st link)

--------------- (2nd link)

Basically my problem is that I want to be able to submit a form from link 2 and have the popup window (starting point) refresh. I have looked at several javascript reload options, but they only appear to reference the parent window which in this case would be 2nd link, not the original page itself.

Any help would be much appreciated.

Cheers.



#2 Caesar

Caesar
  • Members
  • PipPipPip
  • Advanced Member
  • 1,025 posts

Posted 03 March 2006 - 12:58 AM

Don't mean to question your methods but...why make things so complicated? Most people browsing the internet aren't very patient. And a lot of people block popup windows.

*shrug*
PHP Ninja

#3 ryanlwh

ryanlwh
  • Staff Alumni
  • Advanced Member
  • 511 posts

Posted 03 March 2006 - 01:24 AM

well i'm not going to question the need for this. you can try parent.opener
Please use EDIT * 100...
Please use
or [php] * 1000...

PLEASE READ THE POSTED SOLUTIONS CAREFULLY * 1000000...

#4 mobrien

mobrien
  • New Members
  • Pip
  • Newbie
  • 4 posts
  • LocationAustralia

Posted 03 March 2006 - 01:43 AM

[!--quoteo(post=351177:date=Mar 3 2006, 11:58 AM:name=Caesar)--][div class=\'quotetop\']QUOTE(Caesar @ Mar 3 2006, 11:58 AM) View Post[/div][div class=\'quotemain\'][!--quotec--]
Don't mean to question your methods but...why make things so complicated? Most people browsing the internet aren't very patient. And a lot of people block popup windows.

*shrug*
[/quote]

To answer your question...

The project is to be used internally on our Intranet so the blocking of popup windows isn't an issue. The reason the iFrames are embedded in the main page is to avoid having to use multiple popup windows as I want the parent pages to remain open.

I know my explanation was long winded but it isn't as complicated as it sounds. Essentially all the user will see is two windows as opposed to multiple popups etc which would confuse my users beyond belief.

#5 mobrien

mobrien
  • New Members
  • Pip
  • Newbie
  • 4 posts
  • LocationAustralia

Posted 03 March 2006 - 01:56 AM

[!--quoteo(post=351189:date=Mar 3 2006, 12:24 PM:name=ryanlwh)--][div class=\'quotetop\']QUOTE(ryanlwh @ Mar 3 2006, 12:24 PM) View Post[/div][div class=\'quotemain\'][!--quotec--]
well i'm not going to question the need for this. you can try parent.opener
[/quote]

Thanks ryanlwh

Unfortunately this doesn't work. I don't know much about javascript but I believe it isn't working because what I have is essentially 3 pages within the 1 window with each page calling the next through links. ie page 2 is called by page 1 and page 3 is called by page 2. So basically page 3 needs to refresh page 1.

Is there a way to name each individual page and reference the page I want to refresh in a window.reload function perhaps?

Cheers

#6 mobrien

mobrien
  • New Members
  • Pip
  • Newbie
  • 4 posts
  • LocationAustralia

Posted 03 March 2006 - 03:43 AM

Problem solved.

For those interested, the code was - self.parent.parent.location.reload();





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users