Results 1 to 2 of 2

Thread: Dymanic ajax content will not load a script

  1. #1
    Join Date
    Aug 2007
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Unhappy Dymanic ajax content will not load a script

    1) Script Title:
    Dynamic Ajax Content

    2) Script URL (on DD):
    http://www.dynamicdrive.com/dynamici...jaxcontent.htm

    3) Describe problem:

    I would like to load in an add-me script for delicious bookmarks to a div. I can't get this to work.

    <script type="text/javascript" src="http://del.icio.us/feeds/js/networkbadge/jenq_design?name;icon"></script>

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    In the case of that script, it just writes content to the page as the page loads. However, since the page is already written (loaded) when using Ajax, you can't do that. If it worked, it would overwrite what is already there (the entire page). You could just put the generated content on the external page in the spot where you want it to appear (generated content):

    Code:
    <div id="delicious-network-badge-7723" class="delicious-network-badge"><span class="delicious-network-username"><a href="http://del.icio.us/jenq_design"><img src="http://del.icio.us/static/img/delicious.med.gif" alt="del.icio.us/jenq_design" border="0"></a> I am <a href="http://del.icio.us/jenq_design">jenq_design</a> on <a href="http://del.icio.us">del.icio.us</a></span><br><span class="delicious-network-add"><a href="http://del.icio.us/network?add=jenq_design"><img src="http://del.icio.us/static/img/add.gif" alt="add jenq_design to your network" border="0"></a> <a href="http://del.icio.us/network?add=jenq_design">Add me to your network</a></span><br></div>
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

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
  •