manhlinh88
New Member
I'm looking for the best way to dynamically update a web page content using Javascript AJAX.My first thought is to store various \[code\]div\[/code\] layouts each describing a different page in various files, for example:BasicDiv.div:\[code\]<div> <p>Some Text</p> <button> A Button </button></div>\[/code\]-Then create an empty \[code\]div\[/code\] ,which content will be updated, inside the main webpage, then I make a \[code\]XMLHttpRequest\[/code\] and update the \[code\]div.innerHtml\[/code\] with the data loaded from the required file.Is this a good way to use AJAX or do you have a better suggestion?