Hi Pete,
First of all I do understand you taking off on that one.
Well, I am also a programmer for say, not that less a number of years as of now. Say, 8 years if it counts as experience. I am just new to Javascript, I started working on this hardly a month back.
Secondly, There is always no...
Hi everyone.
I am new to this Javascript. I need a help in the following problem of mine.
Is it possible for me to encrypt the javascript so that the user cannot make any sense of it, but at the same time it works fine without any problems.
I have read many articles that we cannot disable this...
I have this <select> object which works as a drop down box. What I want to do is. There will be lot of items in the drop down list, and when I try to enter some values in the combo box, that is type in some values, it should go ahead and get me the matching items from the list. Do I make sense...
I think this should work.
If ( object) {
// do this
}
Like I have this kind of code at many a places as follows
if(document.list_form._VER_CERT){
document.list_form._VER_CERT.focus() ;
}
Where _VER_CERT is an object. So try the same thing with your object. It might work...
Eclipse,
you are right, onkeyup it works fine. IT doesn't overwrite the whole string in the text, but then it also brings along some other inherent defects with that.
But, yeah that helped.
Thanks
Shanthi
Thanks Edward,
Your code helps, but that formats only onblur or when the you leave the text box, not on fly. Do you get it ?
I did see a similar code in this forum, but I wanted something which will do it on the fly, while I still enter the information.
If you could help me with why the stuff...
Both txt1 and txt2 are enterrable.
txt1 is simple text, it doesn't do any formatting, the data remains as is.
txt2 has auto-formatting attached onkeypress event, as shown above.
on txt1 the select and replace works fine, it replaces only the selected txt, not the whole text
that is intial...
Hi,
I have a text box. Actually say I have two text boxes txt1 and txt2, both are phone number fields. The one I enter and doesn't have any auto formatting associated. The second text box txt2 has autoformatting of the dates on key press event. Now everything seems to be working okay, it...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.