close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Cookie Toolkit + Validation Toolkit not working

Thread began 10/29/2009 4:40 pm by carlene | Last modified 10/29/2009 6:15 pm by Jason Byrnes | 2221 views | 6 replies |

carleneBeta Tester

Cookie Toolkit + Validation Toolkit not working

Hello,

I'm trying to apply cookies to a form that I built using the validation Toolkit and Universal email. The reason I needed the cookies was that everytime I test my form and trigger the form Validation (by doing something wrong on the form) it completely erases the entire form. I was hoping to fix this by using the Cookies Toolkit and using the set entire form in cookie and set entire form from cookie behaviors.

I'm not sure why the cookie is not working now.

Please try it - the fields in red are required. If you fill it out without a field in red - the error message appears - but the cookie isn't retaining the info.

Here is the form:
catalogrequest_form.php

Any help would be appreciated.

Thanks!

Sign in to reply to this post

carleneBeta Tester

Is this because I didn't set the cookie days to expire?

I didn't put anything in the field for days to expire because in the example video there wasn't anything put in there. Also - how to I edit the cookie once I've set it for the entire form? Is there a way to do that? Or do I just add to the code. I'm just not too experienced with editing this kind of Javascript.

Here's the code for the cookie:
<script type="text/javascript">
<!--
function WA_setFormCookie(cookieObj, formObj, cookieName, expdays) {
if (expdays) {
cookieObj.expires = daysToExpire(expdays);
}
else {
cookieObj.expires = "";
}
cookieFormToString(cookieObj,formObj,cookieName);
}
function WA_getFormCookie(cookieObj, formObj, cookieName) {
cookieFormFromString(cookieObj,formObj,cookieName);
}
//-->
</script>

Sign in to reply to this post

Jason ByrnesWebAssist

the WA_Cookies/Cookies.js file has not been uploaded to the server.


Cookies.js


gives a 404 page not found error.

Sign in to reply to this post

carleneBeta Tester

Hmm... that's strange - usually it automatically uploads needed files. OK - I manually uploaded it now.

Sign in to reply to this post

Jason ByrnesWebAssist

Seams to be working when I test it.

Sign in to reply to this post

carleneBeta Tester

By Jove you're right!

Sign in to reply to this post

Jason ByrnesWebAssist

excellent.

Sign in to reply to this post

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...