FireFox Javascrpit submit() not working


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: FireFox Javascrpit submit() not working

  1. #1
    Join Date
    Jul 2006
    Posts
    4

    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>

  2. #2
    Join Date
    Jul 2006
    Posts
    4
    Oh yeah the full project right now is http://theparadine.th.funpic.org/frames.php

Similar Threads

  1. button for submit is not working, why?
    By neomax() in forum ASP.NET
    Replies: 2
    Last Post: 07-03-2006, 10:29 AM
  2. QUERY: IE vs Firefox
    By dhruba.bandopad in forum VB Classic
    Replies: 2
    Last Post: 06-26-2006, 12:07 PM
  3. Replies: 1
    Last Post: 12-05-2001, 06:12 AM
  4. submit form & open page with 1 button
    By Gregg in forum Architecture and Design
    Replies: 1
    Last Post: 05-17-2001, 11:44 AM
  5. VSS:sharing same working folder without multiple checkouts
    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
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center