Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Strange Problem with netscape

 
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
 
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
 
Consider Paul's rocket mass heater.
    Bookmark Topic Watch Topic
  • New Topic