TW201317884A - Method for generating webpage form on mobile device - Google Patents

Method for generating webpage form on mobile device Download PDF

Info

Publication number
TW201317884A
TW201317884A TW101138691A TW101138691A TW201317884A TW 201317884 A TW201317884 A TW 201317884A TW 101138691 A TW101138691 A TW 101138691A TW 101138691 A TW101138691 A TW 101138691A TW 201317884 A TW201317884 A TW 201317884A
Authority
TW
Taiwan
Prior art keywords
sub
width
controller
mobile device
composite control
Prior art date
Application number
TW101138691A
Other languages
Chinese (zh)
Other versions
TWI451322B (en
Inventor
Yu-Hsun Lin
I-Ping Huang
Original Assignee
Digiwin Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Digiwin Software Co Ltd filed Critical Digiwin Software Co Ltd
Publication of TW201317884A publication Critical patent/TW201317884A/en
Application granted granted Critical
Publication of TWI451322B publication Critical patent/TWI451322B/en

Links

Abstract

The present invention relates to a method for generating a webpage form on a mobile device, which comprises steps of: providing at least a composite control member, each of which is constituted by tagging a first sub-control member and at least one second sub-control member and applied to a webpage on a mobile device; setting all the first sub-controls of said composite control members to align along a single side; and arranging said second sub-control member to a next row according to a width of the webpage of the mobile device and widths of all the composite control members. With the composite control member, the present invention can avoid inconsistent appearance of webpage forms resulted from interpretation differences by mobile browsers. The present invention is suitable for different kinds of mobile browsers.

Description

移動設備網頁表單產生方法 Mobile device web form generation method

本發明係關於一種網頁表單產生方法,特別有關一種移動設備網頁表單產生方法。 The invention relates to a method for generating a webpage form, in particular to a method for generating a webpage form of a mobile device.

隨著移動設備如智慧型手機的功能提升、購入門檻降低、3G與WiFi等無線通信的普及,移動上網的人數已越來越多,通過移動瀏覽器瀏覽網頁已成為移動用戶接收訊息的重要管道。 With the enhancement of functions of mobile devices such as smart phones, lower entry barriers, and the popularity of wireless communication such as 3G and WiFi, the number of mobile Internet users has increased. It has become an important channel for mobile users to receive messages through mobile browsers. .

移動設備如手機(mobile phone)、平板電腦(tablet PC)或個人數位助理(PDA)等的瀏覽器(以下簡稱移動瀏覽器)種類多,支持的網頁技術(如:HTML、JavaScript、CSS等)標準不一,而且移動設備的螢幕尺寸多樣,造成網頁在不同的移動瀏覽器內有著不同的呈現結果。 Mobile devices such as mobile phones, tablet PCs, or personal digital assistants (PDAs), etc. (hereinafter referred to as mobile browsers), and a variety of supported web technologies (eg, HTML, JavaScript, CSS, etc.) The standards vary, and the screen size of mobile devices is diverse, causing web pages to have different presentations in different mobile browsers.

商用資料儲存於資料庫,為結構化資料。針對商業移動用戶所發展的應用,例如:客戶查詢、商品查詢、訂單查詢/修改等,為了讓用戶容易閱讀及修改資料,必須清楚顯示欄位標題與欄位內容,並且排列整齊,所以通常以表單(form)方式呈現。 Commercial data is stored in a database and is structured. For applications developed by commercial mobile users, such as customer inquiries, product inquiries, order inquiries/modifications, etc., in order to make it easy for users to read and modify materials, it is necessary to clearly display the column headings and field contents, and arrange them neatly, so usually Form presentation.

為了提高易用性(usability),表單的呈現以不出現橫向捲軸為前提。在表單欄位數較多的情況下,出現縱向捲軸是有其必要的,但是如果同時出現橫向捲軸,使用者必定難以操作。 In order to improve usability, the presentation of the form is premised on the absence of a side-scroll. In the case where the number of the form bar is large, it is necessary to have a vertical reel, but if a reel is present at the same time, the user must be difficult to operate.

為了達到表單呈現的最佳效果,通常採用表格式佈局(table layout)。如果不用表格式佈局,而用絕對定址方式設定控制件顯示位置與大小,因為移動瀏覽器特性不同,呈現出來的結果往往不一致。 In order to achieve the best results of the form rendering, a table layout is usually used. If the tabular layout is not used, the position and size of the control components are set by the absolute addressing method. Because the characteristics of the mobile browser are different, the results presented are often inconsistent.

採用表格式佈局,就是在網頁設計時使用Table(如HTML<table>tag),將頁面控制件放置在表格內適當的Cell(即HTML<tr><td>tag),並且在設計期間將表單定義完成。目前某些高階手機如iPhone、Android Phone可支持這樣的佈局方式,達到表單正常顯示的效果,但仍有以下缺點: In tabular layout, use Table (such as HTML<table>tag) in web design, place the page control in the appropriate Cell in the table (ie HTML<tr><td>tag), and place the form during design The definition is complete. At present, some high-end mobile phones such as iPhone and Android Phone can support such a layout method to achieve the normal display of the form, but still have the following disadvantages:

1、在設計期間完成表單排版,需要較多的開發工時。 1. Complete form layout during the design period, which requires more development man-hours.

2、因為執行時不得出現橫向捲軸,在設計期間,必須對每一種移動設備,根據其螢幕大小(特別指寬度)做針對性的設計。 2, because the horizontal reel must not appear during the implementation, during the design, each mobile device must be designed according to its screen size (especially the width).

對於企業應用軟體開發者而言,如果不能有效克服網頁表單在不同移動瀏覽器內呈現的一致性問題,而必須對各種不同的移動瀏覽器做針對性的設計,那麽勢必會降低軟體開發的生產力。 For enterprise application software developers, if they can't effectively overcome the consistency of web forms presented in different mobile browsers, they must design different kinds of mobile browsers, which will definitely reduce the productivity of software development. .

有鑒於此,尋求一種移動設備網頁表單產生方法成為該領域技術人員的追求目標。 In view of this, the search for a mobile device web page form generation method has become a goal of those skilled in the art.

本發明之目的在於提供一種移動設備網頁表單產生方法,以克服上述習知技術的缺點,針對網頁表單在不同移動瀏覽器內呈現的一致性要求。藉由本發明之複合控制件設計,可避免因移動瀏覽器解譯方式差異造成網頁表單呈現不一致的問題,可適應不同的移動瀏覽器。 It is an object of the present invention to provide a method for generating a web page form of a mobile device to overcome the shortcomings of the above-mentioned prior art and to meet the consistency requirements of web page forms presented in different mobile browsers. By the composite control component design of the invention, the problem that the webpage form is inconsistent due to the difference in the interpretation manner of the mobile browser can be avoided, and the mobile browser can be adapted to different mobile browsers.

為達成上述發明目的,本發明之較佳實施例係提供一種移動設備網頁表單產生方法,其包括下列步驟:提供至少一複合控制件,每一複合控制件係由一第一子控制件及至少一第二子控制件標記組合而成,所述複合控制件應用於一移動設備網頁;將所有複合控制件的第一子控制件設定為靠單邊對齊;以及 根據該移動設備網頁的寬度及所有複合控制件的寬度,將所述第二子控制件進行換列。 In order to achieve the above object, a preferred embodiment of the present invention provides a mobile device webpage form generating method, including the steps of: providing at least one composite control component, each composite control component being a first sub-controller and at least a second sub-controller tag is applied, the composite control is applied to a mobile device webpage; the first sub-controls of all composite controls are set to be aligned on one side; The second sub-controller is re-arranged according to the width of the mobile device webpage and the width of all composite controls.

再者,將所述複合控制件顯示於該移動設備網頁。 Furthermore, the composite control is displayed on the mobile device webpage.

所述靠單邊對齊的步驟,包括:取出所有複合控制件的第一子控制件寬度,計算出其中的最大值;以及將所有複合控制件的第一子控制件的寬度設定為該最大值,且設定為靠單邊對齊。 The step of unilateral alignment includes: taking out the width of the first sub-controller of all the composite control members, calculating the maximum value thereof; and setting the width of the first sub-control member of all the composite control members to the maximum value And set to align on one side.

所述將第二子控制件進行換列的步驟,包括:根據該最大值,計算每一複合控制件的第一子控制件及第二子控制件的總寬度;以及當該總寬度超過該移動設備網頁的寬度時,則將所述第二子控制件進行換列,且同時增加所述複合控制件之第一子控制件的一個跨列數。 The step of replacing the second sub-control member includes: calculating a total width of the first sub-control member and the second sub-control member of each composite control member according to the maximum value; and when the total width exceeds the total width When the width of the mobile device webpage is changed, the second sub-controller is re-arranged, and at the same time, the number of cross-columns of the first sub-controller of the composite control component is increased.

所述計算每一複合控制件總寬度的步驟,包括:加總該第一子控制件的寬度及第一個第二子控制件的寬度為一第一總寬度;以及當該第一總寬度未超出該移動設備網頁的寬度時,則加總該第一總寬度及第二個第二子控制件的寬度作為該總寬度。 The calculating the total width of each composite control member includes: summing the width of the first sub-control member and the width of the first second sub-control member to a first total width; and when the first total width When the width of the mobile device webpage is not exceeded, the first total width and the width of the second second sub-controller are added as the total width.

所述靠單邊對齊為左邊對齊。 The unilateral alignment is aligned to the left.

所述靠單邊對齊為右邊對齊。 The unilateral alignment is aligned to the right.

按本發明之方法,根據該最大值,計算每一複合控制件的第一子控制件及第二子控制件的總寬度。在此,計算總寬度的詳細步驟為加總第一子 控制件的寬度及一個第二子控制件的寬度為總寬度。當計算出的總寬度尚未超出移動設備網頁的寬度時,則將現有總寬度及下一個第二子控制件的寬度相加為總寬度。直到總寬度超出移動設備網頁的寬度為止,則根據移動設備網頁的寬度及所有複合控制件的寬度,將第二子控制件進行換列顯示,同時增加複合控制件之第一子控制件的一個跨列數。然後,將複合控制件顯示於該移動設備網頁。 According to the method of the present invention, the total width of the first sub-control member and the second sub-control member of each composite control member is calculated based on the maximum value. Here, the detailed step of calculating the total width is to add the first sub The width of the control member and the width of a second sub-control member are the total width. When the calculated total width has not exceeded the width of the mobile device webpage, the existing total width and the width of the next second sub-controller are added to the total width. Until the total width exceeds the width of the mobile device webpage, the second sub-controller is displayed in a column according to the width of the mobile device webpage and the width of all the composite control members, and one of the first sub-controllers of the composite control component is added. The number of columns across. The composite control is then displayed on the mobile device web page.

在此,本發明所提出的方法中,靠單邊對齊可以是左邊對齊,也可以是右邊對齊。 Here, in the method proposed by the present invention, the unilateral alignment may be left-aligned or right-aligned.

為解決表單在不同移動瀏覽器內的呈現一致性等問題,本發明提供了一種複合控制件,藉由複合控制件簡化頁面的設計,並可避免因移動瀏覽器解譯方式差異造成網頁表單呈現不一致的問題,可適應不同的移動瀏覽器(例如iPhone iOS、Android、Symbian S60 5th、Windows Mobile/Phone)。 In order to solve the problem that the form is consistent in different mobile browsers, the present invention provides a composite control component, which simplifies the design of the page by the composite control component, and can avoid the webpage form presentation caused by the difference of the translation manner of the mobile browser. Inconsistent issues can be adapted to different mobile browsers (eg iPhone iOS, Android, Symbian S60 5th, Windows Mobile/Phone).

複合控制件係由一個第一子控制件及至少一個第二子控制件標記組合而成,並可搭配一個設計器(Designer)以及一個渲染(Rending)方式,設計者只須將需要的複合控制件依序拖曳至設計區域,並依據移動瀏覽器的螢幕寬度處理複合控制件內第一子控制件的對齊,接著再依序處理所有複合控制件內第二子控制件的排列與換列。 The composite control component is composed of a first sub-controller and at least one second sub-controller marker, and can be combined with a designer (Designer) and a rendering (Rending) mode, and the designer only needs to perform the required composite control. The components are sequentially dragged to the design area, and the alignment of the first sub-controller in the composite control member is processed according to the screen width of the mobile browser, and then the arrangement and replacement of the second sub-controllers in all the composite control members are sequentially processed.

本發明提供了一種複合控制件,每一複合控制件係由一個第一子控制件及至少一個第二子控制件標記(例如HTML的Table)組合而成。 The present invention provides a composite control member, each composite control member being composed of a first sub-control member and at least one second sub-control member mark (for example, a Table of HTML).

複合控制件可搭配一個設計器,使設計者在設計時期可利用設計器進行網頁表單的基本設計,不需要考慮頁面控制件的排版,也不需要考慮移動瀏覽器的種類與版本。設計者只須將需要的複合控制件依序拖曳至設計 區域中,自上而下排列而不需要排版,即可完成頁面設計。完成設計後儲存為一個頁面定義腳本(script),可為XML格式,部署在Web伺服器。藉由複合控制件所完成的頁面設計,可依據使用者提出的請求,利用渲染方式根據使用者端移動瀏覽器的屬性,將前述的頁面定義腳本渲染成網頁,同時完成頁面控制件的排版,最終呈現於該客戶端移動瀏覽器。 The composite control can be combined with a designer, allowing the designer to use the designer to design the basic form of the web page during the design period, regardless of the layout of the page control, and without considering the type and version of the mobile browser. The designer only has to drag the required composite controls to the design in sequence. In the area, the page design can be completed by top-down arrangement without the need for typesetting. After the design is completed, it is stored as a page definition script (script), which can be deployed in XML format and deployed on the web server. The page design completed by the composite control component can be used to render the aforementioned page definition script into a webpage according to the user's request to move the browser according to the request made by the user, and at the same time complete the layout of the page control component. Finally presented in the client mobile browser.

渲染方式動態排版工作原理:處理所有複合控制件內第一子控制件的對齊,方法為:取出各個複合控制件的第一子控制件寬度,計算出最大值。將各個複合控制件的第一子控制件的寬度設定為該最大值,且設定為靠單邊(右邊或左邊)對齊。 Rendering mode Dynamic typesetting working principle: The alignment of the first sub-controllers in all composite control parts is processed by taking out the width of the first sub-controller of each composite control part and calculating the maximum value. The width of the first sub-controller of each composite control member is set to the maximum value and is set to be aligned on one side (right or left).

依據移動瀏覽器的螢幕寬度,在不產生橫向捲軸的前提下,依序處理所有複合控制件內第二子控制件的排列與換列,方法為:計算該第一子控制件及各該第二子控制件的總寬度,判斷是否超過該移動瀏覽器的寬度。如是,則該第二子控制件進行換列,且同時增加該複合控制件第一子控制件的一個跨列數(row span)。如否,則直接輸出該第二子控制件。 According to the screen width of the mobile browser, the arrangement and the column arrangement of the second sub-control members in all the composite control members are sequentially processed without generating the lateral reel, by calculating the first sub-control member and each of the first The total width of the two sub-controls determines whether the width of the mobile browser is exceeded. If so, the second sub-control member performs the re-arrangement and simultaneously increases a row span of the first sub-control member of the composite control member. If no, the second sub-controller is directly output.

本發明由於採用了以上技術方案,使之與習知技術相比,本發明的移動設備網頁表單產生方法針對網頁表單在不同移動瀏覽器內呈現的一致性要求,提出了解決方案。本發明藉由複合控制件的設計,可避免因移動瀏覽器解譯方式差異造成網頁表單呈現不一致的問題,可適應不同的移動瀏覽器。在設計時期,不需做頁面控制件的排版設定,簡化開發工作。在執行時期,由渲染引擎根據客戶端移動瀏覽器的屬性,將設計時期產生的頁面定義腳本渲染成網頁,同時完成頁面控制件的排版,包括對各複合控制件內第一子控制件的對齊處理,以及第二子控制件的行列位置調整。 The present invention adopts the above technical solution to make the mobile device webpage form generating method of the present invention propose a solution for the consistency requirement of the webpage form presented in different mobile browsers compared with the prior art. By designing the composite control component, the invention can avoid the problem that the webpage form is inconsistent due to the difference of the translation manner of the mobile browser, and can adapt to different mobile browsers. In the design period, there is no need to make layout settings for page controls, simplifying development work. During the execution period, the rendering engine renders the page definition script generated by the design period into a webpage according to the properties of the client mobile browser, and simultaneously completes the layout of the page control component, including the alignment of the first sub-controller in each composite control component. Processing, and row and column position adjustment of the second sub-controller.

下面結合附圖和實施例對本發明作詳細說明。 The invention will now be described in detail in conjunction with the drawings and embodiments.

參看第1圖至第7圖,本發明之移動設備網頁表單產生方法包括以下步驟:提供至少一複合控制件,每一複合控制件係由第一子控制件10及至少一第二子控制件20標記組合而成,複合控制件應用在移動設備網頁上。 Referring to FIG. 1 to FIG. 7, the mobile device webpage form generating method of the present invention comprises the following steps: providing at least one composite control component, each composite control component being composed of a first sub-controller 10 and at least a second sub-controller The 20 tags are combined and the composite controls are applied to the mobile device web page.

將所有複合控制件的第一子控制件10設定為靠單邊對齊。在此,靠單邊對齊的詳細步驟為取出所有複合控制件的第一子控制件寬度,計算出其中的最大值,將所有複合控制件的第一子控制件10的寬度設定為所計算出的最大值,且設定為靠單邊對齊。 The first sub-controller 10 of all composite controls is set to be aligned on one side. Here, the detailed step of unilateral alignment is to take out the width of the first sub-controller of all the composite control members, calculate the maximum value thereof, and set the width of the first sub-controller 10 of all the composite control members to be calculated. The maximum value is set to unilaterally aligned.

接著,根據該最大值,計算每一複合控制件的第一子控制件10及第二子控制件20的總寬度。在此,計算總寬度的詳細步驟為加總第一子控制件10的寬度及一個第二子控制件20的寬度為總寬度。當計算出的總寬度尚未超出移動設備網頁的寬度時,則將現有總寬度及下一個第二子控制件20的寬度相加為總寬度。直到總寬度超出移動設備網頁的寬度為止,則根據移動設備網頁的寬度及所有複合控制件的寬度,將第二子控制件20進行換列顯示,同時增加複合控制件第一子控制件10的一個跨列數。然後,將複合控制件顯示於所述移動設備網頁。 Next, based on the maximum value, the total width of the first sub-controller 10 and the second sub-controller 20 of each composite control member is calculated. Here, the detailed step of calculating the total width is to add up the width of the first sub-control member 10 and the width of one second sub-control member 20 to the total width. When the calculated total width has not exceeded the width of the mobile device web page, the existing total width and the width of the next second sub-controller 20 are added to the total width. Until the total width exceeds the width of the mobile device webpage, the second sub-controller 20 is displayed in a column according to the width of the mobile device webpage and the width of all the composite control members, and the first sub-controller 10 of the composite control member is added. A cross-column number. The composite control is then displayed on the mobile device web page.

在此,本發明所提出的方法中,靠單邊對齊可以是左邊對齊,也可以是右邊對齊。 Here, in the method proposed by the present invention, the unilateral alignment may be left-aligned or right-aligned.

如第1圖至第2圖所示,本發明提供了一種移動設備網頁表單產生方法,它包括至少一複合控制件,該複合控制件係由一第一子控制件10及至 少一第二子控制件20標記組合而成。 As shown in FIG. 1 to FIG. 2, the present invention provides a mobile device webpage form generating method, which comprises at least one composite control component, which is composed of a first sub-controller 10 and One less second sub-controller 20 is combined.

請參看第1圖,本發明的移動設備網頁表單產生方法包括以下步驟: Referring to FIG. 1, the mobile device webpage form generation method of the present invention comprises the following steps:

(1)處理所有複合控制件內第一子控制件10的對齊,取出各個複合控制件的第一子控制件10寬度,計算出其中的最大值;將各個複合控制件的第一子控制件10的寬度設定為該最大值,且設定為靠單邊對齊(左邊對齊或右邊對齊)。 (1) processing the alignment of the first sub-controller 10 in all the composite control members, taking out the width of the first sub-controller 10 of each composite control member, and calculating the maximum value thereof; and the first sub-controller of each composite control member The width of 10 is set to this maximum value and is set to be aligned on one side (left or right).

(S11)選取至少一個複合控制件;(S12)擷取移動裝置螢幕寬度;(S13)判斷是否有二個以上複合控制件,若是,則執行步驟S14;若否,則執行步驟S16;(S14)計算各複合控制件的第一子控制件10寬度,並取得最大值;(S15)將各個複合控制件的第一子控制件10的寬度依據該最大值調整,且靠單邊對齊;(S16)計算該複合控制件的寬度是否大於移動瀏覽器寬度,若是,則執行步驟S17;若否,則執行步驟S18;(S17)該複合控制件進行換列顯示;以及(S18)顯示複合控制件。 (S11) selecting at least one composite control member; (S12) capturing the screen width of the mobile device; (S13) determining whether there are more than two composite control members, and if so, executing step S14; if not, executing step S16; (S14) Calculating the width of the first sub-controller 10 of each composite control member and obtaining a maximum value; (S15) adjusting the width of the first sub-control member 10 of each composite control member according to the maximum value, and aligning with one side; S16) calculating whether the width of the composite control member is greater than the width of the mobile browser, if yes, executing step S17; if not, executing step S18; (S17) the composite control member performs column display; and (S18) displaying composite control Pieces.

