AJAX的小例子

2021-05-23 00:50:14 字數 504 閱讀 1911

檔案:div.html

------------------------------------

檔案test.pl

#!c:/perl/bin/perl.exe

####  printenv -- demo cgi program which just prints its environment

###print "content-type: text/html/n/n";

print "content-type: text/plain/n/n";

open(file_txt,'c:/program files/apache software foundation/apache2.2/cgi-bin/input_txt/1.txt') or print 'abc';

while ()

print "$env";

#print 'cgi---bbb!';

#print '

';#print '

';

用ajax技術實現的乙個小例子

早就聽說過ajax,不過想著是網頁上的技術,一直沒有研究過。最近由於工作需要,寫web頁面,想實現區域性重新整理頁面的效果,同時進行一些後台操作,比如運算元據庫。找同事幫忙實現了一下,今天閒來無事,自己研究了一下,還挺簡單就能實現我想要的效果。先說下概念吧,都是從網上搜的,理解了這些,寫 就簡單了。...

jquery 結合ajax例子

首先在頁面要引用 jquery 的類庫檔案 btnsub click function success function msg error function 注意 如果返回值型別是 html 則msg 的值為帶有基本的 html 標籤如果只想要輸出的結果值 那麼在非同步請求的頁面使用過 respo...

Ajax區域性重新整理例子

通過本例,可以大概了解ajax訪問伺服器的過程以及基本方法,本例結合dom動態建立表的行 基本思路 定時間內向伺服器請求資料,伺服器將返回不同的資料資訊 其中以xml格式返回 ajax獲取伺服器返回的資訊後,動態建立表的行,從而形成了動態表的生成。實現如下 1 客戶端 5 2 服務端 本例為了測試,...