Results 1 to 2 of 2

Thread: Load html into div and unload

  1. #1
    Join Date
    Jul 2013
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Load html into div and unload

    1) Script Title: Load html into div and unload

    2) Script URL (on DD):

    3) Describe problem:
    This is my script

    Code:
    $(document).ready(function() {
        $('a.container').click(function(e) {
            e.preventDefault();
            e.stopPropagation();
    
            $('#container')
                .hide()
                .load(this.href, function() 
                {
                    $(this).fadeIn(1500);
                });
        });
    });
    and it's perfect, loads external html (just plain text) into div and then change it when I click on another link. Also when I click back on the first link, it load back first html.

    Problem become, when I add some script into those external html (like some script for sliders with images). It won't load back first html.

    Do I maybe need to unload first and then load another content? How can I do this?

    Thanks

  2. #2
    Join Date
    Jan 2011
    Location
    Southeastern CT
    Posts
    596
    Thanks
    43
    Thanked 28 Times in 28 Posts

    Default

    Please post a link to the page on your site that contains the problematic script so we can check it out.


    And if you are using a dd script you are supposed to give a link to it(if you are using a dd script as I said-)
    Thanks,

    Bud

Similar Threads

  1. Unload Event
    By bluewalrus in forum JavaScript
    Replies: 4
    Last Post: 08-10-2010, 11:37 PM
  2. Lightbox Unload
    By egfx in forum JavaScript
    Replies: 1
    Last Post: 08-03-2010, 01:12 AM
  3. Jsapi unload in explorer?
    By Bluesplayer in forum Looking for such a script or service
    Replies: 0
    Last Post: 01-30-2010, 12:53 AM
  4. On Unload Script
    By bfdglobal in forum Looking for such a script or service
    Replies: 3
    Last Post: 01-12-2010, 08:48 PM
  5. Resolved How to load HTML as XML?
    By jlizarraga in forum JavaScript
    Replies: 4
    Last Post: 11-20-2008, 05:56 PM

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
  •