User Profile

Collapse

Profile Sidebar

Collapse
ACgordon
ACgordon
Last Activity: Aug 20 '09, 06:05 PM
Joined: Aug 20 '09
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • ACgordon
    replied to Block unwanted html tags in a textarea
    thanks for the reply Dormilich.

    Ideally I want to pop an alert box if the textarea has the text href in it.

    My javascript is poor but I got it to work with ..

    Code:
    if (objForm.faultReport.value.length >= 2)
    			{		
    				var invalid  ="href";
    				var strData = objForm.faultReport.value;
    				
    				gb_val = strData.indexOf(invalid);
    				
    				if(gb_val>0)
    ...
    See more | Go to post
    Last edited by Dormilich; Aug 20 '09, 01:56 PM. Reason: Please use [code] tags when posting code

    Leave a comment:


  • ACgordon
    started a topic Block unwanted html tags in a textarea

    Block unwanted html tags in a textarea

    Can anyone offer advice on how to stop users entering html tags in the textarea part of a form ?
    See more | Go to post
No activity results to display
Show More
Working...