Javascript not wrking in firefox browser

Reply

Join Date: Jan 2009
Posts: 1
Reputation: PriyaFingent is an unknown quantity at this point 
Solved Threads: 0
PriyaFingent PriyaFingent is offline Offline
Newbie Poster

Javascript not wrking in firefox browser

 
0
  #1
Jan 15th, 2009
the code is given below

<script type="text/jscript">

// Check the length of the textbox
//for new
function Length_Phone1TextField_Validator()
{
if ((aspnetForm.ctl00_ProfilePlaceHolder_txtPhone1.value.length > 2))
{
aspnetForm.ctl00_ProfilePlaceHolder_txtPhone2.focus();
return (false);
}
return (true);
}
<script>


and in cs file its code like this


this.txtPhone1.Attributes.Add("onKeyup", "return Length_Phone1TextField_Validator()");


Its not working in firefox but in IE and Safari
Reply With Quote Quick reply to this message  
Join Date: Sep 2007
Posts: 113
Reputation: WebDave is an unknown quantity at this point 
Solved Threads: 6
WebDave's Avatar
WebDave WebDave is offline Offline
Junior Poster

Re: Javascript not wrking in firefox browser

 
0
  #2
Jan 29th, 2009
I guess you'll have to modify the same code so that it also works with FireFox. Things are always different when it comes to FireFox.
Web Hosting | cPanel Hosting | UK Web Hosting
Complete web hosting solutions by eUKhost.com
Reply With Quote Quick reply to this message  
Join Date: Apr 2007
Posts: 1,130
Reputation: cguan_77 has a little shameless behaviour in the past 
Solved Threads: 93
cguan_77's Avatar
cguan_77 cguan_77 is offline Offline
Veteran Poster

Re: Javascript not wrking in firefox browser

 
0
  #3
Jan 30th, 2009
hi friyafingent, you should move to web development forum...guys around there...can figure out your problem clearly..
Last edited by cguan_77; Jan 30th, 2009 at 5:39 am.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:




Views: 745 | Replies: 2
Thread Tools Search this Thread



Tag cloud for Web Browsers
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC