read and write cookie without refresh

Discussion in 'JavaScript' started by driesdk, Aug 7, 2006.

  1. #1
    Hi, I´m making a script, where a cookie is loaded and written on a place, but if the cookie is not on the users computer, I make it on the page using
    Code:

    setcookie ("cookie", "the text of the cookie", time()+3600);

    and later in the page I want the cookie to be loaded in a specific place.
    But ther problem is that the cookie is not loaded without the page is being refreshed, is there a solution for something like this?
    Greetz
     
    driesdk, Aug 7, 2006 IP