Yes, it is as vanilla as it gets and easiest for most people to read and
understand. But if you'd like to make it NOT work in all browsers that can
read JS you can try some of these lol

document.forms[0].myfield.value
document.forms[0]['myfield'].value
document.forms['myform'].myfield.value
document.forms['myform']['myfield'] .value


-----Original Message-----
From: Charlie Griefer [mailto:[EMAIL PROTECTED] 
Sent: Thursday, December 21, 2006 4:23 PM
To: CF-Talk
Subject: Re: Javascript help

i'm pretty sure it'll work.  but of course i say that and invariably
someone comes along and proves that it won't :)

seriously tho.  document.formname.fieldname.value is about as standard
as it gets AFAIK.

On 12/21/06, loathe <[EMAIL PROTECTED]> wrote:
> You can stack arguments that way, but will calling the field that way work
> cross browser?
>
> I don't know, I still write it using different techniques.
>
> > -----Original Message-----
> > From: Charlie Griefer [mailto:[EMAIL PROTECTED]
> > Sent: Thursday, December 21, 2006 4:09 PM
> > To: CF-Talk
> > Subject: Re: Javascript help
> >
> > That should work cross-browser, no?  it's pretty standard JS syntax.
> >
> > onfocus="statement1; statement2; statement3..."
> >
> > as long as each is separated by a semi-colon it should be ok?
> >
> > On 12/21/06, loathe <[EMAIL PROTECTED]> wrote:
> > > No it won't.
> > >
> > > For that you'll need a function and you'll need to write a javascript
> > > browser diction script and have separate clauses in the function for
> > each
> > > browser.
> > >
> > > Mainly you'll use document.all and document.getElementById()
> > >
> > > > -----Original Message-----
> > > > From: Doug Brown [mailto:[EMAIL PROTECTED]
> > > > Sent: Thursday, December 21, 2006 3:51 PM
> > > > To: CF-Talk
> > > > Subject: Re: Javascript help
> > > >
> > > > This seems to work, but will it work in all browser?
> > > >
> > > >  onFocus="document.updClassified.asking1.value =
> > > > '',document.updClassified.asking2.value = ''"
> > > >
> > > > Doug B.
> > > >
> > > >
> > > >
> > >
> > >
> >
> >
>
> 



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Create robust enterprise, web RIAs.
Upgrade & integrate Adobe Coldfusion MX7 with Flex 2
http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:264831
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to