>- see footer for list info -<
erm, off the top of my head, I think you want to write your own getElement
function so that it works in nutscrape as well.
something like:

function getElement(id){
        if(document.getElementByID){
                return document.getElementByID(id);
        }else{
                return document.all[id];
        }
}



-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Allan Cliff
Sent: 21 October 2005 09:10
To: Coldfusion Development
Subject: [CF-Dev] HTML 4.0 and Javascript


>- see footer for list info -<
I am trying to make my HTML comply with an HTML Validator.

Now it says that the attributes NAME is no longer a valid <FORM>
attributes.
It does tell me I can use ID.

So I substituted NAME for ID and my javascript stopped working.

Things like this: document.myform.circuitname.selectedIndex.

I suppose I could use form[0] but what is the proper / better way to do
it using ID.
GetElementByID ?

Anyone up for a Friday morning javascript brainstorm?

Thanks
Allan
_______________________________________________

For details on ALL mailing lists and for joining or leaving lists, go to
http://list.cfdeveloper.co.uk/mailman/listinfo

--
CFDeveloper Sponsors:-
>- Hosting provided by www.cfmxhosting.co.uk -<
>- Forum provided by www.fusetalk.com -<
>- DHTML Menus provided by www.APYCOM.com -<
>- Lists hosted by www.Gradwell.com -<
>- CFdeveloper is run by Russ Michaels, feel free to volunteer your help -<

_______________________________________________

For details on ALL mailing lists and for joining or leaving lists, go to 
http://list.cfdeveloper.co.uk/mailman/listinfo

--
CFDeveloper Sponsors:-
>- Hosting provided by www.cfmxhosting.co.uk -<
>- Forum provided by www.fusetalk.com -<
>- DHTML Menus provided by www.APYCOM.com -<
>- Lists hosted by www.Gradwell.com -<
>- CFdeveloper is run by Russ Michaels, feel free to volunteer your help -<

Reply via email to