請參看第2圖,(2)依據移動瀏覽器的螢幕寬度,在不產生橫向捲軸的前提下,依序處理所有複合控制件內第二子控制件20的排列與換列,計算該第一子控制件10及各第二子控制件20的總寬度,判斷是否超過該移動瀏覽器的寬度;若是,則第二子控制件20進行換列,且同時增加該複合控制件之第一子控制件10的一個跨列數;若否,則直接輸出該第二子控制 件20。 Please refer to FIG. 2, (2) according to the screen width of the mobile browser, sequentially processing the arrangement and replacement of the second sub-controller 20 in all the composite control components without generating the lateral reel, and calculating the first The total width of the sub-controller 10 and each of the second sub-controllers 20 determines whether the width of the mobile browser is exceeded; if so, the second sub-controller 20 performs the re-arrangement and simultaneously increases the first sub-controller a cross-column number of the control member 10; if not, the second sub-control is directly output Item 20.

(S21)計算該第一個子控制件及一第二子控制件20的總寬度;(S22)確認該第一子控制件10及該第二子控制件20的總寬度是否超出該移動瀏覽器的總寬度,若是,則執行步驟S23;若否,則執行步驟S24;(S23)將該第一子控制件10的跨列數加一,並將該第二子控制件20換列;(S24)確認是否有下一個第二子控制件20,若是,則執行步驟S22;若否,則執行步驟S25;以及(S25)結束。 (S21) calculating a total width of the first sub-controller and a second sub-controller 20; (S22) confirming whether the total width of the first sub-controller 10 and the second sub-controller 20 exceeds the mobile browsing If the total width of the device is YES, step S23 is performed; if not, step S24 is performed; (S23) the number of cross-columns of the first sub-controller 10 is incremented by one, and the second sub-controller 20 is replaced; (S24) It is confirmed whether there is a next second sub-controller 20, and if so, step S22 is performed; if not, step S25 is performed; and (S25) is ended.

