2 potential issues I've been trying solve: 1) Django csrf or other mechanism is blocking ajax and jquery .load()
This following simple ajax interaction works by opening directly in a browser, but not through a django view: ( assume content to load from namesinfo.htm is available) ////////////////javascript $(document).ready(function() { $('.list').click(function () { $('#message').load('namesinfo.htm li'); return false; }); }); //////html part /////////////// <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> Inline script or separate file doesn't seem to matter, so seems like django is blocking this. 2) However more problems arise where Firefox/Chrome won't load ajax at all !! Not even using django here. So I can't tell if there is a django issue or FF. This standard jquery example works for me only in Windows IE, nothing else: ///////////js <script> $(function() { $( "#tabs" ).tabs({ ajaxOptions: { error: function( xhr, status, index, anchor ) { $( anchor.hash ).html( "Couldn't load this tab. We'll try to fix this as soon as possible. " + "If this wouldn't be a demo." ); } } }); }); </script> ////html <div id="tabs"> <ul> <li><a href="#tabs-1">Preloaded</a></li> <li><a href="ajax/content1.html">Tab 1</a></li> <li><a href="ajax/content2.html">Tab 2</a></li> </ul> <div id="tabs-1"> <p>blah</p> </div> </div> Any thoughts appreciated. -- 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.