Im doing maven rest web application using dojo and java. im newbie to dojoscript
While im submitting the form using xhrpost im getting the particular response objects from the service method into that particular xhrpost function itself so i need to call that xhrpost data to other html pages how can i do that..? im doing login module so i need to display username in all pages which im getting response in xhrpost function..?
this is my dojoscript
dojo.xhrPost({
url: "http://localhost:8080/userservices/rest/rest/login",
form: dojo.byId("formNode"),
load: function(newContent,status) {
if(status.xhr.status == 200)
{
alert(newContent); --->which displays username
window.location.href = "jobseekerdashboard.html";
}
im getting newContent as my username but i need to display this in some html page how can i do this..?
Kindly help any help will be appreciated more
Thanks Fiyas