【正文】
圖。 雖然我們可以動(dòng)態(tài)加載這些JavaScript文件,加載的時(shí)間已經(jīng)花了,但是必須依賴于瀏覽器。為了讓“腳本”的因素發(fā)揮作用,我們必須將它添加到Web頁(yè)面。這個(gè)適合于第三個(gè)目標(biāo),即面向主流瀏覽器。.頁(yè)面定制頁(yè)面定制的設(shè)計(jì)是在JavaScript中執(zhí)行,是因?yàn)橄旅娴目紤]。然后,由它和移動(dòng)代理使用配置管理器的Web服務(wù)來(lái)訪問(wèn)存儲(chǔ)用戶喜好的后端數(shù)據(jù)庫(kù)。這兩個(gè)服務(wù)一個(gè)用于查詢數(shù)據(jù)庫(kù)和另一個(gè)用于更新。通過(guò)使用XPath表達(dá)式,如果本頁(yè)面布局并沒(méi)有過(guò)于頻繁改變是,我們可以提供唯一的標(biāo)識(shí)塊。一開(kāi)始,三個(gè)塊已被選定(左)。尤其是當(dāng)他/她只想要執(zhí)行一個(gè)輕微的修改。圖4是網(wǎng)頁(yè)制定在Firefox網(wǎng)頁(yè)瀏覽器上執(zhí)行的快照。圖 3通過(guò)移動(dòng)設(shè)備瀏覽網(wǎng)頁(yè)。由服務(wù)器處理后,HTTP響應(yīng)被發(fā)送回請(qǐng)求(1號(hào)線)。在第6節(jié)討論一些相關(guān)的工程。 。用戶總是只關(guān)心網(wǎng)站內(nèi)容的一部分。通過(guò)拖和拖放操作,用戶可以根據(jù)他/她的個(gè)人喜好決定所選擇的塊的相對(duì)位置。從而使用戶可以在不同的地方的不同計(jì)算機(jī)上工作。另一方面,即使再加上迷人的工具包幫助,設(shè)計(jì)和維護(hù)同一網(wǎng)站的多個(gè)版本是一個(gè)Web開(kāi)發(fā)人員的沉重負(fù)擔(dān)。類似的關(guān)于這一主題的學(xué)術(shù)研究包括[2]和[3]。雖然一些商業(yè)產(chǎn)品重新格式化了網(wǎng)頁(yè),但是最終的網(wǎng)頁(yè)仍然包含不相關(guān)的信息。s browser when he/she is about to personalize a Web page. It provides some visual manipulations for users to help them specify their preferences about a Web page. The preferences here include: blocks of a Web page that should be retained and their final arrangement. All the preferences about this page would be saved in a remote database that is managed by Configuration Manager. Fig. 4 is a snapshot when executing Page Tailor in a Firefox Web browser.Fig. 4. Page Tailor in Firefox Web browser.. Execution and initializationWhen browsing Web pages, a user can click on the installed bookmarklet to download and execute Page Tailor. From the other perspective of users, it seems that the Web page itself provides the personalizing functions.After the Page Tailor window is launched in the user39。在一些關(guān)鍵單詞、語(yǔ)句的翻譯上也體現(xiàn)了一定的翻譯技巧與水平,能夠較完整地表達(dá)原文的意思。s memory, and not as part of this Web page. In order to let the “script” element take effect, we have to add it to the Web page. For that reason, we find the first occurrence of “body” element (Line 6) in the Web page, and then append the “script” element as a child of it (Line 7).Fig. 10. This is the bookmarklet used to launch Page Tailor.By this method, we can dynamically load an external JavaScript file on demand to do something with a Web page. It can also work for other types of files such as CSS.. Loading external JavaScript LibrariesJavaScript has been used in many applications. Some open source projects have already incorporated the monly used functions such as draganddrop and visual effects. In Page Tailor, we do not reinvent the wheel but take advantage of the JavaScript framework [10].Although we can dynamically load these JavaScript files, the exact time spent on loading, however, depends on the browsers. In other words, even if we add the “script” elements to a Web page in some order, which is not equivalent to load the first JavaScript file and then the second one. The results are still unexpected.To address the above problem, we must postpone the loading of until after has been loaded. By selecting a unique identifier from the file ( or ) and checking periodically whether the identifier has been defined or not, we can indirectly deduce the current state of that file. In other words, an identifier has been defined, which means that the file containing it must have been loaded, too. For example, we choose the identifier named Prototype in and Draggable in .. Containment hierarchy of Page TailorAfter is loaded, it would create the containment hierarchy of elements that together pose the Page Tailor window, and the entire hierarchy would be appended to the Web page. Fig. 11 shows the correspondence between each element and their appearance displayed on the browser. The tag name of each element contained in this hierarchy is labeled on the lefthand side of the figure.一個(gè)個(gè)人網(wǎng)頁(yè)定制的移動(dòng)設(shè)備工具包摘要通過(guò)移動(dòng)設(shè)備瀏覽網(wǎng)頁(yè)是很常見(jiàn)的。[1] (以前稱為MMIT,短的微軟移動(dòng)互聯(lián)網(wǎng)工具包)例如,它減少了開(kāi)發(fā)所需要的工作去開(kāi)發(fā)針對(duì)不同類型移動(dòng)設(shè)備的應(yīng)用程序,如移動(dòng)電話和PDA等。當(dāng)在移動(dòng)設(shè)備上瀏覽時(shí),一個(gè)用戶可能要一直上下,左右滾動(dòng)來(lái)尋找他們想要的信息。.易于使用啟動(dòng)其他程序是沒(méi)有意義的,除了瀏覽器的個(gè)性化網(wǎng)頁(yè)。本研究的目的還在于讓用戶在用手機(jī)瀏覽網(wǎng)頁(yè)時(shí)確定其中一個(gè)網(wǎng)頁(yè)部分應(yīng)予以保留。在返回前一個(gè)網(wǎng)頁(yè)到移動(dòng)設(shè)備之前,必須根據(jù)用戶的喜好對(duì)一些預(yù)處理網(wǎng)頁(yè)作一些調(diào)整。 ,并且不需要預(yù)先安裝任何軟件。此外,我們?cè)诘?節(jié)討論我們的移動(dòng)網(wǎng)頁(yè)生成算法。下面給出兩張圖片分別說(shuō)明了用戶、我們的網(wǎng)頁(yè)裁剪系統(tǒng)和遠(yuǎn)程Web服務(wù)器()之間的關(guān)系。圖 3張圖片在第二個(gè)步驟的互動(dòng)。它為用戶提供一些可視化操作,以便幫助他們指定對(duì)有關(guān)網(wǎng)頁(yè)上的偏好。如果在此之前用戶已經(jīng)個(gè)性化了網(wǎng)頁(yè),網(wǎng)頁(yè)制定將找回原來(lái)的選擇,然后使用數(shù)據(jù)檢索重建過(guò)去的形式,如已經(jīng)選擇的塊和它們的順序。圖 5在不同區(qū)的選擇塊。這是我們通過(guò)的用來(lái)存儲(chǔ)用戶的喜好的標(biāo)準(zhǔn)。配置管理提供了一個(gè)看門(mén)人來(lái)控制后端數(shù)據(jù)庫(kù)訪問(wèn)的連接。返回用戶的喜好,如果有的話,可以被用來(lái)過(guò)濾掉不需要的網(wǎng)頁(yè)內(nèi)容,并重新安排剩余塊。圖9 系統(tǒng)組件及起接口在圖 9中,我們可以看到,幾乎所有的接口都iw, . Web接口。換句話說(shuō),我們可以改變網(wǎng)頁(yè)的外觀來(lái)反映用戶的選擇。創(chuàng)建后,新的元素不包含任何屬性。.加載外部JavaScript庫(kù)JavaScript已用于許多應(yīng)用。換言之,一個(gè)標(biāo)識(shí)符被定義了,這意味著該文件的包含也必須被加載了。為了解決上述問(wèn)題。通過(guò)這種方法,我們可以根據(jù)需要?jiǎng)討B(tài)加載外部JavaScript文件來(lái)做一些網(wǎng)頁(yè)的東西。這個(gè)書(shū)簽的源代碼是圖 10所示的。,我們可以通過(guò)DOM界面來(lái)操作網(wǎng)頁(yè)。我們也描述了問(wèn)題解決方案。.移動(dòng)代理移動(dòng)代理是一種特制的代理,是為個(gè)性化過(guò)程完成的最后一步工作。圖 7網(wǎng)頁(yè)用戶喜好的內(nèi)部表達(dá)。 圖 6重新排列選定的區(qū)塊。例如,在這張照片上半部分包含的信息比在底部的多。 頁(yè)面定制后窗口是在用戶的瀏覽器上啟動(dòng),有些操作是在后臺(tái)自動(dòng)執(zhí)行的。系統(tǒng)的設(shè)計(jì)細(xì)節(jié)在第3節(jié)中介紹。工作完成后,有關(guān)此網(wǎng)頁(yè)的喜好將發(fā)送回,并儲(chǔ)存在以后使用(2號(hào)線)的數(shù)據(jù)庫(kù)中。首先,用戶必須使用PC或筆記本電腦指定他/她的一個(gè)頁(yè)面喜好。在第2節(jié)中,一個(gè)系統(tǒng)的概述,并提出了三個(gè)主要組成部分。本研究的主要貢獻(xiàn)如下。下載的移動(dòng)代碼應(yīng)與至少前兩名流行的瀏覽器合作,如微軟的Internet Explorer和Firefox Web瀏覽器。一些著名的網(wǎng)站上甚至可能含有大量的宣傳廣告。因此,在本研究中,我們?cè)O(shè)計(jì)了一個(gè)旨在幫助用戶為手持設(shè)備瀏覽而個(gè)性化移動(dòng)網(wǎng)頁(yè)的系統(tǒng)。移動(dòng)設(shè)備的廣泛使得通過(guò)他們?yōu)g覽網(wǎng)頁(yè)變得普通。根據(jù)個(gè)人的喜好,這些序列塊也可以改變。s browser. Then the Web services exported by Configuration Manager are used by it and Mobile Proxy to access the backend