Jsonp with MooTools

巧了我就是萌 提交于 2019-12-09 23:57:27

问题


I'm learning javascript and now I'm trying to work with mootools. I would like to work with json files in remote so I'm trying to use jsonp. Right now I have a textbox and when I click a button I would like to make a request of a json file. The url of the json file is something like www.mysite.com/json/sometext where sometext is the content of the textbox. The problem is that I don't really understand how the request and mootools work.

Right now I don't have the code because I don't know how to start (I'm a beginner) but I would like to get the json file at http://m.airpim.com/json/public/search?q=daniele&k=&e=1 if in the textbox I wrote "daniele" and I would like to save the json in an array.

How can I do it?

来源:https://stackoverflow.com/questions/11246683/jsonp-with-mootools

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!