DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 3 of 3
  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

    >
    >



Bookmarks

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


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links