views:

249

answers:

2

DIV behave like an IFRAME & load url using ajax for a web application having many forms/web pages loading each form/webpages dynamically

A: 

Try this tutorial: http://www.webpasties.com/xmlHttpRequest/

lod3n
A: 

A div can't behave exactly like an IFrame - An IFrame has it's own javascript environment, but a div shares the environment with the parent window.

However, you can make an ajax request to a url, and insert the response into a div.

I suggest using jQuery, they have a simple function $.get(url) for this.

Mike Blandford