![]() |
|
![]() |
| LinkBack | Thread Tools | Display Modes |
| | #1 (permalink) |
| Junior Member Join Date: May 2007
Posts: 6
Thanks: 1
Thanked 1 Time in 1 Post
Rep Power: 3 | HTML Validation Hi, I want to validate the html tags entered in a rich textbox. Otherwise my textbox should not accept html tags entered in. How to achieve this ? Please help me. Thanks a lot in advance.... |
| | |
| | #2 (permalink) |
| Moderator Join Date: Apr 2006 Location: India
Posts: 637
Thanks: 57
Thanked 84 Times in 68 Posts
Rep Power: 19 | Re: HTML Validation Hello Ganesh Pls find the example given below, this doesnot accept the character < , > and / ,usually in the HTML we will be using these characters for tags, Even if the user wants to type those character , he cannot enter these three characters. If you want , the text box not to accept more special character then write down a logical condition which specifies a range Use this code given below, it works for you < INPUT type="text" name="someText" size="10" maxlength="10" validate="true" onkeypress="if (event.keyCode == 60 || event.keyCode == 62 || event.keyCode == 47) event.returnValue = false;" > Im not sure whether that should be == or = Let me know your questions Thank You |
| | |
| | #3 (permalink) |
| Junior Member Join Date: May 2007
Posts: 6
Thanks: 1
Thanked 1 Time in 1 Post
Rep Power: 3 | Re: HTML Validation Hi mohan, thank u. Now the scenario is, I want to validate the html file entered in a rich text box... How to achieve this ? |
| | |
| | #4 (permalink) |
| Moderator Join Date: Apr 2006 Location: India
Posts: 637
Thanks: 57
Thanked 84 Times in 68 Posts
Rep Power: 19 | Re: HTML Validation Hi Ganesh This works even for Rich Text Box also, Try it, all i can do is help u but i cant help u all on a whole. try urself, if u still cant get it then ask us we'll give u the code Hope u'll act positively , This is for ur sake, if i paste the code over here, u'll simply copy it and it works, but u cant remember the code .but if u write it on ur own u can remember it for long time. Im not criticizing u, i think im showing u the right way Thank You |
| | |
![]() |
| Tags |
| html , validation |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Mega Free Download S/W Links A-Z | yathish | OTHERS | 516 | 21-03-09 10:06 AM |
| Asp - difference between Server-side validation and Client-side validation | preethisingh | vb / asp.net Interview / Technical Questions | 0 | 24-01-07 05:32 PM |
| Changepond technologies Limited Hiring BSc / MSc Maths: HTML Developers required | sridhar | Fresher Jobs | 0 | 02-12-06 01:40 PM |
| Position Vacant Web SEO and HTML Developer | sridhar | Experienced Jobs | 0 | 28-11-06 11:03 AM |
| Position Vacant HTML Designer | sridhar | Fresher Jobs | 0 | 06-11-06 10:07 PM |
| More Interview Questions Here... |