Hi there,
I want to be able to include a dynamic chunk of HTML in a page using javascript.
I wrote a servlet which returns a chunk of HTML, http://mydomain.com/dynamic.jsp It produces some HTML ( minus head, body tags ) like this:
<div>
Current Weather : 89F
</div>
How can I get that dynamic chunk of HTML into the page using a line of Javascript?
What is the simplest way? I wonder if I need to wrap what the servlet produces in XML tags or in JSON format.