2kanman Posted April 5, 2010 Share Posted April 5, 2010 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 More sharing options...
thescientist Posted April 5, 2010 Share Posted April 5, 2010 could you just only load a document with only the code you want to load? Link to comment Share on other sites More sharing options...
justsomeguy Posted April 5, 2010 Share Posted April 5, 2010 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.