PDA

View Full Version : Dymanic ajax content will not load a script



jenz
08-15-2007, 04:11 PM
1) Script Title:
Dynamic Ajax Content:(

2) Script URL (on DD):
http://www.dynamicdrive.com/dynamicindex17/ajaxcontent.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>

jscheuer1
08-15-2007, 07:07 PM
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):


<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>