• Recent Questions
  • Popular Questions

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.

    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.

Answer this Question :

You must be logged in to post an answer. Signup Here, it takes 5 seconds :)

Other Questions