Drupal 学习笔记 (4)
2011-03-22 20:31
246 查看
1. Add JSONRPC Server
wget http://ftp.drupal.org/files/projects/services-6.x-2.4.tar.gz
tar xvf
services-6.x-2.4.tar.gz
wget http://ftp.drupal.org/files/projects/jsonrpc_server-6.x-1.3.tar.gz
tar xvf
jsonrpc_server-6.x-1.3.tar.gz
2. Call Drupal JSONRPC service with Javascript
wget http://ftp.drupal.org/files/projects/services-6.x-2.4.tar.gz
tar xvf
services-6.x-2.4.tar.gz
wget http://ftp.drupal.org/files/projects/jsonrpc_server-6.x-1.3.tar.gz
tar xvf
jsonrpc_server-6.x-1.3.tar.gz
2. Call Drupal JSONRPC service with Javascript
<html> <head> <title>Drupal JSONRPC Server Test</title> <script type = "text/javascript" src="jquery-1.5.1.min.js"></script> </head> <body> <script type = "text/javascript"> $(document).ready(function() { $.post("http://localhost/kb/services/json-rpc", {method: "node.get", params: "[1, []]"}, function(data) { alert(data.result.title); }); }); </script> </body> </html>
相关文章推荐
- Drupal学习笔记一:Druple安装
- drupal6的AJAX,ahah学习研究笔记
- Drupal学习笔记
- drupal8学习笔记之 如何设置站点名称
- drupal8学习笔记三 calendar(日历模块)
- Drupal--Day7:git学习笔记
- Drupal7学习笔记之Theme
- Drupal 学习笔记 (1)
- Drupal 学习笔记 (2)
- Drupal学习笔记-1.模块入门
- drupal7 学习笔记-----(持续更新中...)
- Drupal commerce checkout流程学习笔记
- Drupal7学习笔记之Theme
- drupal 学习笔记一 安装docker or drupal
- Drupal 学习笔记 (3)
- drupal8 学习笔记二 Views Slideshow(幻灯片模块)
- SQL Window - oracle 与 MySQl的学习笔记(一)
- QTP学习笔记----2013.05.05
- WPF学习笔记--使用配置文件修改控件、面板颜色
- 【C++学习笔记】在控制台绘Bitmap