AJAX Thread

Since I think we need one now I will start it… or at least I need one now.

AJAX is neat, I copied on if its codes to my site and presto no Flash refresh on my page and I can load dynamic content without refreshing pages ever.

I need someone that knows at least a little of this stuff, I have a form that uses a drop-down box to select business types, then it goes through a SQL database to draw out its content, the content will work fine but since I got rid of extra php pages since AJAX doesn’t use them anyways I now have to do a workaround.

This is my form, it is located on its own page (members.php) which is loaded into the content div layer on the index (home page) of the site. The form needs to be able to load its content without refreshing the entire site, only needs to refresh itself, I have tried many ways to fix this but none have worked:

 
<div align="center" id="Layer2">
<table border=1 cellpadding=0 cellspacing=0 bodercolor="CC9900" align=center >
<tr><td colspan=5>
<form name="category" method="post">
Show Me: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<select name="cat" >
<? include("phpcode/categ.php"); ?>
</select>
<input name="" type="submit" value="Submit" onclick="page.replace_HTML">
</form></td></tr>
<? include("phpcode/sh_members.php"); ?>
</table></div>

This script needs to be fixed or gotten rid of, it is the code that makes sure old content is gone from the form, it only works when I used http://mysite.com?id=blah code, which is gone now:

 
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_jumpMenu(targ,selObj,restore){ //v3.0
eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
if (restore) selObj.selectedIndex=0;
}
//-->
</script>

The flash on the site works fine, and content will load fine into the content div layer but the page with the form does not work and I need a working code, if anyone has a suggestion please help.

Site: www.shoptecumseh.org if you wish to check out AJAX in progress