I think we must all know Ted's away until Monday !!
----- Original Message -----
From: "Ted Barry" <TBARRY@centralsan.dst.ca.us>
To: <web400@midrange.com>
Sent: Friday, May 03, 2002 2:19 PM
Subject: Re: [WEB400] JavaScript Problems


I'm out of the office today, but I'll return on Monday, May 6th. If you need 
further assistance, please contact Mark Greenawalt at
x311, John Censoplano at x353, or Spencer Chun at x354.

Thanks,
 Ted

>>> "web400@midrange.com" 05/03/02 06:03 >>>

I'm out of the office today, but I'll return on Monday, May 6th. If you need 
further assistance, please contact Mark Greenawalt at
x311, John Censoplano at x353, or Spencer Chun at x354.

Thanks,
 Ted

>>> "web400@midrange.com" 05/03/02 05:58 >>>

This is a multi-part message in MIME format.
--
[ Picked text/plain from multipart/alternative ]
Joel or Anyone,
    My GetCookie function is not getting the cookie, it keeps returning null. 
Here is my source:

<script language= "javascript">
var useridCookie = "useridCookie";
function GetCookie(name) {
   var value = name + "=";
   var i = 0;
   while(i < document.cookie.length) {
      var j = (i + value.length);
      if (document.cookie.substring(i,j) == value) {
         var len = document.cookie.indexOf(";",j);
         if (len == -1)
            len = document.cookie.length;
         return unescape(document.cookie.substring(j, len));
      }
      i = document.cookie.indexOf(" ", i) + 1;
      if (i == 0) break;
   }
   return null;
}


function changeForm() {
 var cookieValue = GetCookie(useridCookie);
  document.useridform.USERID.value = cookieValue;
 document.useridform.submit()
}
</script>

Here is the form:

<form name="useridform" method="GET" action="/cgi-bin/iteminq">
 <input type="hidden" name="XCAT" value="ACC">
 <input type="hidden" name="USERID" value="GUEST">
 </form>


Here is the line that calls the script:

<td><input type="button"  value="test" target="mainFrame" 
onClick="changeForm();"></td>


Please Help!!!


Thanks,

Justin Houchin
Programmer
Reliatek, Inc
jhouchin9@charter.net
_______________________________________________
This is the Web Enabling the AS400 / iSeries (WEB400) mailing list
To post a message email: WEB400@midrange.com
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/cgi-bin/listinfo/web400
or email: WEB400-request@midrange.com
Before posting, please take a moment to review the archives
at http://archive.midrange.com/web400.


_______________________________________________
This is the Web Enabling the AS400 / iSeries (WEB400) mailing list
To post a message email: WEB400@midrange.com
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/cgi-bin/listinfo/web400
or email: WEB400-request@midrange.com
Before posting, please take a moment to review the archives
at http://archive.midrange.com/web400.


_______________________________________________
This is the Web Enabling the AS400 / iSeries (WEB400) mailing list
To post a message email: WEB400@midrange.com
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/cgi-bin/listinfo/web400
or email: WEB400-request@midrange.com
Before posting, please take a moment to review the archives
at http://archive.midrange.com/web400.




As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.