NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
Using local server with JQUERY $.ajax not working


Joined: 08 Dec 2008
Posts: 35
Reply with quote
Here is a very basic ajax script:
Code:
function doAjax(url, args){
    var retVal = $.ajax({ 
                    type:   "GET",
                    url:    url,
                    data:   args,
                    async:  false
                 }).responseText;
    return retVal;
}


This will pass the following url: "localhost:8080/inc/fv.svc.php?id=150001&fv=Test1"

The fv.svc.php script will get and parse the request properly with a return value of something like "Invalid User Credentials", or another message. What is always being displayed in the browser is:
Code:
<html><body><h1>SRV Server:</h1><br>
Document Contains no data.
</body></html>


If I put this url and args in a separate browser, I always get the same response. It must somehow be a problem with the local NuSphere server. Can anyone help with this?
View user's profileFind all posts by radi8Send private message
Using local server with JQUERY $.ajax not working
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic