Javascript to replace auto refresh ?
Hi,
I done a small php&Mysql irc system which works fine.. they're 4 frames:
- Top Banner -
- Msgs - -Who's online-
- Text box msg -
In the Who's online I have <meta HTTP-EQUIV="Refresh" CONTENT="5; URL=Members.php"> which will send a javascript:
<script language="javascript">
parent.frames["PamIrc"].location.reload()
</script>
if someone enter a new message.
Right everything is fine in the best of the world EXCEPT that there's that crapy noise when it refresh every 5 seconds...
Now I thought about it and i'm thinking perhaps there is a way in javascript to run a mysql query every 5 seconds ?
I never done any java so I really don't know??
Thanks for any help :)
|