You're right about the CF meaning, Aaron.
 
Thanks!
 
I'm running some validation on a per field basis
and I'm using CF for most, but had to use
a Taconite line for change an input attribute
and needed to be able to enclose
the check on the existence of Form.Principal
via js.
 
Rick
 
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Aaron Heimlich
Sent: Monday, March 26, 2007 10:55 PM
To: jQuery Discussion
Subject: Re: [jQuery] How do I write this CF code in JS?
 
My knowledge of CF is rather limited, but from what I can remember, that
code is trying to determine whether the Form variable "Principal" exists
(correct me if I'm wrong). My best guess, then, would be:

if( jQuery(":[EMAIL PROTECTED]'Principal']").val() != null ) {
    // do super cool stuff...
}

The if condition would pass if a form input named "Principal" exists on the
page and it contains *any* value, including an empty string ( "" ). 

What, may I ask, are you trying to do?
On 3/26/07, Rick Faircloth <[EMAIL PROTECTED]> wrote: 
Hi, all..

How do I write this CF code:

<CFIF IsDefined("Form.Principal ")>

</CFIF>

in js?

Rick



_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/



-- 
Aaron Heimlich
Web Developer
[EMAIL PROTECTED]
http://aheimlich.freepgs.com 
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

Reply via email to