Javascript compatibility question

2009-01-13 Thread Scott Stewart
Hey all, I'm trying to disable radio button based on a selection. These functions are called from an onClick. Any reason why they'd work in Firefox and not in IE 7? script language=javascript type=application/javascript function disableOnPaidLeave(){

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

RE: Javascript compatibility question

2009-01-13 Thread Milburn, Steve
Subject: Javascript compatibility question Hey all, I'm trying to disable radio button based on a selection. These functions are called from an onClick. Any reason why they'd work in Firefox and not in IE 7? script language=javascript type=application/javascript function disableOnPaidLeave

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:30 To: cf-talk Subject: Javascript compatibility question Hey all, I'm trying to disable radio button based on a selection. These functions are called from an onClick. Any reason why

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
: 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 disable radio button based on a selection. These functions are called from an onClick. Any reason why they'd work in Firefox

Re: Javascript compatibility question

2009-01-13 Thread Scott Stewart
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 disable radio button based on a selection. These functions are called from

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

RE: JavaScript Compatibility

2004-04-08 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 select, the options are an array to JS.selectedIndex is

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)

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:

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); ... } -

JavaScript Compatibility

2004-04-07 Thread Joe Eugene
Does anybody know why this would Not be Compatible with Win 95/AOL? !-- This is in *.js file -- script language=_javascript_ function switchLocation(loc){ location.href = ""> return true; } /script select name=myList > option value=http://www.mm.commm/option option

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 be Compatible