請參看第4圖至第7圖,詳細說明以下範例。 Please refer to Figures 4 to 7 for a detailed description of the following examples.

如第4圖所示,假設設備螢幕分辨率為320×480(寬度×高度)。選取兩個複合控制件,一個複合控制件由子控制件Cell 11、Cell 12、Cell 13、Cell 14和Cell 15組成,另一個複合控制件由子控制件Cell 21、Cell 22、Cell 23、Cell 24和Cell 25組成,其中一個複合控制件中的子控制件Cell 11為第一子控制件10,其餘子控制件Cell 12、Cell 13、Cell 14和Cell 15分別為第二子控制件20;另一個複合控制件中的子控制件Cell 21為第一子控制件10,其餘子控制件Cell 22、Cell 23、Cell 24和Cell 25分別為第二子控制件20。 As shown in Figure 4, assume that the device screen resolution is 320 × 480 (width × height). Two composite controls are selected. One composite control is composed of sub-controllers Cell 11, Cell 12, Cell 13, Cell 14 and Cell 15, and the other composite control is controlled by sub-controllers Cell 21, Cell 22, Cell 23, Cell 24 and The cell 25 is composed, wherein the sub-controller Cell 11 in one of the composite control members is the first sub-controller 10, and the remaining sub-controllers Cell 12, Cell 13, Cell 14, and Cell 15 are respectively the second sub-controller 20; The sub-controller Cell 21 in the composite control member is the first sub-controller 10, and the remaining sub-controllers Cell 22, Cell 23, Cell 24, and Cell 25 are the second sub-controller 20, respectively.

如第5圖所示,計算各個複合控制件的第一子控制件10寬度,如子控制件Cell 11、Cell 21寬度,並取得最大值,以供依據該最大值對齊。在第5圖中可看出,Cell 11原來的寬度為100,在處理後會以最大值120靠邊對齊。 As shown in Fig. 5, the width of the first sub-controller 10 of each composite control member, such as the sub-controller Cell 11, Cell 21 width, is calculated and the maximum value is obtained for alignment according to the maximum value. As can be seen in Figure 5, Cell 11 has an original width of 100 and will be aligned with a maximum of 120 edges after processing.

如第6圖所示,計算第一子控制件10和第二子控制件20是否超過螢幕寬度。當Cell 11(寬度120)和Cell 12(寬度90)相加小於螢幕寬度320時,總寬度會設為120+90=210,然後將總寬度和下一個第二子控制件Cell 13(寬度40)相加,直到總寬度大於螢幕寬度320為止。在第6圖中可看出,當Cell 11(寬度120)和Cell 12(寬度90)、Cell 13(寬度40)以及Cell 14(寬度120)相加時,總寬度變成120+90+40+120=370,此時總寬度即大於螢幕寬度320。 As shown in Fig. 6, it is calculated whether the first sub-controller 10 and the second sub-controller 20 exceed the screen width. When Cell 11 (width 120) and Cell 12 (width 90) are added less than the screen width 320, the total width is set to 120 + 90 = 210, then the total width and the next second sub-controller Cell 13 (width 40) Adding until the total width is greater than the screen width 320. As can be seen in Figure 6, when Cell 11 (width 120) and Cell 12 (width 90), Cell 13 (width 40), and Cell 14 (width 120) are added, the total width becomes 120+90+40+ 120=370, where the total width is greater than the screen width 320.

