How do I get the equivent of this line to work in NS 6+


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: How do I get the equivent of this line to work in NS 6+

  1. #1
    Some Dude Guest

    How do I get the equivent of this line to work in NS 6+


    The following javascript line works in ie... How do I get the equivent of
    it to work in NS 6+??

    -------------------------------------------------
    document.getElementById("someid").parentElement.id


    Thanks,
    Some Dude

  2. #2
    Dan Guest

    Re: How do I get the equivent of this line to work in NS 6+

    That code is DOM1 and should work in NS6, have you tried?

    Danny


    "Some Dude" <some@dude.com> wrote in message
    news:3e318e3f$1@tnews.web.devx.com...
    >
    > The following javascript line works in ie... How do I get the equivent of
    > it to work in NS 6+??
    >
    > -------------------------------------------------
    > document.getElementById("someid").parentElement.id
    >
    >
    > Thanks,
    > Some Dude




  3. #3
    Some Dude Guest

    Re: How do I get the equivent of this line to work in NS 6+


    I did try and it did not work in ns 6... however after some more research,
    I found that document.getElementById("someid").parentNode.id works the same
    way..



    "Dan" <dann@hotpop.com> wrote:
    > That code is DOM1 and should work in NS6, have you tried?
    >
    > Danny
    >
    >
    >"Some Dude" <some@dude.com> wrote in message
    >news:3e318e3f$1@tnews.web.devx.com...
    >>
    >> The following javascript line works in ie... How do I get the equivent

    of
    >> it to work in NS 6+??
    >>
    >> -------------------------------------------------
    >> document.getElementById("someid").parentElement.id
    >>
    >>
    >> Thanks,
    >> Some Dude

    >
    >



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center