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
https://forums.phpfreaks.com/topic/79822-solved-access-denied/
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
https://forums.phpfreaks.com/topic/79822-solved-access-denied/#findComment-404259
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.