Reading a Cookie

Results 1 to 2 of 2

Thread: Reading a Cookie

  1. #1
    Join Date
    Dec 1969

    Default Reading a Cookie

    Hello, being quite a novice with javascript, I am having a hard time with the following bit of code. I can get it to work with a hyperlink, but i need it to work using a form. I need to insert a value for the QueryString "Symbol=" which is stored as a cookie but can change outside the current document. I have attached the little bit of code, where you will see the jscript part somewhat butchered.<BR><BR>&#060;form method="POST" action="GetChart.asp?Symbol=" onclick=&#039;alert(getCookie("SymbolCHT"))&#039;& #062;<BR>&#060;input name="iCHT" type="submit" id="iCHT" value="Get Chart"&#062;<BR>&#060;/form&#062;<BR><BR><BR>So in short I need to use jscript to insert the value of cookie "SymbolCHT" for the QueryString "Symbol="<BR><BR>Thanks in advance for any help.<BR>

  2. #2
    Join Date
    Dec 1969

    Default Answered in ASP forum

    Since he told us he was posting it again, he gets full credit for being a good netizen.<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