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. Advertising

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. Tom

    IE 6 - clientWidth sometimes 0!?

    Tom, Apr 20, 2005, in forum: Javascript
    Replies:
    5
    Views:
    154
    Dietmar Meier
    Apr 22, 2005
  2. 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:
    84
    X t l a n
    Sep 1, 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:
    2
    Views:
    174
    X t l a n
    Sep 1, 2005
  4. Noah Sussman
    Replies:
    2
    Views:
    139
    Noah Sussman
    Jun 23, 2006
  5. Replies:
    1
    Views:
    134
Loading...

Share This Page