如何在Joomla 1.5中实现w3schools上的这个脚本?Ajax Database
我试着让它在Joomla上工作,我得到了这个错误:
Not Found
The requested URL /component/virtuemart/getcustomer.asp was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.谢谢。
发布于 2011-10-10 19:32:48
你的服务器抱怨说它找不到文件/component/virtuemart/getcustomer.asp,如果你检查一下底部引用了它的代码:
xmlhttp.open("GET","getcustomer.asp?q="+str,true);因此,您还需要添加服务器页面。但是,该示例中给出的代码(标题为“AJAX Server Page")是ASP代码,因此它将无法工作(除非您的服务器同时支持ASP和PHP,这是非常不可能的)。
简而言之,这个例子对你不起作用。您需要检查另一个示例:
http://www.w3schools.com/php/php_ajax_database.asp
您需要添加html页面和php页面。
https://stackoverflow.com/questions/7710355
复制相似问题