Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Strange Problem with netscape

 
madhav lakkhani
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi this is a code
function digit()
{
for(ic=1;ic<=124;ic++)
{
s=Form.elements[ic].value;
s1=Form.elements[ic].name;
r=/^[0-9]{1,}.?[0-9]*$/;
if(!(r.test(s)))
{
alert("enter valid data");
Form.elements[ic].focus();
Form.elements[ic].value="0";
return false;
}
}
}

Hi Iam using this code to check an entry by user is it valid or not..
it works cool with IE and
No response from Netscape..
if i change it to
s=Form.fieldname.value;
it works cool ..
Problem is this Iam having more than 50 fields and it is not possible to write for all..
field like this..
any soln appreciated .
Iwant to use it in netscape 4.1 and higher
version
thx in advance
 
Yuriy Fuksenko
Ranch Hand
Posts: 413
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The onlu thing that come to my mind that if "Form" is a name of your form, use document.Form or document.forms["Form"].
I remember something funny with NS4.7 about this.
 
madhav lakkhani
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi thx for answer..
but Iam using document.form.filedname.value..
than also not working
strange..
any suggestion...
thx
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic