JAVASCRIPT PROB!

Results 1 to 2 of 2

Thread: JAVASCRIPT PROB!

  1. #1
    MAnpreet Guest

    Default JAVASCRIPT PROB!

    i am trying to pass a blob of text to the next page as a hidden field in the form. Now this is blob can be any text containing unpredictable number of newlines and /or quotes.<BR><BR>on the next page i have a button on cliking which the blob passed on should become the text in a textarea .<BR><BR>i wrote a script which would simply do<BR><BR>document.form1.textbox.value = &#060;%=Request.Form("blob")%&#062;;<BR><BR>now this thing does not work since the newlines and quotes in the blob cause problems of "unterminated strings" for the LHS of the above eqaution and the script halts!<BR><BR>please advice!<BR><BR><BR><BR>

  2. #2
    Join Date
    Dec 1969
    Posts
    31

    Default RE: JAVASCRIPT PROB!

    document.form1.textbox.value = "&#060;%= Replace( Request.Form("blob"), """", "\""" ) %&#062;";<BR>

Posting Permissions

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