2013年10月28日 星期一

Homework 10-28-2013 (HW4)

邀請你拍幾張深秋的美景或用文字描繪深秋之美,上傳到你的部落格與同學們分享。

due 11-4-2013

Hint:

Lab 18 Google Maps

Write a form to send a query to Google maps. If the input is not in the format of coordinates, display an error and ask the user to retry. For example, an incorrect input may look like 12.a2,21.22

Hint:

see
form action="http://maps.google.com/maps" method="get" name="f" onsubmit="return check()"
in source code

Lab 17 Regular Expression II

撰寫一個網頁能夠自動檢查輸入的字串是否為"整數或小數,逗號,整數或小數"格式(例如 24.9586,121.24114)

Lab 16 Regular expression I

撰寫一個網頁能夠自動檢查輸入的字串是否為整數或小數(例如 12.34, -1.2, +0.02, .30)。

2013年10月21日 星期一

Homework 10-21-2013

1. 參考 Udacity 課程,撰寫一個網頁能夠自動檢查輸入的字串是否為整數(包含負整數)。
建議開發工具 notepad++
建議使用瀏覽器 Firefox/Chrome/IE/Safari
你可能需要的資訊 Regular expression 
Due 10-28-2013 6:30 pm

公告

清大彭明輝教授 10/28(一)晚上 7:00~9:00 中原大學瑞麗堂 通識講座 「崩世代的困境與對策」
去聽演講者,持出席證明事後可以註銷缺席。

Lab 15 Hand code a form

Before you do this lab, you must understand what is CGI(Common Gateway Interface)  and Form.

1. So please search the answer and post your opinion in your blog.
2. Hand code a HTML 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.

3. If the input is not in the format of coordinates, display an error and ask the user to retry. For example, an incorrect input may look like 12.a2,21.22


可參考 CGI程式入門