SURESHKUMAR.NET FORUMS
Registered Member Login:
Not a member? Register today!



Welcome to the SURESHKUMAR.NET FORUMS.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.




HTML Validation

        

Reply
 
LinkBack Thread Tools Display Modes
Old 24-05-07, 01:29 PM   #1 (permalink)
Junior Member
 
Join Date: May 2007
Posts: 6
Thanks: 1
Thanked 1 Time in 1 Post
Rep Power: 3 ganeshsundar is on a distinguished road
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....

ganeshsundar is offline Offline   Reply With Quote
Old 24-05-07, 02:54 PM   #2 (permalink)
Moderator
 
t_mohan's Avatar
 
Join Date: Apr 2006
Location: India
Posts: 637
Thanks: 57
Thanked 84 Times in 68 Posts
Rep Power: 19 t_mohan is a splendid one to behold t_mohan is a splendid one to behold t_mohan is a splendid one to behold t_mohan is a splendid one to behold t_mohan is a splendid one to behold t_mohan is a splendid one to behold t_mohan is a splendid one to behold t_mohan is a splendid one to behold
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
t_mohan is offline Offline   Reply With Quote
Old 24-05-07, 04:54 PM   #3 (permalink)
Junior Member
 
Join Date: May 2007
Posts: 6
Thanks: 1
Thanked 1 Time in 1 Post
Rep Power: 3 ganeshsundar is on a distinguished road
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 ?
ganeshsundar is offline Offline   Reply With Quote
Old 24-05-07, 05:59 PM   #4 (permalink)
Moderator
 
t_mohan's Avatar
 
Join Date: Apr 2006
Location: India
Posts: 637
Thanks: 57
Thanked 84 Times in 68 Posts
Rep Power: 19 t_mohan is a splendid one to behold t_mohan is a splendid one to behold t_mohan is a splendid one to behold t_mohan is a splendid one to behold t_mohan is a splendid one to behold t_mohan is a splendid one to behold t_mohan is a splendid one to behold t_mohan is a splendid one to behold
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
t_mohan is offline Offline   Reply With Quote
Reply

Tags
html , validation


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On


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


All times are GMT +6.5. The time now is 10:17 AM.

More Interview Questions Here...

Content Relevant URLs by vBSEO 3.3.0