Home | Blog | Software | Reviews and Features | Forum | Help | Donate | About us
topbanner_forum
  *

avatar image

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

Login with username, password and session length
  • December 02, 2016, 08:27:24 PM
  • Proudly celebrating 10 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 3137 times)

mediaguycouk

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 245
    • View Profile
    • Mediaguy
    • Donate to Member
onsubmit doesn't work in IE
« on: March 14, 2011, 05:09:14 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,220
  • 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: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