michaelh613
Programmer
In Firefox it works correctly getting variables for state category and subcategory from my form. However in IE it only gets category and subcategory. Is there a bug is IE that would cause this. Is there a extension similiar to firebug that can be used to research these type of errors
Code:
var stateSelect = document.getElementById('state')
var categorySelect = document.getElementById('category')
var subcategorySelect = document.getElementById('subcategory')
var state = stateSelect.options[stateSelect.selectedIndex].value
var category = categorySelect.options[categorySelect.selectedIndex].value
var subcategory = subcategorySelect.options[subcategorySelect.selectedIndex].value
var url="getcity.php"
url=url+"&state="+state
url=url+"?category="+category
url=url+"&subcategory="+subcategory
alert ("url is " +url)
url=url+"&sid="+Math.random()
xmlHttp.onreadystatechange=stateChanged3
xmlHttp.open("GET",url,true)
xmlHttp.send(null)