excuse me in fact i use window.setSrc("an other file.svg") ----- Original Message ----- From: Erwan TROEL To: svg-developers@yahoogroups.com Sent: Friday, June 17, 2005 3:11 PM Subject: Re: [svg-developers] Re: cookie
to change location in the same function event i use window.setSource("") ----- Original Message ----- From: welkerpaul To: svg-developers@yahoogroups.com Sent: Friday, June 17, 2005 3:00 PM Subject: [svg-developers] Re: cookie There you are. The whole of svg-dhtml X-Dom scripting is just pathological for the time being:( Right now you've got to drill down the agonizing mystery of document! =document... What's your target browser, what's you target ?plug-in?, how do you embject your svg, what version, etcpp.? Start with a googling for a working sample concerning your exercise and test+develop on the top of it. There're plenty of samples if you'll stick to <embed> + asv3. --- In svg-developers@yahoogroups.com, "Erwan TROEL" <[EMAIL PROTECTED]> wrote: > i use window.parent.document.cookie but i have this error message: > window.parent has no properties > ----- Original Message ----- > From: welkerpaul > To: svg-developers@yahoogroups.com > Sent: Friday, June 17, 2005 1:50 PM > Subject: [svg-developers] Re: cookie > > > 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 svg-developers@yahoogroups.com, "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: svg-developers- [EMAIL PROTECTED] > -or- > visit http://groups.yahoo.com/group/svg-developers and click "edit my membership" > ---- > > > > ------------------------------------------------------------------- ----------- > Yahoo! Groups Links > > a.. To visit your group on the web, go to: > http://groups.yahoo.com/group/svg-developers/ > > b.. To unsubscribe from this group, send an email to: > [EMAIL PROTECTED] > > c.. Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. > > > > [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 a.. To visit your group on the web, go to: http://groups.yahoo.com/group/svg-developers/ b.. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] c.. Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. [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 a.. To visit your group on the web, go to: http://groups.yahoo.com/group/svg-developers/ b.. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] c.. Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. [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/