Looping XML problem, Internet Explorer
Hi
I am wondering why the following code does not work in Internet Explorer (tested in IE7 and IE8)...
- $(document).ready(function()
{
$('#selectbox').change(getxml);
});
function getxml()
{
$.post(
"script.php",
{ var: val},
readxml
);
}
function readxml(xml)
{
alert('outside');
$(xml).find('xmlfield1').each(function(){
alert('inside');
});
}
The script sets up an event from an onchange of a select box. Once slected it hits a php script, then the callback of "readxml". For some reason the code never reaches the line "alert('inside')", it does get to "alert('outside')", in Internet Explorer. It works in every other browser known to man. The xml is well formed, firebug shows everything being returned from the php script as expected. IE is not throwing any errors.
I've googled it, looked at many articles, searched this forum and I just can't see a reason why this is not working.
Any help is greatly appreciated. Thanks in advance.