Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

JavaScript Forum


You are currently viewing our JavaScript Forum as a guest. Please register to participate.
Login



Reply
Javascript help please
Old 06-23-2009, 04:19 PM Javascript help please
kline11's Avatar
SearchBliss Web Tools

Posts: 1,726
Name: John
Location: USA
Trades: 0
Can anyone help me with this?

I'm looking for a javascript that will add a cookie when the page loads, then read the cookies value whenever the user returns to that page, adding the coockie value to a hidden text field. I can do this with ASP, but the client's page is an HTML page that cannot be changed to an ASP page. Any help is greatly appreciated! Thank you.
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
kline11 is online now
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 06-23-2009, 05:34 PM Re: Javascript help please
JeremyMiller's Avatar
WT Moderator

Posts: 1,712
Name: Jeremy Miller
Location: Las Vegas, NV
Trades: 0
Out of curiosity, why would the cookie need to be added to a hidden form field? It's already in a cookie, so accessible via Javascript and to the server...
__________________
Jeremy Miller

Please login or register to view this content. Registration is FREE
JeremyMiller is offline
Reply With Quote
View Public Profile Visit JeremyMiller's homepage!
 
Old 06-23-2009, 07:24 PM Re: Javascript help please
wayfarer07's Avatar
Poo on You

Latest Blog Post:
Introducing WowWindow
Posts: 3,985
Name: Abel Mohler
Location: Asheville, North Carolina USA
Trades: 0
I'm also accustomed to working with cookies only from the server, and was scratching my head recently when asked to put together an offline pseudo-website, to go onto a CD, for a lesson plan being sold to students. I needed answers to be saveable on textareas, so they needed to be saved onto a cookie and it needed to happen with JavaScript alone.

Here is the guide I used: http://www.quirksmode.org/js/cookies.html
Note you only really need to know how to use the three functions PPK outlines.

@Jeremy: maybe it's for a form that is being submitted to an external site?
__________________
Join me on
Please login or register to view this content. Registration is FREE

Last edited by wayfarer07; 06-23-2009 at 07:26 PM..
wayfarer07 is offline
Reply With Quote
View Public Profile Visit wayfarer07's homepage!
 
Reply     « Reply to Javascript help please
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.11559 seconds with 12 queries