我怎样才能做一个JQuery的简单的异步查询实现 [英] How can I do a simple asynchronous query implementation in JQuery
本文介绍了我怎样才能做一个JQuery的简单的异步查询实现的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有没有这个地方一个简单的教程?
Is there a simple tutorial for this somewhere?
理想我想有一个文本框和一个按钮,当用户点击这个按钮,文本框被发送到服务器,返回基于它的值。
Ideally I'd like to have a textbox and a button, and when the user clicks the button, the textbox is sent to the server, which returns a value based on it.
客户端然后用填充返回值另一个文本框,但都无需刷新页面。
The client then populates another textbox with the return value, but all without refreshing the page.
如果这是可能的,显示/隐藏加载GIF将是真棒太。
If it's possible, showing/hiding a loading gif would be awesome too.
我没有找到如何做到这一点的简单教程,任何人都可以点我在正确的方向?
I'm not finding any simple tutorials for how to do this, can anyone point me in the right direction?
推荐答案
尝试使用Google的jQuery + AJAX。
Try googling for jQuery+AJAX.
有很多例子在那里:
- 的http://net.tutsplus.com/tutorials/javascript-ajax/5-ways-to-make-ajax-calls-with-jquery/
- http://visionmasterdesigns.com/tutorial-ajax-interface-menu - 使用 - jqueryphp /
- http://www.ibm.com/developerworks/library/x- ajaxjquery.html
- 的http://viralpatel.net/blogs/2009/04/jquery-ajax-tutorial-example-ajax-jquery-development.html
- http://net.tutsplus.com/tutorials/javascript-ajax/5-ways-to-make-ajax-calls-with-jquery/
- http://visionmasterdesigns.com/tutorial-ajax-interface-menu-using-jqueryphp/
- http://www.ibm.com/developerworks/library/x-ajaxjquery.html
- http://viralpatel.net/blogs/2009/04/jquery-ajax-tutorial-example-ajax-jquery-development.html
这篇关于我怎样才能做一个JQuery的简单的异步查询实现的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文