dinosf
Technical User
- Dec 27, 2002
- 11
hey guys - apologies for 2 posts today, I gave up on the solution I previously asked for and have one that is very close to working but I can't figure out the value issue
I'm adding an onclick event to an image button, I want it to set up a cookie and then get it later. The problem is that the value is not appearing in the cookie, even though it's being created and the name is accurate no value appears, I'm guessing it's a minor syntax error. This is written in VB which requires the double quotes when creating strings (e.g. "Text" & Variable & "Text" to get "TextVariableText" as a string), this leaves the single quotes specifically for javascript.
Thanks,
Dean
strResult = "document.cookie = 'TermID=" & arrR(j, 35) & "';"
b_Select.Attributes("onclick") = strResult
I'm adding an onclick event to an image button, I want it to set up a cookie and then get it later. The problem is that the value is not appearing in the cookie, even though it's being created and the name is accurate no value appears, I'm guessing it's a minor syntax error. This is written in VB which requires the double quotes when creating strings (e.g. "Text" & Variable & "Text" to get "TextVariableText" as a string), this leaves the single quotes specifically for javascript.
Thanks,
Dean
strResult = "document.cookie = 'TermID=" & arrR(j, 35) & "';"
b_Select.Attributes("onclick") = strResult