Javascript validation

Results 1 to 5 of 5

Thread: Javascript validation

  1. #1
    Supriya Guest

    Default Javascript validation

    Hi,<BR>I&#039;ve a textarea where user can enter some text....in another page I&#039;m displaying it in &#060;td&#062;&#039;s .....if user types some javascript code....then itz creating some problem.....<BR>How I can validate it while taking it from user......or is there any other way to display it.....<BR>thanks in advance.....<BR><BR><BR>

  2. #2
    Join Date
    Dec 1969
    Posts
    19,082

    Default RE: Javascript validation

    you&#039;ll find a stripHTML() function in both VBScript and Javascript at http://www.infinitemonkeys.ws/ - just look in the codelibrary<BR><BR>j

  3. #3
    Supriya Guest

    Default RE: Javascript validation

    Thanks yaar...<BR>But I want to take scripts as input.....then how to display it in HTML ..?

  4. #4
    Join Date
    Dec 1969
    Posts
    19,082

    Default Server.HTMLEncode()

    then it&#039;ll display in the page, but won&#039;t run.<BR><BR>this forum uses it, my forums use it, most of my sites use it, actually.<BR><BR>j


  5. #5
    Supriya Guest

    Default RE: Server.HTMLEncode()

    Thanks yaar....<BR>Itz working.....

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •