Ajax without using the XmlHttpRequest Object
一篇有關不用XmlHttpRequest做類似AJAX動作的文章,Ajax & PHP without using the XmlHttpRequest Object。
概念是動態引用Server上的Javascript來源,雖然說是AJAX有些牽強(介面、資料跟程式都混淆在一起了),但作為某些概念也挺有趣的。
1 2 3 4 | var jsel = document.createElement('SCRIPT'); jsel.type = 'text/javascript'; jsel.src = url; document.body.appendChild (jsel); |