Jquery 1.3.2 IE6.0 hangs when populating a drowdownlist of 600 records
Hi gens,
My application hands on IE6.0 when it is populating a dropdownlist.
On Firefox 3.6.3 it works very well, but on IE6.0 I got the message that the script is running too long and IE complains about it.
I'm doing it on the fly and there are about 600 records so basically I'm searching on a XML file and then inserting then into the two dropdownlist.
Any suggestion will be appreciated.
Ricardo.
The code is as follow:
//Global variable
var ddl_asc = "";
function getXMLASC() {
$.ajax({
url: 'asc.aspx',
success: function(xml) {
$(xml).find("asc").each(
function() {
var mycode = "";
var mydes = "";
mycode = $(this).find('code').text();
mydes = $(this).find('description').text();
ddl_asc += "<option>" + mycode + ": " + mydes + "</option>\n"
}
)
$("#asc").append(ddl_asc);
$("#Select7").append(ddl_asc);
}
}