close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Data-Bridge Cookies

Thread began 3/25/2021 2:24 am by jr.porchet406719 | Last modified 3/29/2021 11:06 am by Ray Borduin | 326 views | 4 replies |

jr.porchet406719

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.

Attached Files
test.php
Sign in to reply to this post

Ray BorduinWebAssist

Please attach the page with the code you are working on so I can see what is going wrong.

Sign in to reply to this post
Did this help? Tips are appreciated...

Ray BorduinWebAssist

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')

Sign in to reply to this post
Did this help? Tips are appreciated...

jr.porchet406719

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

Sign in to reply to this post

Ray BorduinWebAssist

That identifies the form field type... 0=passed value, 1=checkbox, 2=select list

Sign in to reply to this post
Did this help? Tips are appreciated...

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

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.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...