i want to get the \'printed value\' of html pages.
i tried below query, but showGetResult() just return \'null value\'
but my apache server logs printed i access
AJAX requests are aynchronous by default; you can't return their result in a function, you need to use callbacks. The easiest way to achieve what you want is to put your code that handles your data in your success
handler:
success:function(data)
{
alert(data);
result = data;
document.write(showGetResult('test'));
}
Also, don't use document.write
.