惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Google Online Security Blog
Google Online Security Blog
博客园_首页
酷 壳 – CoolShell
酷 壳 – CoolShell
Jina AI
Jina AI
博客园 - Franky
大猫的无限游戏
大猫的无限游戏
Hugging Face - Blog
Hugging Face - Blog
博客园 - 司徒正美
V
V2EX
雷峰网
雷峰网
云风的 BLOG
云风的 BLOG
V
Visual Studio Blog
F
Full Disclosure
Y
Y Combinator Blog
V
V2EX - 技术
Attack and Defense Labs
Attack and Defense Labs
S
Security @ Cisco Blogs
Schneier on Security
Schneier on Security
Microsoft Azure Blog
Microsoft Azure Blog
SecWiki News
SecWiki News
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
The GitHub Blog
The GitHub Blog
量子位
PCI Perspectives
PCI Perspectives
S
Secure Thoughts
D
Darknet – Hacking Tools, Hacker News & Cyber Security
AWS News Blog
AWS News Blog
Blog — PlanetScale
Blog — PlanetScale
爱范儿
爱范儿
K
Kaspersky official blog
B
Blog
A
Arctic Wolf
Hacker News: Ask HN
Hacker News: Ask HN
L
LangChain Blog
T
Tor Project blog
P
Privacy & Cybersecurity Law Blog
Recent Announcements
Recent Announcements
宝玉的分享
宝玉的分享
The Register - Security
The Register - Security
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
L
Lohrmann on Cybersecurity
D
Docker
A
About on SuperTechFans
H
Hackread – Cybersecurity News, Data Breaches, AI and More
Google DeepMind News
Google DeepMind News
The Last Watchdog
The Last Watchdog
S
Security Affairs
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
P
Privacy International News Feed
Simon Willison's Weblog
Simon Willison's Weblog

博客园 - steventong

JAVA電子書下載 實用的網站 Eclipse熱鍵 在Tomcat中安装JSTL 對象的序列化和反序列化 开发宝典:程序开发新手入门之Jave ME 15+ Free Visual Studio Add-Ins Linguatec Personal Translator v2008 Professional English-Chinese xmlhttprequest 中文參考 內存調試技巧 AJAX列表 9月2日照片 在ASP.NET中實現AJAX Atlas Framework 快速上手體驗 微軟 ASP.NET 2.0 的 AJAX 利劍 ~ Atlas Framework 使用HTTP模块扩展 ASP.NET 处理 What is iBATIS? --SQL MAP [轉] ATF -- eclipse的AJAX插件安装指南 [轉]探索 Eclipse 的 Ajax Toolkit Framework
SAJAX FOR PHP
steventong · 2007-08-22 · via 博客园 - steventong

http://www.modernmethod.com/sajax/

EXAMPLE

<?
    
require("Sajax.php");
    
    
function multiply($x, $y) {
        
return $x * $y;
    }
    
    sajax_init();
    
// $sajax_debug_mode = 1;
    sajax_export("multiply");
    sajax_handle_client_request();
    
?>
<html>
<head>
    
<title>Multiplier</title>
    
<script>
    
<?
    sajax_show_javascript();
    
?>
    
    
function do_multiply_cb(z) {
        document
.getElementById("z").value = z;
    }
    
    
function do_multiply() {
        
// get the folder name
        var x, y;
        
        x 
= document.getElementById("x").value;
        y 
= document.getElementById("y").value;
        x_multiply(x
, y, do_multiply_cb);
    }
    
</script>
    
</head>
<body>
    
<input type="text" name="x" id="x" value="2" size="3">
    
*
    
<input type="text" name="y" id="y" value="3" size="3">
    
=
    
<input type="text" name="z" id="z" value="" size="3">
    
<input type="button" name="check" value="Calculate"
        onclick
="do_multiply(); return false;">
</body>
</html>

posted on 2007-08-22 13:06  steventong  阅读(240)  评论(0)    收藏  举报