SitePoint Sponsor

User Tag List

Results 1 to 10 of 10

Threaded View

  1. #1
    SitePoint Enthusiast -saturn-'s Avatar
    Join Date
    Nov 2003
    Thessaloniki, Greece
    0 Post(s)
    0 Thread(s)

    x Library and eventListener


    I recently found out about the x.js library and already used it in one project of mine. It's a great tool!

    This time I want to do more though by adding a final touch to the "mechanics" of my site.

    I have a CSS-based layout with a header, a menubar, another bar used to display quotes, 3 columns and a footer.

    I'm using the x library to re-position the footer after everything else has loaded and having found out the individual heights of the main column and the left sidebar.

    Everything works fine until I resize the window though, as it remains static.

    I figured I should use the xAddEventListener to have the footer go through the correct adjustment every time the browser window changes.

    The problem is that as soon as I resize the window, the browser goes into an endless loop and eventually freezes.

    Could someome please tell me what I'm doing wrong?
    Thank you in advance.

    I'm attaching a .txt file with the functions I'm using to achieve all of the above.
    Attached Files Attached Files


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts