| | |
Javascript not wrking in firefox browser
![]() |
•
•
Join Date: Jan 2009
Posts: 1
Reputation:
Solved Threads: 0
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
<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
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.
![]() |
Other Threads in the Web Browsers Forum
- Previous Thread: I can not open my Internet Explorer page!!
- Next Thread: Connected to the internet but web browsers open blank
Views: 745 | Replies: 2
| Thread Tools | Search this Thread |
Tag cloud for Web Browsers
aiim2009 andrewlippmann android aol apple awesomebar background britain browser browserproblems browsers browsing bug censorship childabuse china chrome client code compuserve contest crash development dns email error eu europe exploit explorer facebook fennec fileeditmissing firefox flash gecko google government history ie7 ie8 internet internet.broadband internetexplorer internetexplorer8 internetusage iphone linux marshallmcluhan media microsoft mitmedialab mobilebrowsers mosaic mozilla music netscape networking news newyork offline olympics onlinecommunities opensource opera opera.software patch plugins porn privacy problem safari seamonkey security server sex silverlight social software survey surveys teenagers television testing thunderbird u.s. uk update usenet users utest video web webbrowser webusage wikipedia windowslivemail worldrecord worldwideweb xp