如第7圖所示,第一子控制件10與該等第二子控制件20超過螢幕,該等第二子控制件20進行換列,如將子控制件Cell 14換列。 As shown in FIG. 7, the first sub-controller 10 and the second sub-controllers 20 are over the screen, and the second sub-controllers 20 are replaced, such as sub-controller Cell 14.

本發明所述的移動設備可以是手機、個人數位助理,也可以是掌上型電腦或平板電腦。 The mobile device of the present invention may be a mobile phone, a personal digital assistant, or a palmtop computer or a tablet computer.

綜上所述,本發明的移動設備網頁表單產生方法針對網頁表單在不同移動瀏覽器內呈現的一致性要求,提出了解決方案,藉由複合控制件的設計,可避免因移動瀏覽器解譯方式差異造成網頁表單呈現不一致的問題,可適應不同的移動瀏覽器;在設計時期,不須做頁面控制件的排版設定,簡化開發工作;在執行時期,由渲染引擎根據客戶端移動瀏覽器的屬性,將設計時期產生的頁面定義腳本渲染成網頁,同時完成頁面控制件的排版,包括對各複合控制件內第一子控制件的對齊處理,以及第二子控制件的行列位置調整。 In summary, the mobile device webpage form generation method of the present invention proposes a solution for the consistency requirement of the webpage form presented in different mobile browsers, and the composite control component is designed to avoid interpretation by the mobile browser. The difference in the way causes the webpage form to be inconsistent, which can be adapted to different mobile browsers. In the design period, the layout control of the page control is not required to simplify the development work; during the execution period, the rendering engine is based on the client's mobile browser. The attribute is to render the page definition script generated by the design period into a webpage, and at the same time complete the layout of the page control component, including alignment processing of the first sub-controller in each composite control component, and alignment of the second sub-controller.

