Run db query (sql server 2005) with ajax. Is it possible?

前端 未结 3 1113
庸人自扰
庸人自扰 2020-12-18 17:11

I never worked with ajax.

I need to know if it is possible to use ajax to run a query on the db (sql server 2005).

My target is to run a query with refreshin

3条回答
  •  悲哀的现实
    2020-12-18 17:27

    Directly, no. And that is a very good thing, since the JavaScript is generally running on an untrusted machine.

    But it should be pretty easy to have your AJAX fire off a callback (e.g. a post) and then have that do the query on the server side.

提交回复
热议问题