我如何使用Ajax,Perl和JSON容易在一起吗? [英] How can I use Ajax, perl and JSON easy together?

查看:150
本文介绍了我如何使用Ajax,Perl和JSON容易在一起吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图让使用Ajax的网页。

I am trying to make a webpage with Ajax.

例如:

  1. 我创建触发一个简单的后一个Perl / CGU文件;

  1. I create a Perl/CGU file that triggers a simple post;

文件:..test.cgi名=托马斯

File: ..test.cgi?name=Thomas

文本回:你的名字是托马斯·

Text back: Your name is Thomas!

我创建可以使用后一个HTML文件,但随后的页面重新加载。 我用文字输入和一个按钮。

I create a html file that can use the post, but then the page have to reload. I use text input and a button.

我如何使用Ajax,Perl和JSON容易在一起吗? 这是怎么回事应该一起工作,但如何?

How can I use Ajax, Perl and JSON easy together? This is how it should work together, but how?

HTML +的Ajax / JavaScript调用的Perl +JSON-perl的字符串退还到阿贾克斯CONVERT-JSON - > HTML

Html + Ajax/JavaScript CALL Perl + "JSON-perl-string" RETURN-TO Ajax CONVERT-JSON -> Html

推荐答案

有关JSON尝试的 CPAN JSON模块

有关使用XMLHtt prequest我建议这些精彩的教程来自IBM。

For using the XMLHttpRequest I recommend these wonderful tutorials from IBM.

<一个href="http://www.ibm.com/developerworks/web/library/wa-ajaxintro1.html?S%5FTACT=105AGX08&S%5FCMP=EDU"相对=nofollow>掌握Ajax,第1部分:Ajax简介

这两篇文章,你可能最感兴趣的是这两个:

The two articles you'll probably be most interested in are these two:

<一个href="http://www.ibm.com/developerworks/web/library/wa-ajaxintro10/index.html?S%5FTACT=105AGX08&S%5FCMP=EDU"相对=nofollow>掌握Ajax,第10部分:使用JSON进行数据传输

<一个href="http://www.ibm.com/developerworks/web/library/wa-ajaxintro11.html?S%5FTACT=105AGX08&S%5FCMP=EDU"相对=nofollow>掌握Ajax,第11部分:JSON在服务器端

您可以得到整个11部系列使用这种搜索链接

You can get the entire 11 Part series using this search link.

这篇关于我如何使用Ajax,Perl和JSON容易在一起吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