I want to add a link to an empty html table. It works on Firefox and Chrome within 0.2 secs but not in IE9. There it takes at least 3 minutes. The reason is that the data delivered is completely different. I made the same queries in all three browsers. Here is my code:
function submitForm(dataString)
{
jQuery.ajax({
type: 'POST',
cache: false,
dataType: 'text',
url: 'retrieveFileList.php',
data: {'data':dataString},
success: function(data){
jQuery('#tresults').append(data);
}
});
return false;
}
The returned data from the php-file looks like this:
while($row = mysql_fetch_array($result))
{
$linktextpos = strrpos($row[0],"/",0);
$linktext = substr($row[0],$linktextpos);
echo "<tr>";
echo "<td>";
echo "</td>";
echo "<td>";
echo "<a color='#ffffff' href=\"" . $row[0] . "\"><font color=\"#ffffff\">" . "..." . $linktext . "</font></a>";
echo "</td>";
echo "</tr>";
}
Ok. Found the problem. I had the wrong header for my HTML-file.
MSIE browsers do not recognise this (no PublicID) and render it in Quirks mode and therefore document.getElementById()… was not working and sql got handed the wrong parameters. Puuh.
It should say: