KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I'm trying to do an ajax request to get the contents of "http://localhost/" running on Windows Wamp Server. The script is running from something like this: file:///C:/my/path/index.html I'm just using a standard $.ajax request to try and get the contents of localhost: $.ajax({ type: 'GET', url: 'http://localhost/', success: function(data) { alert('success'); }, error: function (data) { alert('failed'); } }); I can't get it to be successful though... Seems to be some problem with the local filesystem or something. I'm not too sure.
Tags (comma-separated)
Save Edits
Cancel