Joomla 中的 Ajax 数据库
我如何在 Joomla 1.5 中实现 w3schools 上的这个脚本? Ajax 数据库
我尝试使其适用于 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.
谢谢。
How can I implement this script found on w3schools in Joomla 1.5? Ajax Database
I tried to make it work for Joomla and I get this error:
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.
Thank you.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您检查底部引用的代码,您的服务器会抱怨找不到文件
/component/virtuemart/getcustomer.asp
:因此您还需要添加服务器页面。然而,该示例中给出的代码(标题为“AJAX 服务器页面”)是 ASP 代码,因此它无法工作(除非您的服务器同时支持 ASP 和 PHP,这不太可能)。
简而言之,这个例子不适合你。您需要检查另一个示例:
http://www.w3schools.com/php/php_ajax_database.asp
您需要添加html 页面和php 页面。
Your server is complaining that it cannot find the file
/component/virtuemart/getcustomer.asp
, if you check the code it is referenced on the bottom:So you need to add the server page as well. However the code given in that example (under the title "The AJAX Server Page") is ASP code so it won't work(unless your server both supports ASP & PHP, very unlikely).
In short that example won't work for you. You need to check the other example:
http://www.w3schools.com/php/php_ajax_database.asp
You need to add both the html page & php page.