Welcome Guest ( Log In | Register)



 
Reply to this topicStart new topic
> How To Set Cookie With Javascript?, please...
nancmu
post Jan 1 2005, 10:18 AM
Post #1


Advanced Member
*******

Group: Members
Posts: 136
Joined: 20-October 04
From: Thailand
Member No.: 1,840



The same as topic... I try to learn cookie setting from many scripts but i still don't got it huh.gif . anyone help me, please smile.gif .
for example this code... blink.gif
CODE
function get_cookie(Name) {
//Get cookie routine by Shelley Powers
 var search = Name + "="
 var returnvalue = "";
 if (document.cookie.length > 0) {
   offset = document.cookie.indexOf(search)
   if (offset != -1) {
     offset += search.length
     end = document.cookie.indexOf(";", offset);
     if (end == -1) end = document.cookie.length;
     returnvalue=unescape(document.cookie.substring(offset, end))
     }
  }
 return returnvalue;
}

cool.gif cool.gif cool.gif cool.gif
Go to the top of the page
 
+Quote Post
vizskywalker
post Jan 13 2005, 01:52 AM
Post #2


Member [Level 2]
*****

Group: Members
Posts: 79
Joined: 12-January 05
Member No.: 3,251



Try HTML goodies. It has great tutorials on many tasks in many different script languages. THe javascript cookie tutorial can be found here: http://www.htmlgoodies.com/beyond/cookie.html
Go to the top of the page
 
+Quote Post
nancmu
post Jan 13 2005, 07:10 AM
Post #3


Advanced Member
*******

Group: Members
Posts: 136
Joined: 20-October 04
From: Thailand
Member No.: 1,840



Thank a lot, vizskywalker

htmlgoodies.com smile.gif the new and excellent site for me.. i think i must stay in this site for a long time. I can learn basic for javascript, css, vbscript and more....
Did you know? i try to search sites that i can learn about this for a week but i'v just find. Thank you again laugh.gif .
Go to the top of the page
 
+Quote Post
vizskywalker
post Jan 14 2005, 09:02 PM
Post #4


Member [Level 2]
*****

Group: Members
Posts: 79
Joined: 12-January 05
Member No.: 3,251



Anytime. HTML Goodies helped me with many a webpage in many different ways. It also produces books that are of pretty good quality. You may find them at your library. Good luck!
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. Javascript Slideshow Tutorial(4)
  2. Call Cookie Functions In Iframe(2)
  3. Image Preloader With Progress Bar Status(23)
  4. Css And Javascript Combined For Dynamic Layout(9)
  5. Javascript Close Window(15)
  6. Adding Rows & Columns In Html Table Using Javascript(1)
  7. Javascript : No Right Click Script !@(12)
  8. Hiding <div> Boxes With Javascript(8)
  9. Playing Flash Movies Without The One-click Activation: Simple Insertion Of Javascript(4)
  10. Web Page Tree Menu: Style Sheet - Javascript(6)
  11. Learn Html Quick And Easy(14)
  12. Can I Make Dynamic Menu In Php(7)
  13. Flash And Javascript Interaction(1)
  14. Simple Javascript And Password System(9)
  15. Do You Close The Javascript?(4)
  1. Document.write & Noscript Questions (javascript)(1)
  2. Java Vs Javascript(11)
  3. Make A Moderately-secure Password System Using Javascript(4)
  4. Adjusting Rows/cols Of Frames In Frameset Using Javascript Is Not Working In Firefox 3 Is Not Working(4)
  5. Lesser Known Useful Javascript Features(2)
  6. Making A Picture Viewer Website(3)
  7. Javascript And Ajax For The Web, Sixth Edition Review(0)
  8. Creating A Floating Javascript Docking Menu(1)
  9. Browser Compatibility Problem With Firefox - Javascript + Css(3)
  10. Seeking Help With Javascript(1)
  11. Video Play Like Youtube(4)
  12. Validating Javascript(2)
  13. Need Help With Javascript Drag And Drop Script(2)


 



- Lo-Fi Version Time is now: 13th October 2008 - 11:29 AM