[jQuery] BlockUI - IE does not interpret JS script
Hi guys, been using Jquery a bit for my dashboard website at my work
just to add eye candy and such...
This is the first time I have run into an IE bug...
What happens is that once a table get loaded with my code it shows the
correct colours in Firefox on both windows and linux but does not
interpret the JS in the file that I load when I open it with IE.
Here is the code.
Thank you for any and all help
Marius
====THE JS SNIPPET====
$('#cserver').click(function() {
$.blockUI.defaults.pageMessage = "<h1>Please wait...</
h1>";
$.extend($.blockUI.defaults.overlayCSS, { backgroundColor:
'#fff' });
$.extend($.blockUI.defaults.pageMessageCSS, { color:
'#000', backgroundColor: '#fff' });
$.blockUI();
setTimeout($.unblockUI, 2000);
$("#contentArea").load("rpc.php?o="+7+"");
======THE PHP FILE (rpc.php)======
<?php
$cOption = $_GET['o'];
$videowall_source = "";
switch($cOption) {
case 1:
$videowall_url = "stats.html";
$fp = fopen($videowall_url, "r") or die("The Information couldn't be
displayed!");
while(! feof($fp))
{
$videowall_source = $videowall_source . fgets($fp, 1024);
} print $videowall_source;
break;
======Stats.html=======
<script type="text/javascript">
$("tr").contains("RUNNING").addClass("green");
$("tr").contains("DOWN").addClass("red");
$("tr").contains("INITIALIZED").addClass("yellow");
$("tr:nth-child(odd)").addClass("odd");
</script>
<table>
<tr><td id=name>mts</td><td id=status>RUNNING</td></tr>
<tr><td id=name>osagent</td><td id=status>DOWN</td></tr>
<tr><td id=name>vbt</td><td id=status>RUNNING</td></tr>
<tr><td id=name>ccs</td><td id=status>RUNNING</td></tr>
</table>