CN102467366A - Page developing method and device based on wireless application protocol (WAP) - Google Patents

Page developing method and device based on wireless application protocol (WAP) Download PDF

Info

Publication number
CN102467366A
CN102467366A CN2010105330584A CN201010533058A CN102467366A CN 102467366 A CN102467366 A CN 102467366A CN 2010105330584 A CN2010105330584 A CN 2010105330584A CN 201010533058 A CN201010533058 A CN 201010533058A CN 102467366 A CN102467366 A CN 102467366A
Authority
CN
China
Prior art keywords
control
page
code
wap
icons
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.)
Pending
Application number
CN2010105330584A
Other languages
Chinese (zh)
Inventor
肖凡
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
BEIJING WIRELISS HENGYUAN TECHNOLOGY Co Ltd
Original Assignee
BEIJING WIRELISS HENGYUAN TECHNOLOGY 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 BEIJING WIRELISS HENGYUAN TECHNOLOGY Co Ltd filed Critical BEIJING WIRELISS HENGYUAN TECHNOLOGY Co Ltd
Priority to CN2010105330584A priority Critical patent/CN102467366A/en
Publication of CN102467366A publication Critical patent/CN102467366A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention provides a page developing method based on a wireless application protocol (WAP), which comprises the following steps of: S1, setting a control library for carrying out encapsulation on control codes, and storing the one-to-one correspondence mapping relationship among control icons, control names and the control codes; S2, dragging the required control icon and releasing the required icon to the required position onto a page template; S3, finding the corresponding control code in the control library according to the control name corresponding to the released control icon; and S4, adding the found control code into page template codes. The invention also discloses a corresponding device. The page developing method and the page developing device based on the WAP disclosed by the invention have the advantages that through the arrangement of the control library, controls can be dragged to any position on the page, and in addition, the executing results of the control code and the modification results of the page can be directly shown in a browser, so the operation is more convenient, fast and visual, and the work efficiency is also improved.

Description

