SitePoint Sponsor

User Tag List

Results 1 to 5 of 5

Thread: awkward problem

  1. #1
    SitePoint Wizard bronze trophy
    Join Date
    Jul 2006
    Location
    Augusta, Georgia, United States
    Posts
    4,194
    Mentioned
    17 Post(s)
    Tagged
    5 Thread(s)

    awkward problem

    What is happening when my script is executed is somewhat strange and I was wondering if anyone else has run into the same problem.

    When I initially run the page to the browser for the first time my script is functioning awkwardly. For example, the script is suppose to find the height and width of a box then the reposition the box to match another width and height from that one. However, the boxes width and height is just increasing or decreasing infinitely.

    However, when the page is reloaded the script runs as expected.

    Anyone have any ideas?

  2. #2
    Unobtrusively zen silver trophybronze trophy
    paul_wilkins's Avatar
    Join Date
    Jan 2007
    Location
    Christchurch, New Zealand
    Posts
    14,729
    Mentioned
    104 Post(s)
    Tagged
    4 Thread(s)
    What's the browser and what's the script?

  3. #3
    SitePoint Wizard silver trophy kyberfabrikken's Avatar
    Join Date
    Jun 2004
    Location
    Copenhagen, Denmark
    Posts
    6,157
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    How is the script invoked? Is it tied to document.onload or is it just running midway through the page load?

  4. #4
    SitePoint Wizard bronze trophy
    Join Date
    Jul 2006
    Location
    Augusta, Georgia, United States
    Posts
    4,194
    Mentioned
    17 Post(s)
    Tagged
    5 Thread(s)
    Its quit lengthy.

    It uses onload.

    I don't think it would benefit anyone to post the script because its over 700 lines long.

    However, if you think you could tell me what it might be if I posted the script then I will.

  5. #5
    Unobtrusively zen silver trophybronze trophy
    paul_wilkins's Avatar
    Join Date
    Jan 2007
    Location
    Christchurch, New Zealand
    Posts
    14,729
    Mentioned
    104 Post(s)
    Tagged
    4 Thread(s)
    Instead of posting the whole script, you could post a url to where the script can be found.


Bookmarks

Posting Permissions

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