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. Dynamic Height

Dynamic Height

Scheduled Pinned Locked Moved Web Development
javascripttutorialquestion
3 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.
  • U Offline
    U Offline
    User 616616
    wrote on last edited by
    #1

    :confused:I have a table which grows dynamically. Every row has different height due to its text inside which varies so the height of the row. Does someone know how to find pixel height of the table? I am using JavaScript. Agha Khan

    Richard DeemingR 2 Replies Last reply
    0
    • U User 616616

      :confused:I have a table which grows dynamically. Every row has different height due to its text inside which varies so the height of the row. Does someone know how to find pixel height of the table? I am using JavaScript. Agha Khan

      Richard DeemingR Offline
      Richard DeemingR Offline
      Richard Deeming
      wrote on last edited by
      #2

      Try the offsetHeight property: http://msdn.microsoft.com/workshop/author/dhtml/reference/properties/offsetheight.asp[^]


      "These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer

      "These people looked deep within my soul and assigned me a number based on the order in which I joined" - Homer

      1 Reply Last reply
      0
      • U User 616616

        :confused:I have a table which grows dynamically. Every row has different height due to its text inside which varies so the height of the row. Does someone know how to find pixel height of the table? I am using JavaScript. Agha Khan

        Richard DeemingR Offline
        Richard DeemingR Offline
        Richard Deeming
        wrote on last edited by
        #3

        Agha Khan wrote: Dear Richard Deeming: Thank you for a kind reply. It does work perfectly. Let me ask you another question. You might know the answer. I created a calendar, which has a table. Every cell of the calendar (table) has a text associated (Date) with it. The user can double click to select the text, but I want to prevent that. Do you any ideas how we can stop double click? By the way I went to UMIST (Manchester, UK) for my BS in Mathematics. Best regards, Agha Try adding onselectstart="return false;" to your table.


        "These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer

        "These people looked deep within my soul and assigned me a number based on the order in which I joined" - Homer

        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