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 wrote: > I don't think so, this works in FF, you'd think it would balk at that.. > but I'll check again. > >

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 wrote: > 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

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 wrote: > tried that, and no love... > > Charlie Grie

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 wrote: > > >> tried that, and no love... >> >> Charlie Griefer w

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 wrote: > 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 docu

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 t

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 wrote: > >

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 wrote: > getElementById() is a javascript function that finds a specified

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 f

Re: Javascript compatibility question

2009-01-13 Thread Scott Stewart
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 question >> >> getElementById() is a ja

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 > Sub

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 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 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 t

Re: JavaScript Compatibility

2004-04-08 Thread Charlie Griefer
Joe: Can you throw an alert in the first line of the function? first alert a static value just to see if the function's getting called at all: function switchLocation(loc) {  alert('foo');     ... } then try alerting the 'loc' value: function switchLocation(loc) {  alert(loc);  ...

Re: JavaScript Compatibility

2004-04-08 Thread Joe Eugene
1) did you copy/paste this code?  You're calling swithLocation(), but the function name is switchLocation() :) didnt paste the code.. just wrote it out, its working fine for all lastest versions of IE and Netscape. 2) instead of document.forms[0].myList.value, pass the following argument: this.op

Re: JavaScript Compatibility

2004-04-08 Thread Cutter (CF-Talk)
Any close to current version of AOL that would work on Win95 would have used the IE browser control as it's main browser window, and would have used the control of whichever version of IE is loaded on the system. If the user never did a windows update (and quite probably never has or could) the

RE: JavaScript Compatibility

2004-04-07 Thread Charlie Griefer
2 things: 1) did you copy/paste this code?  You're calling swithLocation(), but the function name is switchLocation() :) 2) instead of document.forms[0].myList.value, pass the following argument: this.options[this.selectedIndex].value In a , the options are an array to JS.  selectedIndex is the c

Re: JavaScript Compatibility

2004-04-07 Thread brobborb
prolly cos it was netscape based.  remember back in those days tryin to code for both NS and IE was a nightmare   - Original Message -   From: Joe Eugene   To: CF-Talk   Sent: Thursday, April 08, 2004 12:13 AM   Subject: _javascript_ Compatibility   Does anybody know why this would Not