2009年5月15日 星期五

Lab 35 : 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 34 : 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।


2009年5月8日 星期五

Homework 9


ps: 5-15-2009 小考


XML

XML(2)

Lab 33 : 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.

Lab 32 : 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.




Lab 31 : 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।




Lab 30 : 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"後直接點選搜尋就登入了我的個人iGoogle



8. Set method as "post"


9। Run your HTML by Firefox. What do you get?

Method Not Allowed


課程預告

5/22 老師公差參加大學入學招生活動 (上課暫停一次,擇期補課)
5/29 端午節彈性停課一次

課程預告

2009年5月1日 星期五

Homework 8

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



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

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


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

Lab 29 : Mash-up 4

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

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

Hint: 挪威奧斯陸之行
album




這是去年暑假的時候和朋友一起逛府城,其實我本身就是台南人,古蹟那些地方就只有國小遠足有在去而已,平常是不太會去那些地方的,像這樣帶外地人去逛會讓人滿懷念以前去的時候。
阿啦啦~~不過最想去玩的地方還是只有日本。

Lab 28 : 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

他們都結合了網路地圖來告知流感疫情爆發的地點,並且也用標示加以說明。我們也可從標示密集的程度來看哪些城市哪些國家是相當危急的,而避免到這些地區出遊或辦公。而且不僅有世界衛生組織所公佈的疫情地圖,還包含了一些網友所提供,此外還有相關的新聞連結,可讓點閱者握到更多更新的資訊。

Lab 27 : 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.


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


以美感來說,我認為kijiji最好,畫面看起來很乾淨。再來就是7house,雖然不至於畫面很亂,但充斥著太多廣告,感覺就好像點進YAHOO的入口網,覺得有點煩。而housingmaps色彩很單調,標記都長的一樣,擠在一起讓人覺得很亂。
以直覺性來說,housingmaps比較好,它沒有比較細部的分類,只要點選城市和要租或要買,就列出該類所有的房子。再來是7house,直接輸入地區、用途、坪數、價格等等,就能找到相關條件的房字。而kijiji則是分類的細,要找到相關分類下搜尋才比較好找到。
以流暢來說,我很喜歡kijiji的方式,不僅有地區街道的地圖可以比較,還做了許多樣的分類,可以找租屋還可以找打工,不僅容易找也滿足不同的需求。再來是7house,它只要把相關條件選擇好了就可列出相關搜尋結果,比起housingmaps能選擇分類的條件少還優。
最後綜合各個條件優劣,預期反應是kijiji勝於housingmaps勝於7house,我想一般人找房子總想知道附近有哪些設施去做比較,所以7house沒有設這種介面基本上就輸很多了。

Lab 26 : 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.