-
FireFox Javascrpit submit() not working
Hello this is my first post and I not sure if im even using the correct forum for my prolem but all the things ive read here seem really intelligent so im sure somebody can help my problem.
Im writeing a script that changes information and a frameset and then submits the information to a different site. The problem is when javascript submits the form useing "submit()" no information is sent. It goes to the correct target and i know the form is correct because pressing the submit button with the mouse does everything perfectly. Ive read some post in other places about "submit()" not working properly in FireFox and Netscape. Heres the code below. Any ideas is greatly appreciated.
<script language="javascript1.5">
function script()
{
parent.bottom.document.getElementById("form2").action=document.getElementById("form1").url .value;
parent.bottom.document.getElementById("form2").horseid.value=document.getElementById("form 1").horseid.value;
parent.bottom.document.getElementById("form2").raceid.value=document.getElementById("form1 ").raceid.value;
parent.bottom.document.getElementById("form2").showid.value=document.getElementById("form1 ").showid.value;
parent.bottom.document.getElementById("form2").submit('enter');
};
function blah()
{
document.getElementById("form1").action=document.getElementById("form1").url.value;
};
</script>
</head>
<body>
<form id="form1" action="http://www.poormanshorse.net/classes.php?id=3102661" method="post">
<input type="text" value="http://www.poormanshorse.net/classes.php?id=3102661" name="url"><input type="button" name="change" value="change url" onClick="blah()"><br>
<input type="text" value='286356' name='horseid'><br>
<input type="text" value='0' name='raceid'><br>
<input type="text" value='7821' name='showid'><br>
<input type='button' value='GO' name='go' onClick="script()">
<input type="submit" value='Submit' name='enter'></form>
<form name="form" method="post" action=""><br>
<input type="text" name="times" id="times" value="0"><br>
<input name="button" type="submit" value="Submit" onClick=change("fdfdsfdsafdsafsa")>
</form>
-
Similar Threads
-
By neomax() in forum ASP.NET
Replies: 2
Last Post: 07-03-2006, 10:29 AM
-
By dhruba.bandopad in forum VB Classic
Replies: 2
Last Post: 06-26-2006, 12:07 PM
-
Replies: 1
Last Post: 12-05-2001, 06:12 AM
-
By Gregg in forum Architecture and Design
Replies: 1
Last Post: 05-17-2001, 11:44 AM
-
By rahul phatak rahulphatak in forum ASP.NET
Replies: 0
Last Post: 06-01-2000, 05:41 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks