2007年12月31日 星期一

Lab Drag-and-Drop by AJAX

1. Go to Laszlo and enter (Laszlo in 10 minutes).
2. Study and play around the "drag-and-drop" example.
3. Use this method to control movie playing as in the previous lab.
4. If you drag and drop the photo to the "play" area, the movie plays.
5. If you drap and drop the photo to the "pause" area, the movie pauses.

2007年12月28日 星期五

期末報告




1.先利用window和form開啟一個有顏色的視窗在(10,10)的位置
名字是"es1" 顏色的編號是0xAAB5C8


2.利用statictext來把想要出現的文字顯示在視窗上
再用edittext來設計可以輸入的表單


3.使用radiobutton讓user可以隋心所欲的勾選想要放大的倍率
用radiogroup來寫很多個radiobutton就可以不用一直定義座標


4.寫一個button送出資料


5.最後用view來顯示另外一個頁面
他的datapath="echoer:/response"
利用align="center"可以使文字出現在正中央

2007年12月17日 星期一

Lab Movie Player by AJAX

1. Go to Laszlo and enter (Laszlo in 10 minutes).
2. Study and play around the "scripting" and "video" examples.
3. Use this script to control movie playing.

[view id="video" x="0" y="50" resource=""http:jfk.swf"/]

4. If you push the "pause" button, the movie pauses.

[button x="200" onclick="video.setAttribute('play',false) "]pause[/button]

5. If you push the "resume" button, the movie resumes.

[button onclick="video.setAttribute('play',true)"]resume[/button]

2007年12月16日 星期日

Homework 12-10-2007

1. List three ways of creating interactive webpages.

Nvu.CGI.Greasemonkey.JavaScript

2. Lab DOM and Javascript.

Lab DOM and Javascript

3. Reading Assignments: AJAX by Jeremy Keith

Dom Scripting

2007年12月10日 星期一

Lab DOM and JavaScript

9*9 product

Lab Create Img using DOM

1.直接使用 "window.onload = buildTable"



2.利用button onclick來執行圖片

2007年12月5日 星期三

lab 19: XSLT Part II


1. Register and Download Xray, an XML, XSLT editor and processor.

2. Given the
Listing 1. An XML document representing the results of a soccer tournament
Listing 2. A basic style sheet for the soccer results

use the XSLT as in the Listing 2 to transform the XML file as in the Listing 1.

3. View the formatted HTML file.
4. Given the
Listing 1. An XML document representing the results of a soccer tournament
Listing 3. A style sheet that computes team standings

compute the team standings in a table.

5. View the formatted HTML file.

2007年12月3日 星期一

lab 20: XSLT Part III

1. Given the RSS of Yam News, write an XSLT file
and use Xray to generate an HTML that contains the titles of items in the RSS.

2. View the formatted HTML file.

lab 18: Lab XML & XSLT

Homework 11-26-2007

1. Problem 1 & Problem 3 of Textbook on Page 55.

Problem1. 試解釋WEB技術演進是要解決什麼樣的問題?

Web最早的概念是不常更新,甚至不更新的靜態HTML頁面。
而現在的使用者所需求的是一個動態的Web,可以從不斷變化的內容資料庫中即時生成動態HTML頁面。Web 是透過參與者的互動:不論是提供內容、為內容索引或評分,都能夠使他們所使用的平臺增值。

Problem3. 程序(PROCESS)與執行緒(THREAD)對網站性能有什麼不同的影響?

程序(Process)
用在Web系統演進的第二時期,當使用者增多時,由於耗費過多系統資源會導致網站速度明顯下降。

執行緒(Thread)
用在Web系統演進的第三時期,取代了程序,而使用常駐的服務(Service\Daemon),此程式會一直留在系統內,除非關機,否則會一直做服務。當人多時Thread就會變多;人少時,Thread就會減少,故不會耗費系統資源而導致網站速度下降。

2. What does a CGI output contain in the HTTP header? Hint: Such as Content-type

留言板 E-mail意見回覆 計數器...等等

3. If you want to upload an mp3 file, should you use the GET or POST method? Why?

POST method

*POST method 是將資料包裝在 HTTP 標頭內傳送給 Web server。
GET method 是將資料直接加在 URI 之後。

4. Reading Assignments:XML (Page 187-188 on the Textbook)