document.body.clientWidth

Discussion in 'Javascript' started by kmcdonald718@yahoo.com, Nov 1, 2007.

  1. Guest

    Our site has a menu with some submenus that is implemented using some
    javascript to determine the position of where to display the submenus.

    To do this, it does a document.body.clientWidth and some other stuff
    and does some calculations based on that.

    We have one page where the submenus are incredibly slow in
    displaying. I tracked it down to the statement that gets the
    document.body.clientWidth

    Does anyone know what to look at as far as what might be different on
    this page that would cause it to be so much slower? Would it be
    related to the # of elements on the page - this page is the biggest
    form on our site, and there are a lot of elements, but besides that,
    there's really not much that's different.
     
    , Nov 1, 2007
    #1
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. London Boy
    Replies:
    2
    Views:
    508
    Keith Bowes
    Jan 12, 2004
  2. Tom

    IE 6 - clientWidth sometimes 0!?

    Tom, Apr 20, 2005, in forum: Javascript
    Replies:
    5
    Views:
    229
    Dietmar Meier
    Apr 22, 2005
  3. X t l a n

    document.body.clientWidth & Mozila<1.1

    X t l a n, Sep 1, 2005, in forum: Javascript
    Replies:
    0
    Views:
    180
    X t l a n
    Sep 1, 2005
  4. X t l a n

    document.body.clientWidth & Mozila<1.1

    X t l a n, Sep 1, 2005, in forum: Javascript
    Replies:
    2
    Views:
    268
    X t l a n
    Sep 1, 2005
  5. Noah Sussman
    Replies:
    2
    Views:
    257
    Noah Sussman
    Jun 23, 2006
  6. Replies:
    1
    Views:
    192
  7. liketofindoutwhy

    node.offsetWidth vs clientWidth vs scrollWidth

    liketofindoutwhy, Apr 24, 2008, in forum: Javascript
    Replies:
    5
    Views:
    360
    Rik Wasmus
    Apr 24, 2008
  8. Martin Rinehart

    document or document.body

    Martin Rinehart, Dec 6, 2008, in forum: Javascript
    Replies:
    13
    Views:
    414
    Martin Honnen
    Dec 7, 2008
Loading...