Hi,
Apaxe2000 wrote:
Hi.
I create this function to verify if cookies are enables in the
browser.
<script type="text/javascript" language="JavaScript">
document.cookie = "TemporaryTestCookie=yes;";
if(document.cookie.indexOf("TemporaryTestCookie=") == -1) {
alert("Atention: You have to set cookies on.");
}
</script>
This function works well in Firefox, but dont work im Microsoft
Internet Explorer 6.
Why? I dont undestand why!
Can anyone helpme? Thanks.
I am not totally sure why it doesn't work in IE (no time for extensive
checks, sorry), my guess is that it has to do with the path.
Anyway, check this page. I published my cookie object recently, and it
offers methods doing exactly what you want. Check the code and feel free
to use it.
http://www.galasoft-lb.ch/myjavascri...kie/index.html
HTH,
Laurent
--
Laurent Bugnion, GalaSoft
Software engineering:
http://www.galasoft-LB.ch
Private/Malaysia:
http://mypage.bluewin.ch/lbugnion
Support children in Calcutta:
http://www.calcutta-espoir.ch