2009年5月15日 星期五

Lab DOM

[Lab]
1. Open NVu
2. Based on the code as in http://www.scottandrew.com/weblog/articles/dom_4 ,
write a code to generate the table of 9*9 products. (九九乘法表)



Hint: The javascript code should be enclosed by script tags.

Lab Create Image using DOM

1. Open Nvu
2. Hand code a javascript that loads an image from Internet based on
the DOM model.
3. Take a look at the sample code that shows how window.onload to load the image.
4. Use a button to load the image. Try how onclick works.

Homework 5-8-2009


ps: 5-15-2009 小考

Lab XML (2)

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.
(archive)

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.




PS:運算子語法參考

2009年5月12日 星期二

Lab XML

1. Register and Download Xray, an XML, XSLT editor and processor. (安裝X-Ray需要權限)



2. Given the the XML file and XSLT file ,
use Xray to do the transformation of the XML into HTML.
You have to replace [ with <.







3. View the formatted HTML file.

2009年5月8日 星期五

Lab Hand code a form

Hand code a HTML or use Nvu to edit an HTML so that the webpage can send a request to Google like
http://maps.google.com/maps?q=24.9586,+121.24114

Use Form CGI that includes action, input, and submit.
Try a few different coordinates.



表單定義、屬性

完成後再firefox執行

成功連到google map使用搜尋地圖

Lab Form and Action

"logic will get you from A to B - imagination will take you anywhere"

How to use Form to invoke a remote service through CGI.

1. Copy the search box of this search page,
inlcuding radio buttons, text input, and submit button.
2. Open your Nvu HTML editor.
3. Open a new empty HTML file.
4. Paste the search box into this new file.

5. Use Nvu to add a Form to this search box. Do not hand code the HTML. Just fill the blank in the Form dialog.

6. In the form dialog, set Action="http://google.com/search" and name of Form as "f" and method as "get"
(See Hint if it does not work.)


7. Save your file on your computer. Run your HTML by Firefox. What do you get?method==>"get"

8. Set method as "post"
9. Run your HTML by Firefox. What do you get?
method==>"post"



post這個指令不被允許

Homework 5-1-2009

1. 嘗試闖關以下這個遊戲
Place That State Game


2. 建立你的行事曆,並與學校行事曆合併

Google日曆-中原大學行事曆-html版本<http://www.google.com/calendar/embed?src=sth4g0ns7lj48crs0gsm3ekuns%4...>

進入後按右下角+Google日曆即可訂閱



2009年5月1日 星期五

Lab Mash-up 4

部落格與相本的結合運用。透過部落格分享你的照片集,省去傳送大量照片的缺點,自由書寫照片中的故事。

Create a slide show of your album. Embed the album in your blog.

Hint: 挪威奧斯陸之行
album

大專資格賽鐵餅賽程

Lab Mash-up 3

Maps of the Swine Flu Outbreak - Part 1
Maps of the Swine Flu Outbreak - Part 2
Maps of the Swine Flu Outbreak - Part 3

這些應用的特點是什麼?

ps. More applications of Google Maps

利用google地圖去設計由不同的參數產生的地圖,且這些參數中的點並不是只有官方提供,是可以由所有人利用網路傳播的力量提供,只要有人知道消息就可以加入參數點告知大家,
其中參考的參數譬如豬流感爆發嚴重的地區、各個國家預防的措施、乘客搭乘飛機前往的地點.......等,利用這些參數設計出的地圖可以幫助我們更了解目前所爆發的疫情,也可藉此避開去一些疫情爆發區或者告知避免掉造成感染的一些危險行為,在防疫的應用上有很不錯的一個效果。由此我們可以看到比起官方所提供消息的速度,網路媒體的消息來源可以有更快的傳播,人多力量大。

Lab Mash-up 2

For housing services, compare the three websites
http://www.housingmaps.com
http://www.urmap.com.tw/asp/kijiji/
http://www.7house.com.tw

List the differences in the user interface design and usability. Make comments
by your use experiences.


比較: 美感,直覺性,流暢,預期反應

example: TMM

第一種版本的地圖在使用上給人感覺比較美觀,而且地圖中自動會顯示相關事件發生的位置,
從位置中使用者可以很容易的觀察出,各位置間的關連性,因此很適合在搜尋相關資訊時使用。

如果是要找路的話,是比較接受第二種版本的地圖,因為它給人比較直接的感覺,基於尋路的方便性。

至於第三種,使用者可以很明確的表達目的為何,但介面我覺得並沒有吸引我想使用它的興趣。

整體而言,三種搜尋地圖模式都有各自的優缺點。
第一種 美感、流暢。
第二種 以傳統地圖模式比較直接,直覺性。
第三種 便利性。

Lab Mash-up 1

1. Upload a sample ppt to Google Docs.
2. Publish the uploaded ppt.
3. Embed the online ppt to your blog.

The reason to do so is that the readers don't have to have ppt to view your presentation. For example, some users work with Linux or Unix, and others work with MacOS. They will appreciate you for doing so.

Hint: a sample work


在blog測試撥放投影片