Question:

With php or javascript, how would I set the links so that only the text within a div changes?

by  |  earlier

0 LIKES UnLike

But the rest of the page stays the same? I recently purchased a php book that taught me to build apps for forms, and a nice picture gallery, but the one thing I wanted to do for my families website, is not in the book. I need to be able to click links in the <div="sidebar"> and have the text/pics change in <div="main">.

 Tags:

   Report

1 ANSWERS


  1. You need to use AJAX.  (No worries, it is not that hard!)

    Search and download SAJAX (it is an AJAX function developed especially for Php).

    Have a look at www.web2coders.com: it is all in AJAX/php/mySQL.

    View the source: it is only a lot of small calls in javascript!

    Each &quot;event&quot; calls a javascript that calls a php function.  Each Php function refreshes ONE &lt;div&gt; and nothing else.  The whole site has ONE page...

    If in trouble, email me with your email address: I&#039;ll send you the Sajax functions.

Question Stats

Latest activity: earlier.
This question has 1 answers.

BECOME A GUIDE

Share your knowledge and help people by answering questions.
Unanswered Questions