AJAX/jQuery question (need help)?
Hi,can somebody help me out with my problem/question?
My problem/question: how can I get data from SQL database without refreshing (I know how to do it), but I want to know if it’s possible to get data from the database exactly then when something new is added to the database.
If you know the answer…write me…
And thanks.
- Category: JQuery Questions
Hi,can somebody help me out with my problem/question?
My problem/question: how can I get data from SQL database without refreshing (I know how to do it), but I want to know if it’s possible to get data from the database exactly then when something new is added to the database.
If you know the answer…write me…
And thanks.
Other Questions
Login
Search
Recent Comments
- dgdg_dasdad on How does JQUERY DIFFER FROM JAVASCRIPT ? WHAT IS ITJQUERY ?
- Anas Imtiaz on How does JQUERY DIFFER FROM JAVASCRIPT ? WHAT IS ITJQUERY ?
- David D on How does JQUERY DIFFER FROM JAVASCRIPT ? WHAT IS ITJQUERY ?
- Wolfman on How does JQUERY DIFFER FROM JAVASCRIPT ? WHAT IS ITJQUERY ?
- TnT on Having a Jquery PHP problem?


Scott
Posted 10 months ago
No. If you want to do something like that you will have to run a setInterval() or some kind of function that loops by a select time frame checking the database. You have to tell the browser to do something, if not it will just sit there. You can test your intervals by using FireFox/Firebug – NET tab. Works great for testing these kind of things out. One tutorial that helped me in the beginning understand the “automatic” check is from Nettuts.
Sites that use Flash to update constantly use code to refresh sending/getting information as well.
Sorry, but what you want can’t happen unless you hit your database by a determined interval.