F
fmdevelopertim
New to AJAX so sorry if this is simple.
Have a page that gives the user a list to select a brand. Based on the
brand selected it shows a list of sizes available using the following
code:
function handleStateChange() {
if(xmlHttp.readyState == 4) {
if(xmlHttp.status == 200) {
document.getElementById("serverResponse").innerHTML =
xmlHttp.responseText;
}
}
}
The next step is show a list of all items available that match that
brand and size. Using the following code to grab the values selected:
function createQueryString2() {
var Brand = document.getElementById("Brand").value;
var Size = document.getElementById("size").value;
var queryString = "brand=" + Brand + "&size=" + Size;
return queryString;
}
The page works exactly as expected in FireFox, but IE is not capturing
the size element from the innerHTML. Added display vaiable functions to
the PHP page that is being rendered and the brand variable is there,
the size variable is not.
Thanks for any help.
Have a page that gives the user a list to select a brand. Based on the
brand selected it shows a list of sizes available using the following
code:
function handleStateChange() {
if(xmlHttp.readyState == 4) {
if(xmlHttp.status == 200) {
document.getElementById("serverResponse").innerHTML =
xmlHttp.responseText;
}
}
}
The next step is show a list of all items available that match that
brand and size. Using the following code to grab the values selected:
function createQueryString2() {
var Brand = document.getElementById("Brand").value;
var Size = document.getElementById("size").value;
var queryString = "brand=" + Brand + "&size=" + Size;
return queryString;
}
The page works exactly as expected in FireFox, but IE is not capturing
the size element from the innerHTML. Added display vaiable functions to
the PHP page that is being rendered and the brand variable is there,
the size variable is not.
Thanks for any help.