I had just gotten subdomains to work (username.domain.com) and then realized my Ajax scripts weren't doing that good anymore.

I read that XMLHttpRequest can't access other domains, but shouldn't there be a simple(r) way to make it work with subdomains?

I'm pretty much a javascript newbie but decent with PHP.

Is there a painless way to make this all work again? Or any other way?

Here's a bit of the code;
Code JavaScript:
var cururl = 'http://domain.com/';
function createRequestObject() {
	var req;
	if (window.XMLHttpRequest) {
		req = new XMLHttpRequest();
	} else if (window.ActiveXObject) {
		req = new ActiveXObject("Microsoft.XMLHTTP");
	} else {
		alert('Problem creating the XMLHttpRequest object');
	return req;
function handleDivTag(divtag) {
	var divtag;
	return divtag;
var http = createRequestObject();
var divhandler = new handleDivTag(null);
function sendRequest(ua_id,show,series) {
	http.open('get', cururl+'status.php?ua_id='+ua_id+'&show='+show+'&series='+series+'&dummy=' + new Date().getTime());
	http.onreadystatechange = handleResponseTwo;
	divhandler.divtag = ua_id;
function handleResponseTwo() {
	if (http.readyState == 4 && http.status == 200) {
		var response = http.responseText;
		if (response) {
			document.getElementById('editinfo'+divhandler.divtag).innerHTML = response;