No site yet - just hosting it on my client's sandbox machine. Here are the pertinent parts - I can always email them to you also.
For my index.php - just sets up the navivgation and content div: [code] <? include ("includes/nav.inc");?> <? include ("includes/companyx.inc");?> ....... <body> <div id="wrapper"> <div id="content"> </div> </div> </body> <? include ("includes/footer.inc") ?> </html> [/code] Now my "nav.inc" file which sets up the horizontal navbar according to the superfish instructions: [code] <script type="text/javascript" src="js/superfish.js"></script> <div id="header"><h1>Company X</h1> <div id="navigation"> <ul id="nav"> <li id="first"><a href="index.php">Home</a></li> <li>Search <ul> <li><a id="by-lastname" href="#">Last Name</a></li> <li><a id="by-firstname" href="#">First Name</a></li> <li><a id="by-division" href="#">Company</a></li> <li><a id="by-job" href="#">Job</a></li> </ul> </li> </ul> ..... </div> [/code] So now I have my index file with navigation. Let's say a user selects Search-Last Name. This is my "companyx.js" script: [code] $('#home').livequery('click', function() { $('#content').load('index.php'); $("#content").show(); return false; }); $('#by-lastname').livequery('click', function() { $('#content').load('by-lastname.html'); $("#content").show(); return false; }); ..... [/code] And this is my "by-lastname.html", which appears in the content div: [code] <div id=byLastName> <h4>Search by Last Name</h4> <form name="searchlast" action="searchlast.php" > <input type="text" name="lastname" id="lastname" /> <input type="submit" value="Search"> </form> </div> [/code] So the user types in a last name and presses Search. searchlast.php goes to a mysql db and loads the results in the content div: [code] <?php include ("includes/nav.inc"); include ("includes/header-table.inc"); include ("connection.php"); ?> <script language="javascript"> $(document).ready(function() { $("#datatable") .tablesorter({widthFixed: true, widgets: ['zebra']}) .tablesorterPager({container: $("#pager")}); }); </script> </head> <body> <?php @mysql_connect($host, $user, $password) or die("Error - Can't connect to server"); @mysql_select_db($database) or die("Error - Can't connect to db"); $query = "SELECT......"; include ("table.php"); [/code] So the data is now displayed via table.php [code] <? # now display data itself echo("<tbody>"); while ($row = mysql_fetch_array($query)) { echo("<tr>\n<td>"); echo($row["lastname"]); .... } [/code] This all works well. It just doesn't work after the user has view some results of some sort, then clicks on another navigation option. (Like Search-FirstName). The user must click "Home" first, then Search-FirstName, which is a pain. I would like the user to be able to view results, and click immediately on another navigation pane. Does this make sense? Thanks for anyhelp you can give me - I've been struggling with this for a while and it seems like it should be pretty simple!