當然,本技術領域內的一般技術人員應當認識到,上述實施例僅是用來說明本發明,而並非用作對本發明的限定,只要在本發明的實質精神範圍內,對上述實施例的變化、變型等都將落在本發明的申請專利範圍內。 Of course, it should be understood by those skilled in the art that the above-described embodiments are merely illustrative of the invention and are not intended to limit the invention, as long as the changes of the above embodiments are within the spirit of the invention. Modifications, etc. will fall within the scope of the patent application of the present invention.

10‧‧‧第一子控制件 10‧‧‧First child control

20‧‧‧第二子控制件 20‧‧‧Second sub-controller

S11~S18‧‧‧步驟 S11~S18‧‧‧Steps

S21~S25‧‧‧步驟 S21~S25‧‧‧Steps

第1圖為本發明之移動設備網頁表單產生方法的步驟一之流程圖。 FIG. 1 is a flow chart of the first step of the method for generating a webpage form of a mobile device according to the present invention.

第2圖為本發明之移動設備網頁表單產生方法的步驟二之流程圖。 FIG. 2 is a flow chart of step 2 of the method for generating a webpage form of a mobile device according to the present invention.

第3圖為本發明中第一子控制件與第二子控制件之示意圖。 Figure 3 is a schematic view of the first sub-controller and the second sub-controller of the present invention.