Page development method and device thereof based on WAP
Technical field
The present invention relates to WAP Wireless Application Protocol, WAP) technical field, particularly a kind of page development method and device thereof based on WAP.
Background technology
Page development based on the WAP business in the prior art is to integrate resource needed through the backstage mostly, cooperates the code of realizing service logic to generate the page that appears to the user again.Along with the professional development of WAP; The developer can write various programs and cooperate the backstage resource content to present to the user with diversified form at front end (browser); These programs are the controls on WAP backstage, and a plurality of set of controls lump together and just formed the WAP page that the user sees at browser.Though this development approach of control of utilizing can make page presentation mode abundanter, exists the following defective simultaneously:
1, the developer is difficult to obtain intuitively the pairing content of pages of each control, if mistake appears in the page, the developer can not learn at once that wrong concrete control appears in the backstage, and can only investigate one by one;
2, in each result of revising of can not obtaining at once when the page is made amendment, the developer must go access browser to open corresponding address again can see the result, makes amendment and just also need refresh once more, and so repeatable operation is very loaded down with trivial details;
3, the content of control is realized by the personnel that write of program; The content of the uncontrollable control of developer of the page; Thereby can not independently accomplish the composing of the page and follow-up expansion, just need link up with the personnel of writing repeatedly in case need to revise the control content, the result that appears of the page just is difficult to the effect that reaches best at short notice like this; Thereby influenced work efficiency, increased working link and error probability.
Summary of the invention
The purpose of this invention is to provide a kind of page development method and device thereof, to solve the above-mentioned defective that exists in the prior art based on WAP.
Technical scheme of the present invention provides a kind of page development method based on WAP, may further comprise the steps:
S1, widget library is set, is used for the control code is encapsulated, and storage control icon, control title and said control code three mapping relations one to one;
S2, pull required said control icons, and be discharged into the desired location on the Page Template;
S3, according to the said control icons corresponding controls title that is discharged, in said widget library, search the corresponding controls code;
S4, add in the Page Template code searching the control code that obtains.
In the above-mentioned page development method, also comprise after the step S4 based on WAP:
S5, refresh said Page Template, the execution result with said control code after clicking the said control icons that is discharged is presented in the page browser.
In the above-mentioned page development method, also comprise among the step S4 based on WAP:
Position according to control icons discharged described in the step S2 generates the code of corresponding indicating positions, and adds in the said Page Template code.
In the above-mentioned page development method, also comprise after the step S5 based on WAP:
S6, on said Page Template the adjustment said control icons position and/or size;
S7, generate the code of corresponding indicating positions and size, and upgrade said Page Template code, return step S5 again according to the position of adjusted said control icons and size.
Technical scheme of the present invention also proposes a kind of page development device based on WAP, it is characterized in that, comprising:
The widget library module is used for the control code is encapsulated, and storage control icon, control title and said control code three mapping relations one to one;
Control drag and drop module is used to pull required said control icons, and is discharged into the desired location on the Page Template;
The control enquiry module is used for the pairing control title of said control icons according to said control drag and drop module release, in said widget library module, searches the corresponding controls code;
Page maintenance module is searched the control code that obtains with said control enquiry module and is added in the Page Template code.
Above-mentioned page development device based on WAP also comprises:
The page furbishing module is used to refresh said Page Template, and after clicking the said control icons discharged, the execution result of said control code is presented in the page browser.
In the above-mentioned page development device based on WAP, said page maintenance module also is used for generating the code of corresponding indicating positions according to the position that said control drag and drop module discharges said control icons, and adds in the said Page Template code.
Above-mentioned page development device based on WAP also comprises:
The control adjusting module is used on said Page Template the position and/or the size of the said control icons of adjustment; Then
Said page maintenance module also is used for generating the code of corresponding indicating positions and size according to the position of adjusted said control icons with size, and upgrades said Page Template code.
The present invention is based on page development method and the device thereof of WAP; Through widget library is set; Make control can be dragged to optional position on the page; And the modification result of the execution result of control code and the page can directly appear at browser, thereby makes operation more convenient, directly perceived, has also improved work efficiency.
Description of drawings
Fig. 1 is page development method embodiment one process flow diagram that the present invention is based on WAP;
Fig. 2 is page development method embodiment two process flow diagrams that the present invention is based on WAP;
Fig. 3 is the page development device example structure figure that the present invention is based on WAP.
Embodiment
To combine accompanying drawing to introduce page development method and the device thereof that the present invention is based on WAP in detail below.
Fig. 1 is page development method embodiment one process flow diagram that the present invention is based on WAP, and as shown in the figure, the method for present embodiment may further comprise the steps S101~S104.
S101, widget library is set, is used for the control code is encapsulated, and storage control icon, control title and control code three mapping relations one to one;
Along with the professional development of WAP, the control kind of being developed is also more and more.For making things convenient for the management of control, at first the control code is encapsulated in the present embodiment through widget library is set, and with control icons and control title identify pairing control intuitively.Also therefore, store the mapping relations of control icons, control title and control code in the widget library.Wherein, Control icons can be used to carry out follow-up drag operation intuitively; And the control title can be used as the basis of follow-up automatic inquiry control code, and control icons and control title be directly to present to the developer, and the associative operation of control code (access, modification etc.) then only carries out on the backstage.
S102, pull required control icons, and be discharged into desired location on the Page Template;
After being provided with through the code encapsulation of step S102 and mapping relations, control icons can directly be pulled, be discharged into desired position on the Page Template.
S103, according to the control icons corresponding controls title that is discharged, in widget library, search the corresponding controls code;
When control icons is discharged into the desired location on the Page Template, can be according to this control icons corresponding controls title, inquiry obtains the corresponding controls code in above-mentioned widget library.
S104, add in the Page Template code searching the control code that obtains;
The control code that step S103 inquiry obtains is added in the Page Template code automatically; Meanwhile, according to the position that control icons discharged among the step S102, program also can find point of release automatically, and generates the code of corresponding indicating positions in view of the above, and this code is also added in the Page Template code at random automatically.
Fig. 2 is page development method embodiment two process flow diagrams that the present invention is based on WAP, and as shown in the figure, the method for present embodiment may further comprise the steps S201~S207.
S201, widget library is set, is used for the control code is encapsulated, and storage control icon, control title and control code three mapping relations one to one;
S202, pull required control icons, and be discharged into the desired location on the Page Template;
S203, according to the control icons corresponding controls title that is discharged, in widget library, search the corresponding controls code;
S204, add in the Page Template code searching the control code that obtains;
Above-mentioned steps S201~S204 corresponds respectively to step S101~S104 of embodiment one, no longer gives unnecessary details here.
S205, refresh Page Template, the execution result with the control code after clicking the control icons that is discharged is presented in the page browser;
Since among the step S202 control icons to pull with releasing operation be directly in page browser, to carry out; Therefore after the desired location that control icons is discharged on the Page Template, the operating result that this adds control is fed back in real time thereby page browser can directly refresh Page Template.Further; After clicking the control icons that is added; Page browser also can be passed through the execution result that Ajax [AsynchronousJavaScript and XML, asynchronous JavaScript (realizing the script that browser dynamically shows) and XML (extend markup language)] obtains its control code, and with HTML (HyperText Mark-up Language; HTML) form is presented on the result in the browser, reaches the purpose of real-time feedback controls content.
S206, on Page Template the adjustment control icons position and/or size;
Can obtain the preliminary execution result that this control adds operation through step S205, the result according to feedback can adjust the position and/or the size of control icons on the Page Template.
S207, generate the code of corresponding indicating positions and size according to the position of adjusted control icons and size, and refresh page face die plate code, step S205 returned again;
Said content class seemingly with step S104 (being the step S204 of corresponding present embodiment) in the foregoing description one method; After position, the size adjustment of control icons being obtained the second fruiting that this control adds operation through step S206; Program can find final position of control icons and size; Can generate the code of indicating positions and size in view of the above automatically; And the Page Template code upgraded, can return step S205 afterwards again and check and revise the result that the back is fed back, proceed so repeatedly to show and the implementation effect optimal state until reaching control.
Comprehensive above two embodiment can draw, and use the page development method that the present invention is based on WAP and can realize following beneficial effect:
1, various controls can be drawn to the needed position of the page as required freely, and these operations can be on browser directly realize, and are not only convenient but also directly perceived;
2, each control code is carried out resulting result and can on page browser, be obtained feedback immediately, thereby the control that convenient location goes wrong is investigated need not in prior art one by one;
3, the page development personnel can independently accomplish composing and the expansion of many controls on the page; Except that the problem of control code itself, need not to link up repeatedly with the programming personnel; Thereby reduced working link to a certain extent, thereby can increase work efficiency, reduce error probability;
4, control can be dragged to the optional position of the page in the widget library, the convenient development and operation of realizing once realizing a plurality of Page Templates.
Fig. 3 is the page development device example structure figure that the present invention is based on WAP; As shown in the figure; The device of present embodiment comprises: widget library module 31, be used for the control code is encapsulated, and storage control icon, control title and control code three mapping relations one to one; Control drag and drop module 32 is used for adding module 31 from control and pulls required control icons, and is discharged into the desired location on the Page Template; Control enquiry module 33 is used for the pairing control title of control icons according to 32 releases of control drag and drop module, in widget library module 31, searches the corresponding controls code; Page maintenance module 34 is searched the control code that obtains with control enquiry module 33 and is added in the Page Template code, and the position that discharges control icons according to control drag and drop module 32 simultaneously generates the code of corresponding indicating positions and adds in the Page Template code; Page furbishing module 35 is used to refresh Page Template, and after clicking the control icons discharged, the execution result of control code is presented in the page browser; Control adjusting module 36; Be used for position and/or the size of on Page Template, adjusting control icons with execution result that refresh, then upgrade with the code of size and to the Page Template code with the corresponding indicating positions of size generation according to the position of adjusted control icons afterwards by face face maintenance module 34 according to page furbishing module 35.
Can know that by above description the function that each module is carried out in the present embodiment device is corresponding with the treatment step of the method embodiment two of the invention described above.Therefore, after reading the application's instructions, can finely understand, the device of present embodiment can be used for carrying out all processing of each embodiment and each instantiation of the invention described above method fully, no longer gives unnecessary details here.
What need statement is that foregoing invention content and embodiment are intended to prove the practical application of technical scheme provided by the present invention, should not be construed as the qualification to protection domain of the present invention.Those skilled in the art are in spirit of the present invention and principle, when doing various modifications, being equal to replacement or improvement.Protection scope of the present invention is as the criterion with appended claims.

