PDA

View Full Version : IFrame SSI script II



Dami
12-09-2004, 11:18 PM
IFrame SSI script II (http://www.dynamicdrive.com/dynamicindex17/iframessi2.htm)

I'm working with the IFrame SSI Script II (which I think is fantastic, btw) and have a question. My web site is a two-frame page (top frame is site navigation, bottom frame is page content) and I'm using the script in the lower frame, calling in an email form to fill the IFrame. Clear as mud so far? It's working really well until I submit the form. The submission works fine, but part of the submission process uses a hidden input field to redirect the user to a "Thank You" page. Unfortunately, this isn't working. Not only does the Thank you page not show up, but the "page cannot be found" error message comes up in the IFrame. What I'm wanting is for the Thank you page to fill the lower frame, not the IFrame.

I realize this request probably constitutes customization beyond the scope of the script, but I was hoping someone could give me a hint on how to resolve this. Any comments are welcome.

TIA
Dami

Edited to add: It helps if you use the right url in the redirect :o, so now the correct page shows up, but it loads in the IFrame. How do I get it to load in lower page frame?

Dami
12-12-2004, 09:25 PM
Any thoughts, anyone?

ddadmin
12-15-2004, 11:59 AM
Not sure at all if this will work, but try adding a target="framename" attribute inside your <form> tag. Usually this works in redirecting a form submission to a new window, though not sure about another frame.

A related script for some inspiration is: http://www.javascriptkit.com/script/script2/form2popup.shtml

Dami
12-15-2004, 02:32 PM
Awesome, thank you!!! I'll give it a shot.

Edited to add: Works like a charm! Thanks again!