Hi, I try to inject some Html in a page using ajax():
////////////////////////////////////// (function($) { /* * load the tab header * id: dom id to append content * currentTab: index of 'li' to mark as current * */ $.fn.loadTabbedHeader = function(o) { var defaults = { id: null, currentTab: 0 }; $.extend(defaults, o); $.ajax({ url: "../../dev/packages/received_files/html/ launchTabbedHeader.html", success: function(html) { $("#"+defaults.id).append(html).ready(function(){ $("#" + defaults.id + " li").eq(defaults.currentTab).addClass("current"); }); } }); }; })(jQuery); //////////////////////////////// It crashes with Safari 2.0.4. Then if I had these 2 options: cache: false, dataType: "html", it loads most of the time (still sometimes crashes). But if I try to load the same page in another tab or just do a refresh of the page, then it crashes again (KERN_PROTECTION_FAILURE) When I try to use text() instead of html or append, it runs with no problem. Any idea about a solution? Thanks, Nicolas