This is a discussion on "submit() in iframe trouble" within the JavaScript Forum section. This forum, and the thread "submit() in iframe trouble are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
submit() in iframe trouble
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
submit() in iframe trouble
Hi all,
Im new to this forum... any help would be greatly appreciated. I have a hidden "in between" page where I dynamically create a form and hidden inputs using ASP that should submit to a second page where this data will be used. The form is automatically submitted using javascript. This code works in IE and in Firefox. The problem I am facing now is that the series of these same pages I am working with are now being used inside an iframe. Since this change, the javascript submit no longer works in Firefox, but does in IE. Please see code below and tell me what I am doing wrong. Thanks!
Last edited by Rakuli; Nov 5th, 2007 at 10:18. Reason: Please use HTML tags |
|
|
|
||||
|
Re: submit() in iframe trouble
I'm not sure what you mean... The hidden form is inside of an iframe or the the whole page is? Is the submit not sending the user page or is it just submitting the iframe?
Cheers,
Last Blog Entry: The wannabe juggler's quest (Oct 27th, 2007)
|
|
|||
|
Re: submit() in iframe trouble
The entire page is inside and iframe. It used to be a set of pages that worked on their own. We have since revamped the system and these pages are running inside an iframe.
The submit is supposed to submit just the code above, inside the iframe, and take the user to another page - inside the iframe. It works outside the iframe in Firefox. Once I added this page is inside the iframe, it no longer works in firefox. |
|
||||
|
Re: submit() in iframe trouble
Could be this line
<form method=POST name='answer' id='answer' action=pagename.asp'>") try adding the extra quote <form method=POST name='answer' id='answer' action='pagename.asp'> Or try adding a target to the form <form method=POST name='answer' id='answer' action='pagename.asp' target="_top">
Last Blog Entry: The wannabe juggler's quest (Oct 27th, 2007)
|
![]() |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [SOLVED] refresh a different iframe once an iframe elsewhere has loaded | cosmicbdog | JavaScript Forum | 1 | Jan 25th, 2008 01:50 |
| Trouble with iframe and back button | Zonglars | JavaScript Forum | 0 | Jan 10th, 2008 13:27 |
| Can a jsp file in an IFrame calls a javascript function outside of the IFrame | jadeite100 | JavaScript Forum | 0 | May 31st, 2007 14:29 |
| submit many forms - auto submit the same form many times | divs | JavaScript Forum | 0 | May 24th, 2007 10:10 |
| Need help with Firefox iframe, jsp, form submit issue | bmachine | Other Programming Languages | 4 | Mar 14th, 2007 19:01 |