Was about to suggest the same. Although other browsers support it, but
yeah getElementById() is like a saftey catch on a gun... don't ignore
it and use it as much as possible.

Scott



On Thu, 24 Feb 2005 09:10:52 +1100, grant <[EMAIL PROTECTED]> wrote:
> can i chuck in a
> 
> 'using .all is MS code, one should access the objects in a W3C manner
> by using document.getElementById("Test") '
> 
> Thats all. semantics.
> G
> 
> 
> On Wed, 23 Feb 2005 18:14:56 +1100, Andrew Scott <[EMAIL PROTECTED]> wrote:
> > Steve,
> >
> > I think I did say that I placed an alert there, so I knew it was running the
> > code. Anyway I solved the problem, it's a framework thing we have here that
> > it actually was named something else when its hidden;-)
> >
> >
> > Regards
> > Andrew Scott
> > Technical Consultant
> >
> > NuSphere Pty Ltd
> > Level 2/33 Bank Street
> > South Melbourne, Victoria, 3205
> >
> > Phone: 03 9686 0485  -  Fax: 03 9699 7976
> >
> > -----Original Message-----
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED] On Behalf Of Steve Onnis
> > Sent: Wednesday, 23 February 2005 5:59 PM
> > To: CFAussie Mailing List
> > Subject: [cfaussie] Re: Javascript Checkbox change
> >
> > When you do it do
> >
> > alert(parent.document.all.Test) and see what you get
> >
> > if it finds the checkbox you should get an alert with [object] in it
> >
> > if not something is wrong with your path to the checkbox
> >
> > where is the checkbox in relation to your page?
> >
> > Steve
> >
> > -----Original Message-----
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED] On Behalf Of Andrew Scott
> > Sent: Wednesday, February 23, 2005 5:50 PM
> > To: CFAussie Mailing List
> > Subject: [cfaussie] Re: Javascript Checkbox change
> >
> > Darryl that's what I should have typed, as that is what I have. But when I
> > put this onto a page that is nothing but a check box with a JavaScript it
> > works, but when I place it in my framework it doesn't change, yet it gets to
> > run that bit of code.
> >
> > I am mystified as to why it isn't actually working!
> >
> > Regards
> > Andrew Scott
> > Technical Consultant
> >
> > NuSphere Pty Ltd
> > Level 2/33 Bank Street
> > South Melbourne, Victoria, 3205
> >
> > Phone: 03 9686 0485  -  Fax: 03 9699 7976
> >
> > -----Original Message-----
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED] On Behalf Of Darryl Lyons
> > Sent: Wednesday, 23 February 2005 5:49 PM
> > To: CFAussie Mailing List
> > Subject: [cfaussie] Re: Javascript Checkbox change
> >
> > Try :
> >
> > parent.document.all.Test.checked = false;  //Turn checkbox off
> > parent.document.all.Test.checked = true;  //Turn checkbox On
> >
> > Darryl Lyons
> >
> > [EMAIL PROTECTED] wrote on 23/02/2005 04:36:11 PM:
> >
> > >
> > > I am having a bit of a brain drain here.
> > >
> > > The following javascript I would have thought would change the state
> > > of a checkbox, can anyone tell me why I am screwing this up.
> > >
> > > parent.document.all.Test.value = false;  //Turn checkbox off
> > > parent.document.all.Test.value = true;  //Turn checkbox On
> > >
> > >
> > > Regards
> > > Andrew Scott
> > > Technical Consultant
> > >
> > > NuSphere Pty Ltd
> > > Level 2/33 Bank Street
> > > South Melbourne, Victoria, 3205
> > >
> > > Phone: 03 9686 0485  -  Fax: 03 9699 7976
> > >
> > > ---
> > > You are currently subscribed to cfaussie as:
> > [EMAIL PROTECTED]
> > > To unsubscribe send a blank email to [EMAIL PROTECTED]
> > > daemon.com.au Aussie Macromedia Developers:
> > > http://lists.daemon.com.au/
> >
> > To unsubscribe from this email please forward this email to
> > [EMAIL PROTECTED]
> >
> > This email message is confidential and may be privileged. If you are not the
> > intended recipient please forward the email to [EMAIL PROTECTED]
> > and delete the original.
> >
> > ABN AMRO Morgans Limited and its associates hold or may hold securities in
> > the companies/trusts mentioned herein.
> > Any general advice included in this email has been prepared without taking
> > into account your objectives, financial situation or needs.
> > Before acting on the advice, you should consider its appropriateness or
> > discuss with one of our investment advisors.
> >
> > ABN AMRO Morgans Limited (ABN 49 010 669 726 AFSL 235410) A Participant of
> > ASX Group.
> > A principal member of the Financial Planning Association.
> >
> > ---
> > You are currently subscribed to cfaussie as: [EMAIL PROTECTED] To 
> > unsubscribe
> > send a blank email to [EMAIL PROTECTED]
> > Aussie Macromedia Developers: http://lists.daemon.com.au/
> >
> > ---
> > You are currently subscribed to cfaussie as: [EMAIL PROTECTED] To
> > unsubscribe send a blank email to [EMAIL PROTECTED]
> > Aussie Macromedia Developers: http://lists.daemon.com.au/
> >
> > ---
> > You are currently subscribed to cfaussie as: [EMAIL PROTECTED] To 
> > unsubscribe
> > send a blank email to [EMAIL PROTECTED]
> > Aussie Macromedia Developers: http://lists.daemon.com.au/
> >
> > ---
> > You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
> > To unsubscribe send a blank email to [EMAIL PROTECTED]
> > Aussie Macromedia Developers: http://lists.daemon.com.au/
> >
> 
> ---
> You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
> To unsubscribe send a blank email to [EMAIL PROTECTED]
> Aussie Macromedia Developers: http://lists.daemon.com.au/
> 


-- 
Regards,
Scott Barnes
http://www.mossyblog.com

---
You are currently subscribed to cfaussie as: [email protected]
To unsubscribe send a blank email to [EMAIL PROTECTED]
Aussie Macromedia Developers: http://lists.daemon.com.au/

Reply via email to