I can't post images as a new user so I have added links to the images.
After about 3 days of modifying my backend, battling with browser compatibility and actually getting my code to work I have managed to make a call to a java rest service in dojo and managed to get a "200 Ok" status but I am not able to get the Json response object even when try to dig deep into my "response" object.
Code For Calling The Service
script.get("http://192.xxx.xx.xx:8080/com.thinkingpa.web/SecurityResourceService/loginUser", {
jsonp: "callback",
query: {
emailAddress:"email@email.com",
password:"password"
}
}).then(function(response){
//Help me out here everything I've tried has failed me!
});
});
My Response Object in a funciton
function(response)
As you can see in the creen shots attached below when I debug in firebug I do manage to get the json in the relevant "response" and json tabs.
Firebug Response Tab
Firebug JSON Tab
How do I display/get the data either from the Json or response tabs into an alert box (message window)