|
-
August 13th, 2007, 12:32 PM
#1
Very strange problem in firefox
I have a subscription page which is validated using a javascript
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<meta http-equiv="imagetoolbar" content="no">
<meta name="MSSmartTagsPreventParsing" content="true">
<title>TITLE</title>
<link href="css/css_ibs.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="scripts/scripts.js"></script>
</head>
<body>
<form action="" method="post" name="cad" onSubmit="return validacad(this);" style="display:inline;">
<input name="name" type="text" class="textBoxcad" >
<input name="company" type="text" class="textBoxcad" />
<input name="image" type="image" src="images/btn_ok.gif" />
</form>
</body>
</html>
When I access this page for the 1st time and hit the subscribe button it doesn´t run the javascript and adds me without having filled any field.
But after having registred if I hit the button again it runs the javascript and asks me to inform values for the fields.
It´s even more strange cause I have a login form on the right of the page and it always work. If I try to login without informing anything the javascript asks me to fill the fields. It always works.
This only happens in firefox
Any ideas of why this only works in the 2nd time?
Last edited by PeejAvery; August 13th, 2007 at 12:49 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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|