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 Quote Link to comment 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 Quote Link to comment 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.. Quote Link to comment 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. Quote Link to comment 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); } } Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.