SiteExperts.com Logo Home | Community | Developer's Paradise
User Groups | Site Tools | Site Information | Search
 Main Menu
 Forums
SiteExperts.com Forums
All Discussions

SiteExperts Feedback
The Lounge
Dynamic HTML
Site Design/ Critiques
HTML and CSS
XML Technologies
The Wireless Internet
Internet Explorer
Microsoft .NET
The Server
Technical Support

Sponsored Links

User Groups : Forums : SiteExperts : Dynamic HTML :

Previous DiscussionNext Discussion
 Trouble baking a cookie...

I am using the following script in an attempt to bake my first cookie. Netscape is telling me getCookie is not defined. What is wrong?

if (document.cookie == "") {
var name=prompt("What is your name?","");
document.cookie="name="+name
}

var name = getCookie("name");

alert("Welcome, " + name + "!");

Started By Asmor on Apr 13, 1999 at 12:58:39 PM

2 Response(s) | Reply

Earlier Replies | Replies 1 to 2 of 2 | Later Replies
Paintballr on Apr 13, 1999 at 10:08:16 PM (# 1)

Im new to cookies but im guessing that in the first line u didnt specify WHAT cookie i think it shud B something like this document.cookie.name . I THINK. I am brand new to cookies.

 

 

PAINTBALLR
Dan6992 on Apr 14, 1999 at 12:06:06 AM (# 2)

You are missing the getCookie() function!!! I think your using the script from builder.com, so go back to their cookie cutter tool (http://www.builder.com/Programming/Kahn/111997/toolcc.html). At the very top of the article click the "cookie functions" link, and it will pop up a window with all the code you need.


Earlier Replies | Replies 1 to 2 of 2 | Later Replies

To respond to a discussion, you must first logon.

If you are not registered, please register yourself to become a member of the SiteExperts.community.

User Name
Password
Copyright 1997-2004 InsideDHTML.com, LLC. All rights reserved.