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(){
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
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
-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
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
: 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
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
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
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
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)
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:
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);
...
}
-
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
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
21 matches
Mail list logo