After many failed attemps, I am now someone can offer some help.

I have installed greybox and use it to load a page in the iframe.
(This works perfectly)

On the page being loaded inside greybox I want to have a link or
button that would load second greybox with new page inside it's
iframe.

I've included the .js files in both the original calling page
(index.php) as well as the loaded iframe page (iFramePage1.php) but
when clicking the link on the iframe page the new page is being loaded
under the greybox.

This is the link I've placed within the original page (index.php) that
calls up greybox and loads iFramePage1.php
<a href="#" onclick="return GB_show('Pages', 'iFramePage1.php',
640,545); return false;">View Page 1</a>

This same page also has a function that is being called upon from
within iFramePage1.php when the user clicks the "View Next Page" link.

Here's the function
<script type="text/javascript">
function GetMyPage(PageID) {
   return GB_show('Pages', '../iFramePage'+PageID+'.php',640,545);
return false;
}
</script>


This is the link within iFramePage1.php used to call iFramePage2.php
into greybox:
<a href="#" onclick="return parent.parent.GetMyPage('2'); return
false;">View Next Page</a>
Clicking this link only results in getting the iFramePage2.php to load
behind greybox instead of within it.
Additionally, when clicking any link on iFramePage2.php returns the
following Javascript error:

Error: uncaught exception: [Exception... "Component returned failure
code: 0x8000ffff (NS_ERROR_UNEXPECTED) [nsIDOMHTMLIFrameElement.src]"
nsresult: "0x8000ffff (NS_ERROR_UNEXPECTED)"  location: "JS frame ::
http://www.somedomain.com/greybox/gb_scripts.js :: anonymous :: line
108"  data: no]

I know that I could simply use a targeted href like:
<a href="iFramePage2.php" target="_self">View Next Page</a>

But doing that does not replace the greybox header info with the next
page info.

Any help is greatly appreciated!

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"GreyBox" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/greybox?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to