thanks for that now how to integrate this cookie with the other code i
have as told you guys never done it before please help with this

function setCookie(c_name,value,expiredays)
{
var exdate=new Date();
exdate.setDate(exdate.getDate()+expiredays);
document.cookie=c_name+ "=" +escape(value)+
((expiredays==null) ? "" : ";expires="+exdate.toGMTString());
}



<script type="text/javascript">
if((navigator.userAgent.match(/iPhone/i))||(navigator.userAgent.
match(/iPod/i))){
var question = confirm('Would you like to view the iPhone-optimized
version of our site?')
if (question){
window.location = 'http://lite.iphonemicrosites.com/home.html';


}else{


window.location = 'http://iphonemicrosites.com/mainsite.html';

}
}
}


</script> On Sep 15, 12:11 pm, majna <[email protected]> wrote:
> http://www.w3schools.com/JS/js_cookies.asp
>
> On Sep 15, 7:35 pm, cakephp_rocks <[email protected]> wrote:
>
>
>
> > how to save it in cookie and any idea never done it before
>
> > On Sep 15, 10:29 am, iFeghali <[email protected]> wrote:
>
> > > in the default view of your site or maybe the default template ? but
> > > you'd better save the answer in a cookie or something.- Hide quoted text -
>
> - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to