It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming JavaScript Forum

submit() trouble in iframe

submit() trouble in iframe

Postby ddprogrammer on Mon Nov 05, 2007 10:49 am

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!

<html>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8">
<body onload="document.getElementById('answer').submit();">
<form method=POST name='answer' id='answer' action=pagename.asp'>")
<input type=hidden name=Section value="1">
<input type=hidden name=survey value="10">
<input type=hidden name=resumeAt value='0'>
<input type=hidden name=Counter value="1">
</form>
</body>
</html>
ddprogrammer
 
Posts: 0
Joined: Mon Nov 05, 2007 10:46 am

Who is online

Users browsing this forum: No registered users and 5 guests