Okay I'm currently using AJAX to update part of my site when a drop down box is changed, but I'm having trouble passing the parameters to be usable by the function.
Here is the HTML:
<script type='text/javascript' src='ajax.js'></script> //Where to find function
<div id="combobox" style="width: 150px; height: 300px; overflow-y: scroll">
<select onchange="MakeRequest(test); location = this.options[this.selectedIndex].value;">
<option>Races</option>
<?php ComboBox() ?>
</select>
.
.
Here is the AJAX function in external ajax.js file:
function MakeRequest(test) {
var linkInfo = "teleport.php?call=" + test;
var xmlHttp = getXMLHttp();
xmlHttp.onreadystatechange = function() {
if (xmlHttp.readyState == 4) {
HandleResponse(xmlHttp.responseText);
}
}
xmlHttp.open("GET", linkInfo, true);
xmlHttp.send(null);
}
How would I get this working?