Postbacks and document.body.clientHeight

Discussion in 'ASP .Net' started by trullock@hotmail.com, Dec 8, 2006.

  1. Guest

    Hi,

    Ive got a LinkButton on my page with populates a repeater with data.

    Ive also got this:

    <a href="javascript:alert(document.body.clientHeight);">Click Me</a>

    When i click 'Click Me' on page load, it pops up with some value like
    "200" which is correct.

    However if i click the 'populate' linkbutton (thus filling the repeater
    with data - and increasing the page vertical height), then click 'Click
    Me', the alert box still reports "200", as though the browser hasnt
    refreshed the DOM and realised that the body is now larger than before.

    Is this just a firefox issue (i havet got IE7 installed on this machine
    yet) and is there a workaround?

    Thanks

    Andrew
     
    , Dec 8, 2006
    #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. Replies:
    0
    Views:
    469
  2. Replies:
    0
    Views:
    459
  3. Rod Billett

    Dynamic PageSize based on Browser body.clientHeight

    Rod Billett, Oct 23, 2003, in forum: ASP .Net Datagrid Control
    Replies:
    0
    Views:
    218
    Rod Billett
    Oct 23, 2003
  4. Noah Sussman
    Replies:
    2
    Views:
    152
    Noah Sussman
    Jun 23, 2006
  5. vunet
    Replies:
    1
    Views:
    166
    Felix Stahlberg
    Aug 31, 2008
Loading...

Share This Page