1. 他需要用到JAVA APPLET嗎? 我想在 windows 平臺上基本不需要使用 java applet, 所有需要的地方都可以使用 activeX control (c/vb)
2. 物理實現環境, 這樣做的基礎 除了傳統的技術,html, form element, activeX, server object, script, 在 VI6 的項目創建時,會自動創建 script library. 該 library 包含了 29 個 script 頁面。 當使用 vi6 DTC 的時候,VI6 會要求你 enable SOM,其實就是在你的頁面中 include 相應的 頭文件(script page)。 舉例來說,模仿 VB 編程,編一個最最簡單的程序: a. 創建一 asp 頁面, 系統默認為: (script object) target platform: server server script: vbscript client script: javascript b. drag & drop 兩個 DTC 控件:button, textbox c. 在 source code 狀態,可以在 script outline 的 server objects 中看到這兩個 control. d. 這兩個 DTC 控件會在 頁面 中產生 可視 的 button 和 textbox. (聽起來象廢話,但很重要:-) ) e. 對 button_click 事件編程,script 運行在 server ---- textbox1.value = "hello, world" f. 在瀏覽器中測試, 按 button 的時候 textbox 中顯示 hello, world ==================================== 這聽起來絲毫沒有任何特殊的地方,但這不是通過 dhtml 的 DOM 模型 + client-side javascript 實現的。 這兩個 control 在頁面中的可視化形象也不是 form element. 這是 SOM。 我想它是通過遠程腳本技術實現的。
上述過程還可以變成: a. 創建一 asp 頁面, *改變* 系統默認,成為: (script object) target platform: *client* server script: vbscript client script: javascript b. drag & drop 兩個 DTC 控件:button, textbox c. 在 source code 狀態,可以在 script outline 的 *client* objects 中看到這兩個 control. d. 這兩個 DTC 控件會在 頁面 中產生 可視 的 button 和 textbox. (聽起來象廢話,但很重要:-) ) e. 對 button_click 事件編程,script 運行在 *client* ---- textbox1.value = "hello, world" f. 在瀏覽器中測試, 按 button 的時候 textbox 中顯示 hello, world =========================================================================== 這依然不是通過 dhtml 的 DOM 模型 + client-side javascript 實現的。 這兩個 control 在頁面中的可視化形象也不是 form element. 這還是 SOM。
|