Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 4 of 4
  1. #1
    Member TheGardener's Avatar
    Join Date
    Jun 2006
    Posts
    62
    Member #
    13332
    I'm working on a site here:

    http://auralaser.com/blog/

    The fadeshow javascript that I'm using for the image slideshow causes "operation aborted" errors with IE7. I've read some documents on the cause of this error...

    http://www.clientcide.com/code-snipp...ation-aborted/

    http://weblogs.asp.net/infinitiesloo...-Crash-IE.aspx

    They basically say that it's caused by appending things to an element that is not the parent element of the Javascript <script> tag before the DOM is loaded. But I know that the fadeshow script appends its images to its parent tag, and I've also stuck a defer="true" into the <script> tag for the Javascript that makes the slideshow appear. Does anyone know how I could fix this problem? Thanks for any help.

  2.  

  3. #2
    WDF Staff smoseley's Avatar
    Join Date
    Mar 2003
    Location
    Boston, MA
    Posts
    9,729
    Member #
    819
    Liked
    205 times
    Change this...
    HTML Code:
    <div style="float: right; width: 340px;"><script type="text/javascript"><!--
    new fadeshow(fadeimages, 340, 250, 0, 7500, 1)
    // --></script></div>
    ...to this...
    HTML Code:
    <div style="float: right; width: 340px;"></div>
    
    <script type="text/javascript">
    <![CDATA[
    new fadeshow(fadeimages, 340, 250, 0, 7500, 1)
    ]]>
    </script>
    ... that should do it!

  4. #3
    Member TheGardener's Avatar
    Join Date
    Jun 2006
    Posts
    62
    Member #
    13332
    Thanks smosely, but I tried that and it didn't work. The slideshow just disappeared. I tried putting the script inside the div too and that didn't work either.

  5. #4
    WDF Staff smoseley's Avatar
    Join Date
    Mar 2003
    Location
    Boston, MA
    Posts
    9,729
    Member #
    819
    Liked
    205 times
    The script definitely shouldn't be inside the div. That's the problem, as I see it. The script is running before IE finishes loading the div.

    Try putting the script in the <head> and change it as follows:

    HTML Code:
    <head>
        <script type="text/javascript">
            function startFadeshow() {
                new fadeshow(fadeimages, 340, 250, 0, 7500, 1)
            }
            window.onload = startFadeshow;
        </script>
    </head>


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 05:46 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com