View Single Post
Old 05-08-2008, 07:58 PM   #5 (permalink)
freenity
The Acquainted
 
freenity's Avatar
 
Join Date: Feb 2008
Posts: 119
Thanks: 17
freenity is on a distinguished road
Default

ok so you have 2 columns:

HTML Code:
<div id="col1"></div>
<div id="col2"></div>
in column1 you will have this link: <a href="loadpage('info.php')">click me</a>

And before this (maybe just after the jquery.js include) you should make this function:

HTML Code:
function loadpage(page)
{
   $.get(page, function(data) { 
                 $('#col2').html(data);
               }
   );
}
This should work, as it gets info.php page and puts it's contents into #col2.
__________________
http://feudal-times.net - My PBB Game
http://gwphp.feudal-times.net - My Blog "Gaming With PHP"
freenity is offline  
Reply With Quote