Claims (8)

1. the page development method based on WAP is characterized in that, may further comprise the steps:
S1, widget library is set, is used for the control code is encapsulated, and storage control icon, control title and said control code three mapping relations one to one;
S2, pull required said control icons, and be discharged into the desired location on the Page Template;
S3, according to the said control icons corresponding controls title that is discharged, in said widget library, search the corresponding controls code;
S4, add in the Page Template code searching the control code that obtains.
2. according to claim 1 based on the wireless page development method that should answer agreement, it is characterized in that, also comprise after the step S4:
S5, refresh said Page Template, the execution result with said control code after clicking the said control icons that is discharged is presented in the page browser.
3. according to claim 1 or claim 2 based on the page development method of WAP, it is characterized in that, also comprise among the step S4:
Position according to control icons discharged described in the step S2 generates the code of corresponding indicating positions, and adds in the said Page Template code.
4. like the said page development method of claim 2, it is characterized in that, also comprise after the step S5 based on WAP:
S6, on said Page Template the adjustment said control icons position and/or size;
S7, generate the code of corresponding indicating positions and size, and upgrade said Page Template code, return step S5 again according to the position of adjusted said control icons and size.
5. the page development device based on WAP is characterized in that, comprising:
The widget library module is used for the control code is encapsulated, and storage control icon, control title and said control code three mapping relations one to one;
Control drag and drop module is used to pull required said control icons, and is discharged into the desired location on the Page Template;
The control enquiry module is used for the pairing control title of said control icons according to said control drag and drop module release, in said widget library module, searches the corresponding controls code;
Page maintenance module is searched the control code that obtains with said control enquiry module and is added in the Page Template code.
6. like the said page development device of claim 5, it is characterized in that, also comprise based on WAP:
The page furbishing module is used to refresh said Page Template, and after clicking the said control icons discharged, the execution result of said control code is presented in the page browser.
7. like claim 5 or 6 said page development devices based on WAP; It is characterized in that; Said page maintenance module; Also be used for generating the code of corresponding indicating positions, and add in the said Page Template code according to the position that said control drag and drop module discharges said control icons.
8. like the said page development device of claim 5, it is characterized in that, also comprise based on WAP:
The control adjusting module is used on said Page Template the position and/or the size of the said control icons of adjustment; Then
Said page maintenance module also is used for generating the code of corresponding indicating positions and size according to the position of adjusted said control icons with size, and upgrades said Page Template code.
CN2010105330584A 2010-11-04 2010-11-04 Page developing method and device based on wireless application protocol (WAP) Pending CN102467366A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2010105330584A CN102467366A (en) 2010-11-04 2010-11-04 Page developing method and device based on wireless application protocol (WAP)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2010105330584A CN102467366A (en) 2010-11-04 2010-11-04 Page developing method and device based on wireless application protocol (WAP)

