How to make one area of a html page redirect to another url while the rest
part of the page stay same?
I'm working on a CMS back-end with Codeigniter. Maybe it's not clear to
state my question with word. So I use some simple html code to express my
question: There is a html page called A.html. The code in A.html is
following:
<html>
<head>
/*something*/
</head>
<!-- menu area -->
<div class="menu">
<ul class="nav">
<li class="nav-header">menu item1</li>
<li class="nav-header">menu item2</li>
<li class="nav-header">nav-header3</li>
</ul>
</div>
<!-- content area -->
<div id="content">
</div>
</html>
I know we can use jQuery's load to change the #content's content when I
click the nav-header.But my question is that how can I make content change
just in the content area(#content) while the rest of page content stay
same when I click the link in the content area. I have tried the
iframe,but it make the page more complex and I don't like it. Thanks.
No comments:
Post a Comment