Data-Bridge Cookies
Hello, when I use the cookies set value function, it works if the field is of type text, but not if this field is of type select. With the old WA-Cookies tool, it worked fine. Could you help me out? Thank you in advance.
Hello, when I use the cookies set value function, it works if the field is of type text, but not if this field is of type select. With the old WA-Cookies tool, it worked fine. Could you help me out? Thank you in advance.
Please attach the page with the code you are working on so I can see what is going wrong.
It looks like the reference to the select list in the code is wrong.
document.testform#.testselect
should be:
document.testform.testselect
or:
document.getElementById('testselect')
Now the cookies are working.
This is what I saw.
The script
<src script = "webassist / cookies / cookies.js">
is not added automatically. You have to add it manually.
When inserting the storage of cookies by sending a form, the automatic insertion is as follows:
onSubmit = "WA_setCookie (WA_CookieObj, 'ctest', '', true, 0.30)"
and it does not work.It should be corrected as follows:
onSubmit = "WA_setCookie (WA_CookieObj, 'ctest', document.testform.testselect, true, 2,30)"
Adding document.formname.name id select is not sufficient. you must modify the 0,30 after true, by a 2,30.
30 is the number of days the cookie is valid, but I don't understand the role of 0. Could you tell me what it refers to?
Thank you for your availability.
Best regards
That identifies the form field type... 0=passed value, 1=checkbox, 2=select list
Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.
These out-of-the-box solutions provide you proven, tested applications that can be up and running now. Build a store, a gallery, or a web-based email solution.