Hey,
I have created a php page that will query a mysql table and output an xml data based upon a GET search word. I then have another page which calls this page and displays the results as following:
<xml src="xml_results.php?keyword=somekeywordhere" id="xmldso" async="false">
</xml>
<table id="s_results" datasrc="#xmldso" width="100%" border="1"><tr onclick="large_display(this)" align="left">
<td><span datafld="CONTENT"></span></td>
</tr></table>
I also have a search form on this page and I want it to change the xml source and update the table accordingly.
I currently have this javascript code which provides the right xml content hwoever I don't know what to do next to update the table.
function search()
{
var parser=new ActiveXObject("microsoft.xmldom")
parser.async="false"
parser.load("xml_results.php?keyword=" + query.value)
alert(parser.xml);
}
Thanks