Welcome to WebmasterWorld Guest from 18.104.22.168
Forum Moderators: open
How do I make the web site browsing without complete refresh?
We all use Gmail and Facebook. How can I make those links with anchors like, and refresh only some parts of the page (read from php/mysql):
I use HTML, php and mysql.
your page would look something like this,
<div id='ajaxContent' name='ajaxContent'></div>
<a href='./page.php?idx=1' onClick="return ajaxPage(this.href)">Update Page</a>
and your ajaxPage() function would look like this,
new Ajax.Updater('ajaxContent', url);
That is the bace of ajax, if you want to go further and have your ajax function bookmarkable you will need to learn JS as its a long winded effot that requires about 50 browser work arounds. Prototype should get you started.