第4圖至第7圖為本發明之移動設備網頁表單產生方法在實際使用中之步驟示意圖。 4 to 7 are schematic diagrams showing the steps of the method for generating a web page form of a mobile device in actual use.

S11~S18‧‧‧步驟 S11~S18‧‧‧Steps

Claims (7)

一種移動設備網頁表單產生方法,包含:提供至少一複合控制件,每一複合控制件係由一第一子控制件及至少一第二子控制件標記組合而成,所述複合控制件應用於一移動設備網頁;將所有複合控制件的第一子控制件設定為靠單邊對齊;以及根據該移動設備網頁的寬度及所有複合控制件的寬度,將所述第二子控制件進行換列。 A mobile device webpage form generating method includes: providing at least one composite control component, each composite control component being composed of a first sub-controller and at least a second sub-controller mark, wherein the composite control is applied to a mobile device webpage; setting a first sub-controller of all composite controls to be aligned on one side; and arranging the second sub-controller according to a width of the mobile device webpage and a width of all composite controls . 如申請專利範圍第1項所述之移動設備網頁表單產生方法,更包含將所述複合控制件顯示於該移動設備網頁的步驟。 The method for generating a mobile device webpage form according to claim 1, further comprising the step of displaying the composite control component on the mobile device webpage. 如申請專利範圍第1項所述之移動設備網頁表單產生方法,其中靠單邊對齊的步驟包含:取出所有複合控制件的第一子控制件寬度,計算出其中的最大值;以及將所有複合控制件的第一子控制件的寬度設定為該最大值,且設定為靠單邊對齊。 The mobile device webpage form generating method according to claim 1, wherein the step of unilaterally aligning comprises: taking out a width of the first sub-controller of all the composite control members, calculating a maximum value thereof; and all the composites The width of the first sub-control member of the control member is set to the maximum value and is set to be aligned on one side. 如申請專利範圍第3項所述之移動設備網頁表單產生方法,其中將所述第二子控制件進行換列的步驟包含:根據該最大值,計算每一複合控制件的第一子控制件及第二子控制件的總寬度;以及當該總寬度超過該移動設備網頁的寬度時,則將所述第二子控制件進行換列,且同時增加所述複合控制件之第一子控制件的一個跨列數。 The mobile device webpage form generating method according to claim 3, wherein the step of subdividing the second sub-controller comprises: calculating a first sub-controller of each composite control component according to the maximum value; And a total width of the second sub-controller; and when the total width exceeds a width of the mobile device webpage, exchanging the second sub-controller and simultaneously increasing the first sub-control of the composite control A cross-column number of pieces. 如申請專利範圍第4項所述之移動設備網頁表單產生方法,其中計 算每一複合控制件的總寬度步驟包含:加總該第一子控制件的寬度及第一個第二子控制件的寬度為一第一總寬度;以及當該第一總寬度未超出該移動設備網頁的寬度時,則加總該第一總寬度及第二個第二子控制件的寬度作為該總寬度。 The method for generating a mobile device webpage form according to item 4 of the patent application scope, wherein The step of calculating the total width of each composite control member includes: summing the width of the first sub-control member and the width of the first second sub-control member to a first total width; and when the first total width does not exceed the When the width of the mobile device webpage is increased, the first total width and the width of the second second sub-controller are added as the total width. 如申請專利範圍第1項所述之移動設備網頁表單產生方法,其中所述靠單邊對齊為左邊對齊。 The method for generating a mobile device webpage form according to claim 1, wherein the one-sided alignment is left-aligned. 如申請專利範圍第1項所述之移動設備網頁表單產生方法,其中所述靠單邊對齊為右邊對齊。 The method for generating a mobile device webpage form according to claim 1, wherein the one-sided alignment is aligned to the right.
TW101138691A 2011-10-21 2012-10-19 Method for generating webpage form on mobile device TWI451322B (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110320809.9A CN102541534B (en) 2011-10-21 2011-10-21 Webpage window generating method of mobile device

Publications (2)

Publication Number Publication Date
TW201317884A true TW201317884A (en) 2013-05-01
TWI451322B TWI451322B (en) 2014-09-01

Family

ID=46348512

Family Applications (1)

Application Number Title Priority Date Filing Date
TW101138691A TWI451322B (en) 2011-10-21 2012-10-19 Method for generating webpage form on mobile device

Country Status (2)

Country Link
CN (1) CN102541534B (en)
TW (1) TWI451322B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104854559A (en) * 2014-10-16 2015-08-19 深圳市融资城网络服务中心有限公司 Internet page unit aligning method and apparatus
CN106557491A (en) * 2015-09-25 2017-04-05 北京奇虎科技有限公司 A kind of method and apparatus for showing list data in webpage
CN105893022A (en) * 2015-12-28 2016-08-24 乐视致新电子科技(天津)有限公司 Production method and system of combined user interface control, and control method and system of combined user interface control
CN108563477B (en) * 2018-03-02 2022-04-26 北京奇艺世纪科技有限公司 Page event response method and device

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100805170B1 (en) * 2006-03-09 2008-02-21 엔씨소프트 재팬 가부시키 가이샤 Apparatus and Method for Changing Web Design
US20080104269A1 (en) * 2006-10-30 2008-05-01 Research In Motion Limited Method and apparatus for web browser page fragmentation
US8086957B2 (en) * 2008-05-21 2011-12-27 International Business Machines Corporation Method and system to selectively secure the display of advertisements on web browsers
WO2010012081A1 (en) * 2008-07-29 2010-02-04 Research In Motion Limited Method and system for rendering a representation of a webpage on a display
CN102184249B (en) * 2011-05-23 2016-01-06 广州市动景计算机科技有限公司 Based on webpage layout method and the device of mobile terminal
CN102214454A (en) * 2011-05-27 2011-10-12 苏州阔地网络科技有限公司 Control arrangement display method, system and client

Also Published As

Publication number Publication date
TWI451322B (en) 2014-09-01
CN102541534B (en) 2014-09-10
CN102541534A (en) 2012-07-04

Similar Documents

Publication Publication Date Title
Jiang et al. Responsive web design mode and application
US11170159B1 (en) System and method for using a dynamic webpage editor
US8448074B2 (en) Method and apparatus for providing portioned web pages in a graphical user interface
TWI552588B (en) Apparatuses and methods for web application converter systems
US9142192B2 (en) Simulation of web applications and secondary devices in a web browser, web application development tools, and methods using the same
WO2017028611A1 (en) Form implementation method and apparatus
US10282399B2 (en) System and method for web content presentation management
US20130080887A1 (en) Simulation of web applications and secondary devices in a web browser, web application development tools, and methods using the same
US20140108909A1 (en) Graceful degradation of level-of-detail in document rendering
TWI451322B (en) Method for generating webpage form on mobile device
CN105069060B (en) HTML document paging typesetting method
CN105094930A (en) Image positioning system and method
US10599754B2 (en) Context editing without interfering with target page
CN104636400A (en) Browser webpage generating method, browser and system
CN102364460A (en) Automatic page amplification method and system based on mobile terminal
CN104049854A (en) Display processing method and electronic equipment
WO2015035319A1 (en) Method and apparatus of controlling page element
CN102253986A (en) Method and device for improving webpage displaying effect in multiple terminals
CN105786987A (en) Page configuration method and device
TWI489370B (en) System and method for rendering widget
KR101332669B1 (en) Method for homepage design
Krbecek et al. Optimization of remote laboratories for mobile devices
CN103412715A (en) Reading system of electronic publications
US20080244394A1 (en) Display and layout flow of relatively positioned user interface items
JP2014164736A (en) Web page browsing device and program