CN1205578C - Methods for Implementing a List Box Control - Google Patents
Methods for Implementing a List Box Control Download PDFInfo
- Publication number
- CN1205578C CN1205578C CN 01103693 CN01103693A CN1205578C CN 1205578 C CN1205578 C CN 1205578C CN 01103693 CN01103693 CN 01103693 CN 01103693 A CN01103693 A CN 01103693A CN 1205578 C CN1205578 C CN 1205578C
- Authority
- CN
- China
- Prior art keywords
- list box
- database
- data
- size
- range
- Prior art date
- Legal status (The legal status 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 status listed.)
- Expired - Fee Related
Links
- 238000000034 method Methods 0.000 title claims abstract description 37
- 230000027455 binding Effects 0.000 claims description 10
- 238000009739 binding Methods 0.000 claims description 10
- 230000006870 function Effects 0.000 claims description 4
- 238000005516 engineering process Methods 0.000 description 6
- 230000008569 process Effects 0.000 description 4
- 238000010586 diagram Methods 0.000 description 3
- 241001269238 Data Species 0.000 description 2
- 230000002093 peripheral effect Effects 0.000 description 2
- 230000008901 benefit Effects 0.000 description 1
- 230000002950 deficient Effects 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000008676 import Effects 0.000 description 1
- 230000002452 interceptive effect Effects 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
Images
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
A method for realizing a list box control at least comprises the following steps: reading the table range of the list frame; connecting a database, wherein the size of the database is larger than the range of the table; reading a header row from a database and at least one batch of data corresponding to the table range; displaying the title line and the data; reading the movement amount of the movement index of the list frame; calculating the new position of the table range moved to in the database according to the movement amount, and finding out at least one new batch of data at the new position; and displaying the title line and the new data. In addition, the method uses script program , so it is not limited by the browser type.
Description
Technical field
The present invention relates to a kind of can be along with the title of the mobile while display column bezel, cluster of form and the method for content, a kind of method that can dynamically support data binding, and a kind of method that is not subjected to the restriction of browser kind.
Background technology
The technology of present technology, particularly webpage, all there are some shortcomings in employed list box and form.With regard to list box, generally all have single-row (row), therefore can not realize the effect that multiple row presents simultaneously, make the user can not consult not only a kind of data and mutual more different data simultaneously.With regard to form, synoptic diagram with reference to Figure 1A and Figure 1B, though form can be realized multiple row, but by content 11 in the what form is to be changed with move (the mobile index 13 by mobile row 12 controls) of showing form, if therefore will show the data lot number of the consulting demonstration amounts of crossing form more, when the amount of movement of mobile index 13 was enough big, whole form just can only demonstrate many batches of data and not demonstrate the title 14 of form, increases user's puzzlement.
Moreover with present technology, particularly web technologies, the list box of being realized can not dynamically be supported the binding of data, nor can dynamically realize the renewal of content in the list box.
In addition, in the category of webpage, mostly the existing list box control that technology provided is to adopt Active X program constructed.Its advantage is can be designed to by the Internet data download or be designed to interactive interface, but its shortcoming is not to be that browser is all supported this type of control, just do not support as NetscapeCommunication, make the use of this type of list box can be subjected to the restriction of browser type.Apparently, use the constructed list box of Active X program and can run into the problem of safety in utilization, and must develop separately and make up, make mode of operation complicated and cost is also improved thereupon at dissimilar browsers.
Comprehensive aforementioned several shortcomings, existing as can be seen list box still has the many places that can improve, in the time of particularly on being applied to webpage.Therefore, be necessary to develop new list box.
Summary of the invention
Fundamental purpose of the present invention is to provide the list box control that can realize the multiple row form and it is controlled, and this multiple row mode is removed can present the multiple row content as form, also can realize the function of multiselect or Dan Xuan.
Another object of the present invention is to propose to the content of list box dynamically add and data (as data) binding after the method for relevant treatment.
Another purpose of the present invention is when list box is applied to webpage, can not be subjected to the restriction of browser, need not overlapping development to reduce cost of development.
A preferred embodiment of the present invention is a kind of method that realizes list box control, comprises the following step at least: the form scope that at first reads list box; Be connected to database then, wherein the size of database is bigger than form scope; Then read header line and at least one batch data that corresponds to this form scope from database; Show that then header line and these data are to a display; Next when the amount of movement of the mobile index that reads this list box is non-vanishing; Calculate the reposition that this form scope is moved to according to amount of movement in this database, and find out at least a collection of new data of position at this reposition; And show that header line and these new datas are to this display.
Another preferred embodiment of the present invention is a kind of method that can not be subjected to browser type restrictedly to realize list box control in webpage, at least comprise the following step: the outer layer zone domain sizes and the internal layer area size that read list box, and when the size of internal layer area surpasses the outer layer zone domain sizes, just the overflow attribute of setting outer zone is automatic, otherwise just continue from the database value and judge this two size, make shown content can't surpass the zone of list box whereby and start mobility; According at least one gauge outfit element of the inner layer sheet that is arranged in internal layer area, set up the header line of list box; According to user's setting, finish multiple selection and the control of singly selecting behavior; And after obtaining database and finishing notice, obtain information of each row of this list box successively from database.
By method of the present invention, can be along with the title and the content of the mobile while display column bezel, cluster of form, can realize the list box control of multiple row form and it is controlled, this multiple row mode is removed can present the multiple row content as form, also can realize the function of multiselect or Dan Xuan, method of the present invention in addition can realize to the content of list box dynamically add and data (as data) bindings after relevant treatment, in addition when list box is applied to webpage, can not be subjected to the restriction of browser, need not overlapping development to reduce cost of development.
The accompanying drawing summary
Figure 1A and Figure 1B figure are the synoptic diagram of the common a kind of shortcoming of common list box;
How Fig. 2 A and Fig. 2 B overcome the conceptual schematic view of the shown shortcoming of Figure 1A and Figure 1B figure for the present invention;
Fig. 2 C and Fig. 2 D are for using the result schematic diagram that the present invention overcomes Figure 1A and the shown shortcoming of Figure 1B;
Fig. 3 is the schematic flow sheet of a preferred embodiment of the present invention; With
Fig. 4 is the schematic flow sheet of another preferred embodiment of the present invention.
The reference numeral explanation
11 contents
12 move row
13 move index
14 titles
21 contents
22 move row
23 move index
24 titles
25 databases
31 restriction squares
32 data block
33 input squares
34 show square
35 move square
36 calculate square
37 show square again
41 FLOW CONTROL modules
42 list box gauge outfit control modules
43 users select control module
44 data binding modules
45 style definition modules.
Embodiment
At first the present inventor points out that the title of common form can be with the shortcoming that disappears that moves of form, because not with header line and other content row separate processes in order to video data, so when form moves when enough far away, the content row that video data uses just only occurs and can't demonstrate title simultaneously.
Therefore, one of the present invention preferred embodiment is a kind of method that realizes list box control, and wherein header line and content row are separate processes.Shown in Fig. 2 A and Fig. 2 B figure, moving of list box 21 only changes the corresponding data area 24 of content row 22 at database 23, and 25 of header lines can't correspond to different contents with moving of list box 21, are immovable fully therefore.Its result can be found out this moment, no matter how list box moved by Fig. 2 C and Fig. 2 D figure, and the data that correspond to are those, can see header line 25 all the time.
As shown in Figure 3, the method comprises following basic step at least: at first shown in restriction square 31, read the form scope of list box; Shown in data square 32, be connected to database then, wherein the size of database is bigger than this form scope; Then shown in input square 33, read header line and at least one batch data that corresponds to this form scope from database; As showing shown in the square 34, show that header line and these data are to a display then; Next shown in mobile square 35, when the mobile index that reads list box is moved, write down its amount of movement; As calculate shown in the square 36, calculate the reposition that this form scope is moved to according to amount of movement in this database, and find out a collection of at least new data that is positioned at this reposition; And, show that header line and these new datas are to this display as showing again shown in the square 37.
Certainly, this method also can comprise carries out a style define program, defines the display styles of list box control whereby, and whether decorative pattern is arranged around the color of for example employed font, list box and the list box; Need not compile promptly and can the execution script formula carry out the data binding operation and can more comprise yet, dynamic binding and the possibility that is not subjected to the browser type restriction are provided whereby database with one.
In addition, when list box was used what one webpage, above-mentioned form scope was that list box is at Hypertext Markup Language HTML (HyperText Markup Language, HTML) coordinate in.And above-mentioned list box comprises row at least, and when list box comprised not only row, at least one particular column that this method more comprises in only selected these row realized so-called list box control.
At using on webpage, the present invention also proposes a kind of method that can not be subjected to browser type restrictedly to realize list box control in webpage.As shown in Figure 4, comprise the following step at least:
Shown in FLOW CONTROL module 41, read the outer layer zone domain sizes and the internal layer area size of list box, and when the size of internal layer area surpasses the outer layer zone domain sizes, that just sets outer zone overflows (overflow) attribute for automatic, otherwise just continue from the database value and judge the two size, make like this content displayed can not surpass list box fixed zone and start mobility.At least be listed as at this list box, outer zone is the coordinate of list box in Hypertext Markup Language HTML, for example height and width.
Shown in list box gauge outfit control module 42, at least one gauge outfit element (table head element according to an inner layer sheet that is arranged in internal layer area, THEAD ELEMENT), set up a title of this list box, for example with each gauge outfit element of finding directly as the content of header line.Be regarded as a form at this list box, simulate the multiple row function of form whereby, and its content given ground by outer caller, in case the user calls a certain list box, title of its each row will generate according to aforesaid Automatic Program.
Select shown in the control module 43 as the user,, finish multiple selection and the control of singly selecting behavior according to user's setting.In this basic flow process be: receive peripheral hardware and import the content of selecting current line of input and reading this row; Judge whether to be the multiselect operation; When being that next peripheral hardware input is just waited in multiselect operation.Certainly, if find have any delegation not have data to read, just stop whole flow process.
Shown in data binding module 44, after the acquisition database is finished notice (DataSetCompleteInformation), obtain information of each row of list box successively from database.Apparently, the purpose of this module is dynamically to add the content of list box, and the relevant treatment after data (data) binding.
Certainly, this method also can comprise a style define program again, defines the display styles of list box control piece whereby, around the color of for example employed font, list box and the list box whether decorative pattern is arranged, shown in style definition module 45.
What must one carry is, this method is to use that need not compile promptly can the execution script formula, the defective that the browser kind that institute will inevitably meet with in the time of therefore can avoiding using Active X program limits.
The above is the preferred embodiments of the present invention only, is not in order to limit claim of the present invention; All other do not break away from the equivalence of being finished under the disclosed spirit of the present invention and changes or modification, all should be included in the following claim.
Claims (14)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN 01103693 CN1205578C (en) | 2001-02-09 | 2001-02-09 | Methods for Implementing a List Box Control |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN 01103693 CN1205578C (en) | 2001-02-09 | 2001-02-09 | Methods for Implementing a List Box Control |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN1368696A CN1368696A (en) | 2002-09-11 |
| CN1205578C true CN1205578C (en) | 2005-06-08 |
Family
ID=4653421
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN 01103693 Expired - Fee Related CN1205578C (en) | 2001-02-09 | 2001-02-09 | Methods for Implementing a List Box Control |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN1205578C (en) |
Families Citing this family (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2007536634A (en) * | 2004-05-04 | 2007-12-13 | フィッシャー−ローズマウント・システムズ・インコーポレーテッド | Service-oriented architecture for process control systems |
| KR100687241B1 (en) * | 2004-10-29 | 2007-02-27 | 히타치 오므론 터미널 솔루션즈 가부시키가이샤 | Display input system; Display control method |
| US20060104276A1 (en) * | 2004-11-18 | 2006-05-18 | International Business Machines Corporation | Dynamic hover text for HTML table cells |
-
2001
- 2001-02-09 CN CN 01103693 patent/CN1205578C/en not_active Expired - Fee Related
Also Published As
| Publication number | Publication date |
|---|---|
| CN1368696A (en) | 2002-09-11 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US8880995B2 (en) | Method and system for localized scrolling table display in a webpage | |
| JP4639242B2 (en) | Browser program, method and apparatus for performing table layout | |
| JP4059802B2 (en) | Image display method | |
| CN102375851B (en) | Method and equipment for display page | |
| US20050289121A1 (en) | Web-compatible electronic device, web page processing method, and program | |
| CN103365877B (en) | Method and server to establishing catalogue after webpage progress transcoding | |
| CN1959679A (en) | Method for picking-up, and aggregating micro content of web page, and automatic updating system | |
| CN1417709A (en) | Information search system and method | |
| CN1489034A (en) | Method and device for printing web pages | |
| CN1205578C (en) | Methods for Implementing a List Box Control | |
| CN102129453A (en) | Display control device and method capable of displaying search result in mode of text completed with graphs | |
| US8527861B2 (en) | Methods and apparatuses for display and traversing of links in page character array | |
| CN110321506A (en) | Webpage data loading method, device, computer equipment and storage medium | |
| CN101042694A (en) | Method for accessing father page in the time of browing web page | |
| CN1366253A (en) | Communication system possessing world wide web file close up function, close up method and medium | |
| JP2006190253A (en) | Method and apparatus for evaluating aspects of web pages | |
| CN118672579A (en) | Webpage layout method and device for browser automatic adaptation | |
| CN1826759A (en) | Message analysis device and method for analysis | |
| CN118312692A (en) | Method, device, equipment and medium for rendering waterfall stream based on virtual list | |
| JP7206863B2 (en) | Display control method, device, and program | |
| US20110099468A1 (en) | Document display system | |
| CN104375931A (en) | Mobile browser feature detection and result statistics method | |
| CN1317755A (en) | Method and appts. for using figure user's interface for searching and displaying information having layered structure at free depth | |
| CN1776690A (en) | Method for realizing page display content typesetting based on wap web site | |
| JP2007280020A (en) | Web information retrieval system |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| C14 | Grant of patent or utility model | ||
| GR01 | Patent grant | ||
| C17 | Cessation of patent right | ||
| CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20050608 Termination date: 20110209 |