Page 1 of 1

How to refresh a page using a image button

Posted: Thu Mar 05, 2009 10:03 am
by ullasvk
Hello Friends,
i am newbie to Ajax and PHP.After a lot of search on the internet i was able to learn Ajax.
I have a page in which there are many image buttons. I wrote code for all image buttons using Ajax to retrieve data on click from the database. I have a <div> in the same page which retrieves data from the database at the page loading time. But what i need is ,whenever i click the image button it must retrieve value from the database as it is doing know and also update the <div> in the same page with new values from the database. I am able to retrieve value from the database for the image button, but unable to update the <div> with the new values.
Please any one help me, if not can anyone give me an idea how to do this.
Please...............

Thanks in Advance.

Re: How to refresh a page using a image button

Posted: Thu Mar 05, 2009 4:45 pm
by watson516
Whats your code? I could be mistaken, but I believe the very first tutorial for ajax on most sites is updating a div.