Is getElementById a method of a form?
Shouldn't it just be document.getElementById()?
Adrian
-Original Message-
From: Scott Stewart [mailto:saste...@email.unc.edu]
Sent: 13 January 2009 16:30
To: cf-talk
Subject: Javascript compatibility question
Hey all,
I'm trying to
Try the syntax of one of the following examples:
document.form1.pre_absent.disabled = true;
document.getElementById(pre_absent).disabled = true;
HTH
Steve
From: Scott Stewart [saste...@email.unc.edu]
Sent: Tuesday, January 13, 2009 11:29 AM
To: cf-talk
getElementById() is a javascript function that finds a specified element
on a page it can be a form or page element.
in this case I'm trying to disable/enable radio buttons.
Adrian Lynch wrote:
Is getElementById a method of a form?
Shouldn't it just be document.getElementById()?
Adrian
Yup, I know, but is there a method form.getElementByID()? I've only ever
used it in document.
Fancy trying jQuery instead?
Adrian
-Original Message-
From: Scott Stewart [mailto:saste...@email.unc.edu]
Sent: 13 January 2009 16:51
To: cf-talk
Subject: Re: Javascript compatibility
-Original Message-
From: Scott Stewart [mailto:saste...@email.unc.edu]
Sent: 13 January 2009 16:51
To: cf-talk
Subject: Re: Javascript compatibility question
getElementById() is a javascript function that finds a specified
element
on a page it can be a form or page element
getElementById() is a javascript function that finds a specified element
on a page it can be a form or page element.
At least in IE, this methods applies only to the document object.
see:
http://www.w3.org/TR/2000/WD-DOM-Level-1-2929/level-one-html.html#ID-40002357
I'm surprised it works
I think what Adrian's getting at is your reference to the elements should be
document.getElementById('foo'), not document.form1.getElementById('foo').
can you give that a shot?
On Tue, Jan 13, 2009 at 8:50 AM, Scott Stewart saste...@email.unc.eduwrote:
getElementById() is a javascript function
tried that, and no love...
Charlie Griefer wrote:
I think what Adrian's getting at is your reference to the elements should be
document.getElementById('foo'), not document.form1.getElementById('foo').
can you give that a shot?
On Tue, Jan 13, 2009 at 8:50 AM, Scott Stewart
Yeah, what Charlie said :OD
-Original Message-
From: Charlie Griefer [mailto:charlie.grie...@gmail.com]
Sent: 13 January 2009 17:11
To: cf-talk
Subject: Re: Javascript compatibility question
I think what Adrian's getting at is your reference to the elements
should
do you have multiple elements on the page with the same ID?
On Tue, Jan 13, 2009 at 9:17 AM, Scott Stewart saste...@email.unc.eduwrote:
tried that, and no love...
Charlie Griefer wrote:
I think what Adrian's getting at is your reference to the elements should
be
I don't think so, this works in FF, you'd think it would balk at that..
but I'll check again.
Charlie Griefer wrote:
do you have multiple elements on the page with the same ID?
On Tue, Jan 13, 2009 at 9:17 AM, Scott Stewart saste...@email.unc.eduwrote:
tried that, and no love...
[charlie.grie...@gmail.com]
Sent: Tuesday, January 13, 2009 12:48 PM
To: cf-talk
Subject: Re: Javascript compatibility question
do you have multiple elements on the page with the same ID?
On Tue, Jan 13, 2009 at 9:17 AM, Scott Stewart saste...@email.unc.eduwrote:
tried that, and no love
Paste the whole page/code in question on pastebin so we can see the whole
thing
http://pastebin.com/
On Tue, Jan 13, 2009 at 12:51 PM, Scott Stewart saste...@email.unc.eduwrote:
I don't think so, this works in FF, you'd think it would balk at that..
but I'll check again.
Charlie Griefer
hmm... true. good point. is there any chance you can post the full
rendered html to nomorepasting.com so i can take it for a spin locally?
On Tue, Jan 13, 2009 at 9:51 AM, Scott Stewart saste...@email.unc.eduwrote:
I don't think so, this works in FF, you'd think it would balk at that..
but
14 matches
Mail list logo