I'm loading an xml file of 88kb through jQuery's GET function. But IE6 crashes. Is there a better way to load an xml file than the one I'm using? Code below:
$(document).ready(function(){ $.get("personeel.xml",function(xml){ var naam = new Array(); $('record',xml).each(function(i) { naam[i] = [{ familienaam : $(this).children('familienaam').text(), voornaam : $(this).children('voornaam').text(), straat : $(this).children('straat').text(), post : $(this).children('post').text(), woonplaats : $(this).children('woonplaats').text(), telefoon : $(this).children('telefoon').text(), tweedetelefoon : $(this).children('tweedetelefoon').text(), email : $(this).children('email').text(), opdracht : $(this).children('opdracht').text(), foto : $(this).children('familienaam').text() + $ (this).children('voornaam').text() + ".jpg" }]; }); $("#zoek").autocomplete(naam,{ formatItem: function(item) { return item[0].voornaam + " " + item [0].familienaam + " (" + item[0].opdracht + ")"; }, matchContains:true, max:100, scrollHeight:250 }).result(function(event, item) { $("#resultaat").html( //output results on page ); }); }); });