Publications (1)

Publication Number Publication Date
CN102467366A true CN102467366A (en) 2012-05-23

Family

ID=46071043

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2010105330584A Pending CN102467366A (en) 2010-11-04 2010-11-04 Page developing method and device based on wireless application protocol (WAP)

Country Status (1)

Country Link
CN (1) CN102467366A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104850436A (en) * 2015-05-15 2015-08-19 无锡天脉聚源传媒科技有限公司 Method and device for loading plug-in in page
CN105718472A (en) * 2014-12-05 2016-06-29 成都复晓科技有限公司 Method and device for expressing index
CN108491128A (en) * 2018-03-16 2018-09-04 维沃移动通信有限公司 A kind of application management method and terminal
CN110096608A (en) * 2019-05-16 2019-08-06 北京奇艺世纪科技有限公司 It is laid out search method and relevant device
CN112905920A (en) * 2019-12-04 2021-06-04 腾讯科技(深圳)有限公司 Page display method and device
CN115857908A (en) * 2023-02-23 2023-03-28 长威信息科技发展股份有限公司 Visual modeling system for literary travel

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060206856A1 (en) * 2002-12-12 2006-09-14 Timothy Breeden System and method for software application development in a portal environment
CN101393519A (en) * 2008-07-09 2009-03-25 深圳企网信息技术有限公司 Web station rapid development technique based on component and drag and drop design
CN101697156A (en) * 2009-10-29 2010-04-21 孟智平 Method and system for constructing chain web pages
US20100125829A1 (en) * 2008-11-20 2010-05-20 Nhn Corporation Component-based web application development framework used for creating web page

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060206856A1 (en) * 2002-12-12 2006-09-14 Timothy Breeden System and method for software application development in a portal environment
CN101393519A (en) * 2008-07-09 2009-03-25 深圳企网信息技术有限公司 Web station rapid development technique based on component and drag and drop design
US20100125829A1 (en) * 2008-11-20 2010-05-20 Nhn Corporation Component-based web application development framework used for creating web page
CN101697156A (en) * 2009-10-29 2010-04-21 孟智平 Method and system for constructing chain web pages

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
韩海雯等: "《Web程序设计——ASP.NET》", 31 December 2008 *

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105718472A (en) * 2014-12-05 2016-06-29 成都复晓科技有限公司 Method and device for expressing index
CN105718472B (en) * 2014-12-05 2019-02-22 成都复晓科技有限公司 A kind of method and apparatus of indicators
CN104850436A (en) * 2015-05-15 2015-08-19 无锡天脉聚源传媒科技有限公司 Method and device for loading plug-in in page
CN104850436B (en) * 2015-05-15 2018-02-09 无锡天脉聚源传媒科技有限公司 A kind of method and device that plug-in unit is loaded in the page
CN108491128A (en) * 2018-03-16 2018-09-04 维沃移动通信有限公司 A kind of application management method and terminal
CN110096608A (en) * 2019-05-16 2019-08-06 北京奇艺世纪科技有限公司 It is laid out search method and relevant device
CN112905920A (en) * 2019-12-04 2021-06-04 腾讯科技(深圳)有限公司 Page display method and device
CN112905920B (en) * 2019-12-04 2023-08-04 腾讯科技(深圳)有限公司 Page display method and device
CN115857908A (en) * 2023-02-23 2023-03-28 长威信息科技发展股份有限公司 Visual modeling system for literary travel
CN115857908B (en) * 2023-02-23 2023-09-01 长威信息科技发展股份有限公司 Visual modeling system for travel

