Ah... I stand corrected.  I'll have to give that way a shot.  The person who
informed me of it used that syntax and it's worked for me.... but now I know
better.

|-----Original Message-----
|From: Caulfield, Michael [mailto:[EMAIL PROTECTED]]
|Sent: Tuesday, March 13, 2001 2:11 PM
|To: CF-Talk
|Subject: RE: Javascript IsDefined
|
|
|Actually typeof is an operator, not a function, so it is 
|generally used the
|way Dave described.
|
|-----Original Message-----
|From: Patricia Lee [mailto:[EMAIL PROTECTED]]
|Sent: Tuesday, March 13, 2001 11:51 AM
|To: CF-Talk
|Subject: RE: Javascript IsDefined
|
|
|The correct syntax is
|if (typeof(myvarname) == "undefined") {
|       [do your stuff]
|}
|
||-----Original Message-----
||From: Hayes, David [mailto:[EMAIL PROTECTED]]
||Sent: Tuesday, March 13, 2001 10:32 AM
||To: CF-Talk
||Subject: RE: Javascript IsDefined
||
||
||You can use the "typeof" operator.
||
||if (typeof myVarName == "undefined"){
||
||}
||
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to