[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-bugs-dist
Subject:    [Bug 55368] New: JavaScript Cookie Reading not wotking
From:       DAryl Hansen <daryl () mauimail ! com>
Date:       2003-03-01 8:34:13
[Download RAW message or body]

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
     
http://bugs.kde.org/show_bug.cgi?id=55368     
           Summary: JavaScript Cookie Reading not wotking
           Product: konqueror
           Version: unspecified
          Platform: unspecified
        OS/Version: other
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: kjs
        AssignedTo: konq-bugs@kde.org
        ReportedBy: daryl@mauimail.com


Version:            (using KDE KDE 3.1KDE 1.2)
Installed from:    Unlisted Binary PackageUnlisted Binary Package
OS:          Other

JavaScripts that read cookies do not seem to work. for example, this below script \
that reads a cookie named, "id" does not work:

<SCRIPT language="JavaScript">
<!-- Hide from older browsers
  var bikky = document.cookie;
 function getCookie(name) { // use: getCookie("name");
    var index = bikky.indexOf(name + "=");
    if (index == -1) return null;
    index = bikky.indexOf("=", index) + 1;
    var endstr = bikky.indexOf(";", index);
    if (endstr == -1) endstr = bikky.length;
    return unescape(bikky.substring(index, endstr));
  }

  function writeCookie(name) {
    if(getCookie(name) != null)
      document.write(" " + getCookie(name) + " ");
  }
// Stop hiding --></SCRIPT>

<SCRIPT language="JavaScript">
<!-- begin
writeCookie("id");
// end -->
</SCRIPT>


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic