Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. document.getElementById(ID).all not working with firefox 3.0

document.getElementById(ID).all not working with firefox 3.0

Scheduled Pinned Locked Moved ASP.NET
6 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    DineshSharmain
    wrote on last edited by
    #1

    Hi I am implementing document.getElementById(ID).all to get all the data (working fine with IE :) ) but unfortunately Firefox 3.0 :( doesn't support this. anybody has done a workaround for this please reply. :doh: Thanks

    Dinesh Sharma

    P 1 Reply Last reply
    0
    • D DineshSharmain

      Hi I am implementing document.getElementById(ID).all to get all the data (working fine with IE :) ) but unfortunately Firefox 3.0 :( doesn't support this. anybody has done a workaround for this please reply. :doh: Thanks

      Dinesh Sharma

      P Offline
      P Offline
      Parwej Ahamad
      wrote on last edited by
      #2

      document.getElementById(ID).all to get all the data get all the data ? mean what, do you want to get the Value of that control ? If yes then use

      document.getElementById(ID).value

      That would be work for all browser.

      Parwej Ahamad g.parwez@gmail.com

      D 1 Reply Last reply
      0
      • P Parwej Ahamad

        document.getElementById(ID).all to get all the data get all the data ? mean what, do you want to get the Value of that control ? If yes then use

        document.getElementById(ID).value

        That would be work for all browser.

        Parwej Ahamad g.parwez@gmail.com

        D Offline
        D Offline
        DineshSharmain
        wrote on last edited by
        #3

        Thanks Parwej The Id here is a table that contains multiple rows like grid so by using all i am getting all the rows ... for this control value is not supported

        Dinesh Sharma

        P 1 Reply Last reply
        0
        • D DineshSharmain

          Thanks Parwej The Id here is a table that contains multiple rows like grid so by using all i am getting all the rows ... for this control value is not supported

          Dinesh Sharma

          P Offline
          P Offline
          Parwej Ahamad
          wrote on last edited by
          #4

          Ok, Can you try like as below:

          var myTable=document.getElementById(ID);

          Then access all rows from myTable object.

          Parwej Ahamad g.parwez@gmail.com

          D 1 Reply Last reply
          0
          • P Parwej Ahamad

            Ok, Can you try like as below:

            var myTable=document.getElementById(ID);

            Then access all rows from myTable object.

            Parwej Ahamad g.parwez@gmail.com

            D Offline
            D Offline
            DineshSharmain
            wrote on last edited by
            #5

            it will return an object ....its ok. but which property will return the number of rows.... I tried the rows property but its not returning all the rows.

            Dinesh Sharma

            P 1 Reply Last reply
            0
            • D DineshSharmain

              it will return an object ....its ok. but which property will return the number of rows.... I tried the rows property but its not returning all the rows.

              Dinesh Sharma

              P Offline
              P Offline
              Parwej Ahamad
              wrote on last edited by
              #6

              http://www.tek-tips.com/viewthread.cfm?qid=1502722&page=9[^] Go through above link or search on google you will found may samplles.

              Parwej Ahamad g.parwez@gmail.com

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups