topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Thursday December 12, 2024, 9:53 pm
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: onsubmit doesn't work in IE  (Read 4924 times)

mediaguycouk

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 247
    • View Profile
    • Mediaguy
    • Donate to Member
onsubmit doesn't work in IE
« on: March 14, 2011, 05:09 PM »
Hi all,
I'm getting confused by a problem. Everything works fine in Firefox, but in IE I can't get a form to submit correctly with the enter key.

I have this function

Code: Javascript [Select]
  1. function enter()
  2. {
  3.         if (step == 7)
  4.         {
  5.                 return true;
  6.         }
  7.         else
  8.         {
  9.                 next();
  10.                 return false;
  11.         }
  12. }

and this line of code

Code: HTML [Select]
  1. <form id="form" name="form" method="post" action="upload.php" onsubmit="return enter();">

But enter() never seems to load until you get to a real submit button. I've put the entire code here - http://www.unics.co.uk/onsubmit/

Does anyone know what might be the issue?
Learning C# - Graham Robinson

Renegade

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 13,291
  • Tell me something you don't know...
    • View Profile
    • Renegade Minds
    • Donate to Member
Re: onsubmit doesn't work in IE
« Reply #1 on: March 14, 2011, 06:15 PM »
This might help:

http://www.webxpertz...wthread.php?p=191220

Not sure. I've not tried it though.
Slow Down Music - Where I commit thought crimes...

Freedom is the right to be wrong, not the right to do wrong. - John Diefenbaker