AJAX Tutorial Help
Posted: Thu Feb 11, 2010 8:30 am
Most of the tutorials I've looked at so far don't really offer much easy to understand help. I know a bit about javacript but soem reason I can't really get a grasp on AJAX and how to get everything to play nice.
I'm looking for someone to give me a plain example of how to call data from a mysql table with ajax and have it automatically update without refreshing the page itself. For instance health bars updating automatically as the database gets updated.
Right now I have my health, mana, action bars loaded in a separate iframe that is refreshed when my javascript is called. To do it this way is rather ugly because when it reloads in flashes. What I want it to try and get it to just refresh the individual numbers without reloading the full frame.
Below is what I currently use to get the job done but like I said....it's ugly and sometimes jams the frame from loading and end up being blank.
<script type="text/javascript">
window.parent.statpanelframe.location.reload()
</script>
I'm looking for someone to give me a plain example of how to call data from a mysql table with ajax and have it automatically update without refreshing the page itself. For instance health bars updating automatically as the database gets updated.
Right now I have my health, mana, action bars loaded in a separate iframe that is refreshed when my javascript is called. To do it this way is rather ugly because when it reloads in flashes. What I want it to try and get it to just refresh the individual numbers without reloading the full frame.
Below is what I currently use to get the job done but like I said....it's ugly and sometimes jams the frame from loading and end up being blank.
<script type="text/javascript">
window.parent.statpanelframe.location.reload()
</script>