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.







2009年5月8日 星期五

Lab XML

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

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 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 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 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?



8. Set method as "post"




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

Homework 5-1-2009

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



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

Google日曆-中原大學行事曆-html版本
進入後按右下角+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 maps標記新流感的散佈與病例
標記的方式各有不同,有的是標示人數,有的則是擴散範圍
各自分享訊息,藉由網路的便利性來迅速取得最新資訊
而不用透過媒體的渲染來了解

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.

housingmaps和urmap一樣簡潔,housingmaps可以做註記,這是蠻方便的一項服務。
urmap多了廣告,但是像7house 廣告又太多了 可能畢竟是商業性質網頁的關係。
所以流暢感,housingmaps和urmap比較優,在直覺上我也會選擇2者其中之ㄧ。
我比較常使用urmap,但是想找個漂亮的房子,還是找7house。


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

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