Jump to content

AJAX load document into div


2kanman

Recommended Posts

helloI have a webpage with some content and when the user clicks "change" it loads an html document into the "par" div. But what I want to do is only load a certain div from the external html page into the current one. Is this possible? thanks

Link to comment
Share on other sites

If the response from the server is application/xml, and if the document is a well-formed XML document, then you can use the normal DOM functions with the response from the server. An XML response will automatically be loaded into a DOM structure which you can access with getElementById and the other DOM methods.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...