Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Dec 2010
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Jquery ajax not working in ie. help! please

    I have a page that has a simple AJAX call that works fine in firefox and chrome but not in ie. In IE my loading image shows up but the actual sourceURL never loads or shows. Below is my html and javascript code.
    Can anyone help me with this?


    <div id="design_strap" style="display:none">
    <a href="javascript:loadContent('#content', 'strap.html');">Link</a>
    <div id="content"></div>
    </div>

    <script type="text/javascript">

    $.ajaxSetup ({
    // Disable caching of AJAX responses
    cache: false
    });

    function loadContent(elementSelector, sourceUrl) {
    $(""+elementSelector+"").html('<p><img src="images/loading.gif" width="150" height="150" /></p>');
    $(""+elementSelector+"").load(""+sourceUrl+"");
    //$("content").height(350);
    }
    </script>

  • #2
    New to the CF scene
    Join Date
    Dec 2010
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I feel like an idiot. The problem was like it always is something so simple. I missed a closing div in my html source. Goes to show you a good nights sleep gives you the opportunity to come back with a fresh outlook and discover the obvious.


  •  

    Posting Permissions

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