|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Unique iFrame help needed
I have two sites. Site1 uses iFrames. In a frame, there is a link that goes to Site2. Site2 takes some information and has a link to a thankyou page back on Site1. problem: Getting the link back to Site1 to open the tankyou in the frame.
It will open the thankyou page, but as in a new window. Is there a way to write the link on Site2 linking back to site1, so that it loads the index.ht and, the thankyou page inside the frame? BTW - opinions on using frames should be filed elsewhere ![]() |
|
#2
|
||||
|
||||
|
Perhaps you could use javascript to change the src ="" attribute.
Alternatively you could use server side includes to incorporate your page instead of using an iframe.
__________________
---| The Universe| |
|
#3
|
|||
|
|||
|
Hello,
Let me make sure I understand the problem: Site 1 contains an iframe to Site 2, and Site 2 needs some information. When a link is clicked in Site 2, the original or some other page needs to be loaded in the parent Site 1, which will contain an iframe with a thank you. I think JavaScript is the answer to your problems. I wrote a couple quick pages (apologies for lack of strict <html> tag usage), but it should illustrate the point. Here is a directory containing four files. Open index1.html. This is your "Site 1" containing an iframe to "Site 2." When you click on the submit link under the textarea, the parent "Site 1" is changed from index1.html to index3.html, which contains an iframe displaying the contents of "thankyou.html." This is accomplished by: Code:
parent.location.href='index3.html' which changes the parent window of the iframe to index3. I hope this answers your question. If I don't understand correctly, please let me know. You can get a little more fancy with the JavaScript and use it to change the URL of the iframes, etc. x^2 |
![]() |
| Viewing: Dev Shed Forums > Web Design > HTML Programming > Unique iFrame help needed |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|