Cross browser AJAX function to dynamically load HTML

后端 未结 6 1740
清酒与你
清酒与你 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:45

    If I were you, I'd use a toolkit like JQuery in order to make sure that it is as compatible as possible. No matter what, however, you're going to have to deal with the cases where it doesn't work. Don't forget that there are plenty of people who browse without javascript support.

提交回复
热议问题