The document within the svg context is the SVGDocument object. Not 
that I am aware of a SVGDocument cookie property..
The browser's cookie string should be available with the help of 
window.parent.document.cookie for svg code.
hth
Paul
--- In [email protected], "Erwan TROEL" <[EMAIL PROTECTED]> 
wrote:
> 
> 
>   i try to create a cookie when the user select an item in a menu 
but the
>   cookie is not created on the disk
> 
>   my code:
>   this event is launched by the selection in the menu:
> 
>   sLHLeListener.prototype.handleEvent = function(evt) {
> 
>       if (evt.type == "click") {
> 
>              var date_exp = new Date();
>              date_exp.setTime(date_exp.getTime()+
(365*24*3600*1000));
> 
>              SetCookie("repPDV","repPDV",date_exp);
> 
>      }
> 
>   }
> 
> 
> 
> 
>   function SetCookie (name, value,expires) {
>   var argv=SetCookie.arguments;
>   var argc=SetCookie.arguments.length;
>   var expires=(argc > 2) ? argv[2] : null;
>   var path=(argc > 3) ? argv[3] : null;
>   var domain=(argc > 4) ? argv[4] : null;
>   var secure=(argc > 5) ? argv[5] : false;
>   document.cookie=name+"="+escape(value)+
>     ((expires==null) ? "" : ("; expires="+expires.toGMTString()))+
>     ((path==null) ? "" : ("; path="+path))+
>     ((domain==null) ? "" : ("; domain="+domain))+
>     ((secure==true) ? "; secure" : "");
> 
>   }
> 
> 
> 
> 
> [Non-text portions of this message have been removed]




-----
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click "edit my 
membership"
---- 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/svg-developers/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to