Cross browser AJAX function to dynamically load HTML

后端 未结 6 1681
清酒与你
清酒与你 2021-02-06 12:25

I\'m looking for an AJAX function to dynamically request an HTML page. I already found the following:

function ajaxinclude(url) 
{
   var page_request = false

         


        
6条回答
  •  死守一世寂寞
    2021-02-06 12:39

    I would suggest using any of a number of different javascript frameworks for this functionality instead of reinventing it. There's jQuery, Prototype/Scriptaculous, MooTools, Dojo, and many others. All of these offer cross-browser support for what you are doing.

提交回复
热议问题