>- see footer for list info -<
It works now. At least in latest versions of IE, Nutscrape, Opera,
Firefox.
Changing
document.myform.circuitname.selectedIndex
to
document.getElementById('formbuscador').circuitname.selectedIndex
Thanks for all your help.
Allan
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Steve Duddell
Sent: 21 October 2005 10:32
To: 'Coldfusion Development'
Subject: RE: [CF-Dev] HTML 4.0 and Javascript
>- see footer for list info -<
I have used document.getElementById("circuitname") to reference objects
on the page with JS for ages. Works in IE, and Netscape, and you can use
it to reference anything with a NAME OR an ID. No mucking around
prefacing it with form. or images. or anything else ...
-----Original Message-----
From: Allan Cliff [mailto:[EMAIL PROTECTED]
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
>-<
************************************************************************
****
Notice: This e-mail and any attachments are confidential and may contain
legally privileged information and/or copyright material of Hansen
Technologies Limited or third parties. Copying, distributing,
disclosing, commercialising or otherwise acting in reliance on this
e-mail and any attachments is strictly prohibited unless you are the
addressee of this e-mail and have written permission to do so. If you
have received this e-mail in error please delete this e-mail (including
any copies and
attachments) and contact Hansen Technologies Limited by return e-mail or
by telephone on + 61 39840 3000. Any views expressed in this e-mail are
those of the individual sender and may not necessarily reflect the views
of or be a commitment by the organisation, except where the individual
sender has the authority and expressly states them to be so.
************************************************************************
****
_______________________________________________
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
>-<
______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________
_______________________________________________
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 -<