SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    will code HTML for food Michel V's Avatar
    Join Date
    Sep 2000
    Location
    Corsica
    Posts
    552
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Unhappy Stack overflow at line: 0

    I've got a site to maintain, and the guy who coded it originally used DreamWeaver behaviours like a fanatic. It is a real DHTML nightmare (not to mention it won't work on anything other than IE).
    It's there: http://www.tvcmc.com

    The intro page is OK, but when you click on "Videos jeunes" and then on "Vie des ateliers" on the layer that displays at the top, you get a page with a lot of "Stack overflow at line: 0" errors.

    I'm getting quite desperate as I'm not finding the source of the error, and I didn't find any information about that error anywhere on the Net.


    Does anybody know what that error is, and what could be the cause of it ?

  2. #2
    Perl/Mason Guru Flawless_koder's Avatar
    Join Date
    Feb 2002
    Location
    Gatwick, UK
    Posts
    1,206
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How to debug in JS

    Well you're not wrong.

    i HATE DW and all other proprietary environments which prevent real creative koding!

    When you get lost in JS you can normally use MS Development Environment to look at what things are doing.

    MM_swapImgRestore()
    is the fallover event point.

    One of the best ways of finding this out (if you don't have a full development suite [we're not all lucky])
    then just put alerts sequentially through functions to find the fallover point.

    http://www.tvcmc.com/cmcturn.gif

    This image does not load. I'm not going through it properly, but it *might* be because this is trying to reload when the second pass of the function tells it to do a src swap... this would cause the reference to the new and old src's to get entangled... and when an unload for either of them came... the two srcs would be assigned to a single namespace.

    Flawless
    ---=| If you're going to buy a pet - get a Shetland Giraffe |=---

  3. #3
    will code HTML for food Michel V's Avatar
    Join Date
    Sep 2000
    Location
    Corsica
    Posts
    552
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Actually the image that doesn't load is not the problem. It doesn't get swapped anywhere as far as I could see.
    I think something is wrong with recursivity in that MM_findOjb function...

    Still, I wonder why this error doesn't disappear when I switch off JS error messages.

  4. #4
    Perl/Mason Guru Flawless_koder's Avatar
    Join Date
    Feb 2002
    Location
    Gatwick, UK
    Posts
    1,206
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Did you try puttin alerts into the funcitons?

    Where did this getyou?

    Flawless
    ---=| If you're going to buy a pet - get a Shetland Giraffe |=---

  5. #5
    will code HTML for food Michel V's Avatar
    Join Date
    Sep 2000
    Location
    Corsica
    Posts
    552
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    OK I think I found the cause of the problem, but that's just a symptom.
    I placed alert("blah"); at the start of the function MM_swapImage and that makes the browser enter in an unfinished roll of 'blah' popups when I reach a second page.
    So it seems the routine to swap an image is called an infinite number of times when the page loads and the first location of the mouse pointer is right on the image to swap.

    This still doesn't help me


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
  •