Similar Documents

Publication Publication Date Title
US9696972B2 (en) Method and apparatus for updating a web-based user interface
US11093242B2 (en) Automatically mapping data while designing process flows
JP5089684B2 (en) Technology for generating service programs
US9021440B1 (en) System and method for automated test script generation
US8776016B2 (en) Integration of structured profiling data with source data in the eclipse development environment
CN102467366A (en) Page developing method and device based on wireless application protocol (WAP)
CN103164300A (en) Mobile terminal touch screen automatic testing method and device
US20160299745A1 (en) Development method for web development system, and web development system
CN103309667B (en) The method of UI control and picture location revision is located in Android system
US8972857B2 (en) Generating user help information for customized user interfaces
CN109657103A (en) Conversion method, device, computer equipment and the storage medium of data structure
CN103383645A (en) Code generation method and system
US10637913B2 (en) Mechanism for webpage composition
CN110297636A (en) A kind of automatic production of HTML page and parameter management method based on page configuration file, system and device
US20030140332A1 (en) Method and apparatus for generating a software development tool
US10133766B2 (en) Accessing and editing virtually-indexed message flows using structured query langauge (SQL)
CN108572813A (en) Assembly type program development frame creates application system and method
US20170185460A1 (en) Generic callback handling
CN108664242B (en) Method and device for generating visual interface, electronic equipment and readable storage medium
CN110851123A (en) WebGIS power grid visualization framework construction method, system and device based on SpringMVC
CN105074652A (en) Remotely executing operations of an application using a schema that provides for executable scripts in a nodal hierarchy
CN111538500A (en) Method and system for visually modifying menu
US10460015B1 (en) Assimilation in multi model webpage composition
CN103530163A (en) Method for loading browser tool items and browser
CN112988139A (en) Method and device for developing event processing file

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20120523