jaymc Posted December 2, 2007 Share Posted December 2, 2007 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 More sharing options...
phpQuestioner Posted December 2, 2007 Share Posted December 2, 2007 wrong forum - you need to post this question here: http://www.phpfreaks.com/forums/index.php/board,51.0.html Link to comment https://forums.phpfreaks.com/topic/79822-solved-access-denied/#findComment-404221 Share on other sites More sharing options...
jaymc Posted December 2, 2007 Author Share Posted December 2, 2007 Im not sure it is strictly an ajax issue.. its not the ahax code is the ability to access files from another domain through javascript.. Link to comment https://forums.phpfreaks.com/topic/79822-solved-access-denied/#findComment-404222 Share on other sites More sharing options...
phpQuestioner Posted December 2, 2007 Share Posted December 2, 2007 it's still an ajax issue - also you did not even provide code; probably need that to see where error is coming from. if you will post this thread in the AJAX forum; they will be able to help you with this. Link to comment https://forums.phpfreaks.com/topic/79822-solved-access-denied/#findComment-404248 Share on other sites More sharing options...
jaymc Posted December 2, 2007 Author Share Posted December 2, 2007 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.