开发者

Query mySQL natively from JQuery without the need for PHP etc

开发者 https://www.devze.com 2023-02-13 07:03 出处:网络
G\'Day, Is it possible to query mySQL directly from within jQuery w开发者_如何学JAVAithout having to use PHP/Python/Ruby etc.?You can\'t do it with MySQL because it uses a binary protocol that the br

G'Day,

Is it possible to query mySQL directly from within jQuery w开发者_如何学JAVAithout having to use PHP/Python/Ruby etc.?


You can't do it with MySQL because it uses a binary protocol that the browser doesn't speak. You can do it with CouchDB, though, which uses HTTP and JSON so it's perfect for this kind of thing.


no, jQuery is on client side and it isn't able to access directly to the database


No you can not do it. Because all jquery code runs on client. You can use jquery ajax methods to call php or another webservices. Simply jquery or another javascript library can not do it.

0

精彩评论

暂无评论...
验证码 换一张
取 消