Well I'm adding an alert back to HabbCrazy, but I don't see the point in having an iframe refreshing when I could just use the stats file to check if there's an alert.
So for our stats, were using Ajax, which is a problem for our alert.
Were using the above code to fetch the stats every 30 seconds, but as its writing the innerHTML, the alert isn't running.HTML Code:function GetStats() { $('stats').innerHTML = '<center><img src="images/loading.gif" /></center>'; new Ajax.Request('stats/radiostats.php', { onSuccess: function(transport) { $('stats').innerHTML = transport.responseText; } }); }
So does anyone know how I could make the alert run if there's javascript in it?
i.e.
<script>alert("lol");</script>
Thank you if anyone can help![]()





Reply With Quote