RE: Javascript compatibility question

2009-01-13 Thread Adrian Lynch
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

RE: Javascript compatibility question

2009-01-13 Thread Milburn, Steve
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

Re: Javascript compatibility question

2009-01-13 Thread Scott Stewart
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

RE: Javascript compatibility question

2009-01-13 Thread Adrian Lynch
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

Re: Javascript compatibility question

2009-01-13 Thread Scott Stewart
-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

Re: Javascript compatibility question

2009-01-13 Thread Claude Schneegans
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

Re: Javascript compatibility question

2009-01-13 Thread Charlie Griefer
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

Re: Javascript compatibility question

2009-01-13 Thread Scott Stewart
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

RE: Javascript compatibility question

2009-01-13 Thread Adrian Lynch
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

Re: Javascript compatibility question

2009-01-13 Thread Charlie Griefer
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

Re: Javascript compatibility question

2009-01-13 Thread Scott Stewart
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...

RE: Javascript compatibility question

2009-01-13 Thread Milburn, Steve
[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

Re: Javascript compatibility question

2009-01-13 Thread Gerald Guido
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

Re: Javascript compatibility question

2009-01-13 Thread 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