Jump to content

help with content loading


tushar707

Recommended Posts

Hello,

I have made a website at my-prana.com/test which has a menu on the left.  When someone clicks on a link, I want only content to load on the right.  I dont want the whole page to load again.  the content will be on php pages, which will be called by the link to load when it is clicked.  I posted this on the javascript topic, but they told me to come here.  I have never used ajax, so please let me know what I need to do to make this possible.  Here is  the code for my menu.php:

<dl id="menu">

	<dt onclick="javascript:montre('smenu1');"><a href="index.php">Home</a></dt>

	<dt onclick="javascript:montre('smenu2');"><a href="#">Our Programs</a></dt>
		<dd id="smenu2">
			<ul>
				<li><a href="#">Sous-Menu 2.1</a></li>
				<li><a href="#">Sous-Menu 2.2</a></li>

				<li><a href="#">Sous-Menu 2.3</a></li>
			</ul>
		</dd>	

	<dt onclick="javascript:montre('smenu3');"><a href="#">Resources</a></dt>
		<dd id="smenu3">
			<ul>
				<li><a href="#">Newsletters</a></li>
				<li><a href="#">My Articles </a></li>

				<li><a href="#">Useful Links </a></li>
			</ul>
		</dd>

	<dt onclick="javascript:montre('smenu4');"><a href="#">Upcoming Events</a></dt>
		<dd id="smenu4">
			<ul>
				<li><a href="#">Sous-Menu 4.1</a></li>
				<li><a href="#">Sous-Menu 4.2</a></li>
		    </ul>
		</dd>
<dt onclick="javascript:montre('smenu5');"><a href="#">Testimonials</a></dt>
  <dt onclick="javascript:montre('smenu6);"><a href="#">About Me</a></dt>
		<dt onclick="javascript:montre('smenu7');"><a href="#">Contact Us</a></dt>


</dl>

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.