Jump to content

[SOLVED] Access Denied


jaymc

Recommended Posts

I have a webpage located at

 

profile.mysite.com

 

on that page I have a javascript link, that uses ajax

 

The link is post_ajax('http://www.mysite.com/scripts/do.php?user=jamie')

 

 

I get a access denied error message. It works fine with the request is coming from the same level domain, but because its coming from a subdomain, it doesnt like it

 

Is there something I am missing? Or am I going to have to move do.php into my profile DIR

 

Link to comment
Share on other sites

CAN A MOD PLEASE MOVE TO AJAX

Code

 

function open_url(url) {
	if (window.ActiveXObject) {
  		link = new ActiveXObject("Microsoft.XMLHTTP");
	} else if (window.XMLHttpRequest) {
  		link = new XMLHttpRequest();
	}

	link.onreadystatechange = function() { response(url); }
	link.open("GET", url + '&ms=' + new Date().getTime(), true);
	link.send(null);
}

function response(url) {
	if (link.readyState == 4) {
 	alert(link.responseText);
}
}

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.