homepage Welcome to WebmasterWorld Guest from 54.205.122.62
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
Forum Library, Charter, Moderator: open

JavaScript and AJAX Forum

    
javascript in a cookie?
bandwidth-saving
Clinton Labombard

5+ Year Member



 
Msg#: 3344250 posted 10:50 pm on May 19, 2007 (gmt 0)

Is it possible to put variables containing javascript into a cookie? I'm considering different bandwidth-saving methods.

 

mehh

5+ Year Member



 
Msg#: 3344250 posted 6:07 pm on May 20, 2007 (gmt 0)

yes it is possible. you just need to store the javascript in a cookie then eval() it at the other end. however i think caching javascript would probilby work better

Fotiman

WebmasterWorld Senior Member fotiman us a WebmasterWorld Top Contributor of All Time 5+ Year Member



 
Msg#: 3344250 posted 2:00 pm on May 21, 2007 (gmt 0)

Since cookies are passed with each request/response, you will be using MORE bandwidth if you try to do this.

Clinton Labombard

5+ Year Member



 
Msg#: 3344250 posted 6:30 pm on May 21, 2007 (gmt 0)

Ah, I see. Thank you.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved