Problem with Ajax in jquery
Hi All,
I am new to this jquery world. I am facing some problem while using Ajax in my jquery code.
I want to get some data (String ) from server using Ajax call.
below is my code:
$.ajax({
url: "./something.do",
context: document.body,
success: function(){
alert("helo");
}
});
Or
$.post("./something.do",null,function(data){
alert("come");
});
I tried with both the ways with no success. Its not returning me anything. I am not able to find where I am doing wrong. even I dont know is this a way to use ajax in jquery?
when i am executing above statements, my back end method is calling and populating desired data but somehow i am not able to get that data back.. Intentionally i put the alert in method and even that alert is also not working.
Please do advise.
Thanks in advance.
Regards,
Azhar