1 Reply Latest reply on Jul 21, 2006 11:45 AM by Jim_Esteban

    getURL() problem with getCookie()

    Newt99

      Hello,

      Is use a Javascript call with getURL() in order to set then get a cookie:

      // Set Javascript cookie
      getURL("javascript:setCookie( 'continent', '"+oMC_Map._name+"', '', '/', '', '');");

      //
      // Get Javascript cookie
      sSelectedContinent = getURL("javascript:getCookie('continent');");

      The cookie is set but when I get the value, I loose the page containing the SWF and the content of the cookie is displayed instead of it.

      What's wrong ?

      Thanks,
      Karl.