Does AJAX Need Server-Side Language for Database Access?

ajaxasp.netdatabasejavaPHP

Does AJAX need to use a server-side language such as PHP/ASP.NET/Java to access a database? Or some sort of web service tied to these languages? Or is AJAX able to communicate directly with the database?

Best Answer

Ajax cannot access any database, since it's not a language, nor a precise technology.

Do you mean javascript? I don't think js can open a socket directly to your sql server. Anyway, that would require your db server to be open wide, which is a bad idea in most cases.

You could also use the localstorage api, if all you need is storing a limited piece of data clint side.