JAVASCRIPT PROB!!

Results 1 to 3 of 3

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!

  2. #2
    Join Date
    Dec 1969
    Posts
    99

    Default RE: JAVASCRIPT PROB!!

    try using server.urlencode property and send the data in a query string,something like this<BR><BR>"test.asp?blob=&#060;%=server.urlencod e(blob)"<BR><BR>

  3. #3
    Manpreet Guest

    Default RE: JAVASCRIPT PROB!!

    arre vipul yaar,<BR>remember that the querystring has a upper limit of 1024 characters and if i have a blob bigger than that well i get screwed!!.<BR><BR>so i have to use the POST and not the GET

Posting Permissions

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