lavalant Posted May 4, 2007 Share Posted May 4, 2007 I have the WAMP server installed (Windows, Apache, MysQl and PHP) I made a very small php script <?php echo "text returned from server"; ?> the java script I have written to read this file this line is generating an access denied error message XMLHttpRequestObject.open(“GET”, myphpfile.php); - getting access denied error message they are both running on localhost, anyone know how to resolve this. Quote Link to comment Share on other sites More sharing options...
trq Posted May 4, 2007 Share Posted May 4, 2007 Do you gert the expected results accessing the page directly? PS: The second arg is also a string. XMLHttpRequestObject.open("GET", "myphpfile.php"); Quote Link to comment Share on other sites More sharing options...
lavalant Posted May 4, 2007 Author Share Posted May 4, 2007 Sorry yeh I put the second argument as string, nothing is displayed on the page, the only thing i get is the small error icon on the bottom of the browser window(ie explorer) when i double click it points to that line number with the above text and says access denied. I wasn't sure if wamp had to be configured in some way. Quote Link to comment Share on other sites More sharing options...
angelodev Posted May 4, 2007 Share Posted May 4, 2007 Would you post just a bit more of your code? Maybe your problem is not in that statement. Quote Link to comment Share on other sites More sharing options...
mainewoods Posted May 5, 2007 Share Posted May 5, 2007 the 'XMLHttpRequestObject' object does not work with ie. ie uses an AciveXObject to implement ajax. 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.