Im am using ajax to check for site alerts.
I have made a alert system what will send an alert to all the users online at that time.
But i wont work with the ajax.
On the alerts.php i have this
Note: Thats not the full code but thats what will do the alert
Then i update the alerts with the ajax what go into this
Using
What gets the html form the alerts page.
I have tested the alerts just by refresh on my own and it works fine.
But when it comes to displaying it with the ajax it wont let me do it.
Is there a way around this.
Thanks DanielXP
I have made a alert system what will send an alert to all the users online at that time.
But i wont work with the ajax.
On the alerts.php i have this
| Code: |
| echo "<SCRIPT language=\"JavaScript\">
alert('$alert[message]'); </SCRIPT>"; |
Note: Thats not the full code but thats what will do the alert
Then i update the alerts with the ajax what go into this
| Code: |
| <div id="alerts" width='100%' height='100%'></div> |
Using
| Code: |
| document.getElementById("alerts").innerHTML = xmlHttp.responseText; |
What gets the html form the alerts page.
I have tested the alerts just by refresh on my own and it works fine.
But when it comes to displaying it with the ajax it wont let me do it.
Is there a way around this.
Thanks DanielXP
