开发者

Using Ajax jquery to get data from server

I have only recently started looking into Ajax and Jquery. Could somebody help me with this?

I have a list box, upon selection of one item i would like to retrieve the json object associated with it from couchdb using ajax and jquery.I assu开发者_开发技巧me I have to use either $.get or $.getJSON.

Where am i supposed to make the connection to couchdb. And, how to append the data to the same page. I am working on ruby.

Could somebody please post a snippet or direct me to an example that would do it.


Where am i supposed to make the connection to couchdb

You don't. You have to connect to a web providing the service. jQuery only provides page retrieval.

And, how to append the data to the same page

Just manipulate the DOM.

jQuery documentation has enough examples to learn from.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