fighnight Posted August 18, 2008 Share Posted August 18, 2008 So I have this script that works on Firefox and other browsers except IE. The problem is that IE doesn't let the submit button submit the information. Here is my code: <input type="submit" name="submitButton" class="submit" value="Login" onClick="this.disabled = 'true'; this.value = 'Loading..'; this.form.submit();"></form> Quote Link to comment Share on other sites More sharing options...
xenophobia Posted August 18, 2008 Share Posted August 18, 2008 Try use full path: <form name="yourFormName"> <input type="submit" name="submitButton" class="submit" value="Login" onClick="this.disabled = 'true'; this.value = 'Loading..'; document.yourFormName.submit();"> </form> By the way, why do you need the "submit()" to submit the form. As the button is already a submit button. Quote Link to comment Share on other sites More sharing options...
fighnight Posted August 18, 2008 Author Share Posted August 18, 2008 The error is still showing only works on fF Quote Link to comment Share on other sites More sharing options...
lemmin Posted August 18, 2008 Share Posted August 18, 2008 That should work fine. What does the error say? What version of IE are you testing it with? Try changing it to a type="button" and see if the error is different. Quote Link to comment Share on other sites More sharing options...
fighnight Posted August 18, 2008 Author Share Posted August 18, 2008 Now even FF doesn't work Quote Link to comment Share on other sites More sharing options...
lemmin Posted August 18, 2008 Share Posted August 18, 2008 Does the button change to be disabled and show Loading? Do you have javascript enabled? Quote Link to comment Share on other sites More sharing options...
fighnight Posted August 18, 2008 Author Share Posted August 18, 2008 The button changes to loading but just stays there. and yes I have javascript enabled. Quote Link to comment Share on other sites More sharing options...
lemmin Posted August 18, 2008 Share Posted August 18, 2008 What does your form tag look like? Quote Link to comment Share on other sites More sharing options...
fighnight Posted August 19, 2008 Author Share Posted August 19, 2008 <form method="post" action="login.php" name="submit"> is my form Quote Link to comment Share on other sites More sharing options...
xenophobia Posted August 19, 2008 Share Posted August 19, 2008 Hahaha... I see. Try use other name... Don't use submit. <form name="other_name"..> Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.