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
You're missing a fundamental point here. The success method is not run when you call showGetResult. It is run asynchronously.
At the point that you put return result; it is still null (because success has not yet been invoked).
What you need to do is have document.write execute after success is invoked. Either like this:
Or with a callback: