You want just the double quotes,
if(getCookie('yourname') != '')
{
document.write(getCookie('yourname'));
}
"if(getCookie('yourname') != null)"
Will test if the variable 'yourname' exists.
Morg.
-----Original Message-----
From: Balaji [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, 24 June 2003 3:04 PM
To: CFAussie Mailing List
Subject: [cfaussie] RE: _javascript_ : Trap null in cookie
Tried without double quote as well. Still displays Welcome null.
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Taco Fleur
Sent: Tuesday, June 24, 2003 2:53 PM
To: CFAussie Mailing List
Subject: [cfaussie] RE: _javascript_ : Trap null in cookie
Without the double quotes
if(getCookie('yourname') != null)
{
document.write(getCookie('yourname'));
}
Taco
----------------------------------------------------------------------------
This email, together with any attachments, is intended for the named
recipient(s) only and may contain privileged and confidential information.
If
received in error, please inform the sender as quickly as possible and
delete
this email and any copies from your computer system network.
If not an intended recipient of this email, you must not copy, distribute or
rely upon it and any form of disclosure, modification, distribution and/or
publication of this email is prohibited.
Unless stated otherwise, this email represents only the views of the sender
and
not the views of the Queensland Government.
----------------------------------------------------------------------------
---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]
MX Downunder AsiaPac DevCon - http://mxdu.com/
---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]
MX Downunder AsiaPac DevCon - http://mxdu.com/
---You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]
MX Downunder AsiaPac DevCon - http://mxdu.com/
______________________________________________________________________ This email, including attachments, is intended only for the addressee and may be confidential, privileged and subject to copyright. If you have received this email in error, please advise the sender and delete it. If you are not the intended recipient of this email, you must not use, copy or disclose its content to anyone. You must not copy or communicate to others content that is confidential or subject to copyright, unless you have the consent of the content owner. |
