I am using the same php page with javascript and xml and it's working fine in one domain and not working in another domain. Both domains are on the same server. What could be the problem here?

The script I'm using is to reload the city list (dropdown box) when user select another state from dropdown box.