DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: onsubmit doesn't work in IE  (Read 5,948 times)

mediaguycouk

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 247
onsubmit doesn't work in IE
« on: March 14, 2011, 10: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)
function enter()
{
	if (step == 7)
	{
		return true;
	}
	else
	{
		next();
		return false;
	}
}

and this line of code

Code: (html4strict)
<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

  • Tell me something you don't know...
  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 13,291
    • Participated in NANY Challenge Three Times
    • Furry Fandom Badge - Furry Fandom
    • Linux User
Re: onsubmit doesn't work in IE
« Reply #1 on: March 14, 2011, 11:15 PM »
This might help:

http://www.webxpertz.net/forums/showthread.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

Original address: https://www.donationcoder.com/forum/index.php?topic=26072.0