I've ran into in issue where jquery .load() will load extra content by directly opening html file in a browser but if served through Django devel server the jquery load() is ignored. Have no idea what could be happening but I've seen someone use a django url in the .load() call instead of pointing .load() directly to a file:
<script> $('.myClass').load('{% url update_dropdown %}', {'kind': "Book" }, function(data){ alert(data); }); </script> He said he saw issues with a jquery library Any thoughts would be great. BTW not a static file serving issue. Here is the very simple code that works w/o django, but same thing loaded through django fails: ///code from apress jquery, thanks to Bintu Harwani ////////basic jquery load function $(document).ready(function() { $('.list').click(function () { $('#message').load('namesinfo.htm li'); return false; }); }); /////////////basic html file <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <title>JQuery Examples</title> <script src="jquery-1[1].3.2.js" type="text/javascript"></ script> <script src="d6.js" type="text/javascript"></script> </head> <body> <p>We are going to organize the Conference on IT on 2nd Feb 2010</p> <a href="abc.com" class="list">Participants</a> <div id="message"></div> </body> //names info .htm with extra content to load <p>The list of the persons taking part in conference </p> <ul> <li>Jackub</li> <li>Jenny</li> <li>Jill</li> <li>John</li> </ul> <p>We wish them All the Best</p> -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.