<form name="jump">
<select
name="myjumpbox"
onchange="document.cookie=this.options[this.selectedIndex].value;
window.open(jump.myjumpbox.options[selectedIndex].value)">
<option selected>Please Select...</option>
<option value="http://danish.site.dk/">Danish</option>
<option value="http://german.site.dk/">German</option>
<option value="http://spanish.site.dk/">Spanish</option>
</select>
<noscript><INPUT type="submit" value="Go" name=submit></noscript>
</form>
document.cookie = name+"="+value+expires+"; path=/";
> -----Original Message-----
> From: Erika L. Walker [mailto:[EMAIL PROTECTED]
> Sent: Friday, November 03, 2006 1:17 PM
> To: CF-Community
> Subject: Javascript and cookies
>
> Argh. Programming.
>
> I need to do a drop down. Easy. When user selects item, takes them to that
> url. Easy.
>
> BUT: I also need to set a cookie to make that the users preference next time
> they visit the website.
>
>
> I have this:
>
> <form name="jump">
> <select name="myjumpbox"
> OnChange="window.open(jump.myjumpbox.options[selectedIndex].value)">
> <option selected>Please Select...
> <option value="http://danish.site.dk/">Danish
> <option value="http://german.site.dk/">German
> <option value="http://spanish.site.dk/">Spanish
> </select><noscript><INPUT type="submit" value="Go"
> name=submit></noscript>
> </form>
>
>
> Anyone know how to set the cookie and then read it back next time the user
> visits the site so it's automatically at the last language they used?
>
> The main url will be www.site.com and the client doesn't think their users
> will know to actually go to languagepreference.site.com ...
>
> Thanks in advance ...
>
>
> Cheers,
> Erika
>
>
>
>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four
times a year.
http://www.fusionauthority.com/quarterly
Archive:
http://www.houseoffusion.com/groups/CF-Community/message.cfm/messageid:219435
Subscription: http://www.houseoffusion.com/groups/CF-Community/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.5