CN105786846A - Website platform component capable of generating modules in user-defined manner - Google Patents

Website platform component capable of generating modules in user-defined manner Download PDF

Info

Publication number
CN105786846A
CN105786846A CN201410811660.8A CN201410811660A CN105786846A CN 105786846 A CN105786846 A CN 105786846A CN 201410811660 A CN201410811660 A CN 201410811660A CN 105786846 A CN105786846 A CN 105786846A
Authority
CN
China
Prior art keywords
control
web page
user
configuration information
control configuration
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
CN201410811660.8A
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.)
Changshu Shunwang Network Technology Service Co Ltd
Original Assignee
Changshu Shunwang Network Technology Service 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 Changshu Shunwang Network Technology Service Co Ltd filed Critical Changshu Shunwang Network Technology Service Co Ltd
Priority to CN201410811660.8A priority Critical patent/CN105786846A/en
Publication of CN105786846A publication Critical patent/CN105786846A/en
Pending legal-status Critical Current

Links

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a website platform component capable of generating modules in a user-defined manner. The method for generating modules in a user-defined manner by the component comprises the following steps of acquiring a web page visit request and a user identifier of the user; according to the user identifier acquiring control configuration information corresponding to the user identifier; and according to the control configuration information loading controls of the web page. In addition, a web page display system is correspondingly provided. According to the website platform component capable of generating modules in the user-defined manner, the web page is higher in display suitability and stronger in expansibility.

Description

A kind of website platform assembly that can customize generation module
Technical field
The present invention relates to Internet technical field, particularly to a kind of website platform assembly that can customize generation module.
Background technology
Web application system is often referred to the internet system based on browser/server, generally adopts webpage to show interface in web application system.By adopting page description language to add picture and audio frequency in webpage, rich text interface can be shown to user.Web application system is when displayed page, and also usual is control by some general Service interface definitions being used for providing service.Such as document uploading control, picture editor's control etc..The durability making web page display after employing control is greatly improved.
User in Web application system is typically divided into polytype, and such as manager, general user, VIP user etc., web application system provides corresponding service according to the type of user.In traditional web page presentation method, the type previously according to user has been arranged in correspondence with corresponding webpage.When getting the type of user according to Client-initiated access request, give this user by the web page display corresponding with this user type.
Traditional web page presentation method need for each type with pre-setting webpage per family, when needing the webpage of multiple user is made unified amendment, it is necessary to each webpage is modified.And when needing to arrange multiple webpage with new service interface according to business demand, some reusable service interfaces need to repeat the definition of code level in webpage, so that the methods of exhibiting suitability of conventional art is not strong, autgmentability is not enough.
Summary of the invention
The present invention is a kind of website platform assembly that can customize generation module, said method comprising the steps of:
Obtain web page access request and the ID of user;
The control configuration information corresponding with described ID is obtained according to described ID;
The control of described web page is loaded according to described control configuration information.
Preferably, before the step of the described web page access request obtaining user, also include:
Obtain ID and control configuration-direct;
In default widget library, control is chosen according to described control configuration-direct;
The control configuration information corresponding with described ID is generated according to the described control chosen.
Preferably, the control in described default widget library includes original control and extension control;
Before the step of described acquisition control configuration-direct, also include:
Obtain control edit instruction;
According to described control edit instruction, described original control is spliced into extension control;
Described extension control is added in described widget library.
Preferably, after the step of the described web page access request obtaining user, also include:
The browser type of user is obtained according to described web page access request;
The step of the described control loading described web page according to described control configuration information is particularly as follows: obtain the control corresponding with described web page according to described control configuration information and described browser type and be loaded in described web page.
Preferably, after the step of the described web page access request obtaining user and ID, also include:
Searching the control corresponding with described ID and webpage in the buffer, if finding, then showing described web page
And on described web page, load described control, otherwise, enter described acquisition according to described ID and mark with described user
Know the step of the corresponding control configuration information preset.
Detailed description of the invention
Advantages and features of the invention below the preferably implementation example of the present invention are described in detail, so that can be easier to be it is understood by those skilled in the art that thus protection scope of the present invention is made apparent clear and definite defining.
In one embodiment, the web page access request of web application definition is URL (UniformResourceLocator, URL) request.User can by inputting the next web page corresponding to web application request of URL at the address field of browser.
In web page access request can additional parameter, this parameter can be for distinguishing the ID of different user or different user types, for instance identification number, user account number or name etc..
In one embodiment, web application can be also that each access user sets up session (session cache), and in session the ID of this user of buffer memory.After getting web page access request, first obtain, according to web page access request, the session that this request is corresponding, from session, then extract ID again.
The control configuration information preset corresponding with ID is obtained according to ID.
Control configuration information can pre-set, and can first obtain ID and control configuration-direct, choose control according to control configuration-direct in default widget library, generates the control configuration information corresponding with ID according to the control chosen.
In one embodiment, can according to the control configuration-direct of user's input, and in default widget library, the control mark of the control that user chooses is obtained according to control configuration-direct, then generate the control configuration information corresponding with ID according to the control mark choosing control.
Further, first can show visual configuration interface to user, the control chosen at visual configuration interface by visual configuration interface acquisition user and the putting position of control, and obtain the ID (manager can to configure control configuration information for domestic consumer by the ID of input domestic consumer) of user's input.Concrete, the control configuration information corresponding with the ID of input can be generated with putting position according to the control that user chooses, this control configuration information includes the putting position coordinate position etc. of interface (the such as control be arranged in) of control mark and control.Visual configuration interface is provided conveniently the web page showing different user to be customized for administrator.
In one embodiment, before obtaining control configuration-direct, it is also possible to obtain control edit instruction, and according to control edit instruction, original control is spliced into extension control, then extension control is joined in widget library.
Multiple original control can be pre-set, such as document uploading control, list control, tree control.Right rear line shows visual editing interface, and shows original control on visual edit interface.Then pass through acquisition user and multiple original controls are spliced into extension control by the drag operation of the original control on visual edit interface, after having edited, then distribute unique control mark for it, then extension control is stored in widget library.
Further, after obtaining control edit instruction, it is also possible to according to control edit instruction, original control and extension control are edited.The content of editor can include the prefabricated extended method (field that such as, control event is corresponding in data base) of the pattern of control, control event, control judgement, interfacial structure (such as, acquiescence putting position), data structure.
Such as, predeterminable material database and style library, and appearance color and the shape size of material that user chooses and pattern amendment control is obtained by visual control editing interface, or the control event added according to user is that control adds event handling logic.The control editted can be stored as newly-generated extension control.
The pattern of control, control event etc. information modified editor according to control edit instruction, it is possible to facilitate user to customize the control of needs as required.By visualization interface displaying control editing interface, it is possible to facilitate user to check, delete and test edited result.
Further, obtain after web page access request, it is also possible to obtain the browser type of user according to web page access request.The control corresponding with web page can be obtained according to control configuration information and browser type and be loaded in web page.Control correspondence browser type is carried out the storage of multi version, can avoid adding in control the logic that browser type judges, make when adaptive browser type, the control of appropriate version can be chosen in advance for browser type, avoid the exception judging browser type by divided code in control and cause, thus improve autgmentability and stability.
The original control of browser-cross is the original control containing browser-cross logic.Script standard in different browsers is different with web page standard, and the logic (by identifying that the type of browser calls the logic of the function of adaptive multiple browser) in the original control of browser-cross have employed different implementations for different browsers and reaches identical effect.According to the logic of browser-cross, default original control is spliced into extension control, it is possible to make the extension control being spliced also comprise the logic of browser-cross.
Such as, IE (InternetExplorer, a kind of browser) and Firefox (a kind of browser) have employed different javascript (a kind of script) resolvers, has nuance in the execution of some function.The original control of browser-cross, when arranging, is all defined with the function that IE and Firefox is general.When identical original control loads respectively on IE and Firefox, just identical effect can be shown.
The web page corresponding with web page access request can for pre-setting, it is also possible to dynamically generates according to required parameter.After finding corresponding web page according to web page access request, this web page is shown, then identify according to the control in control configuration information and obtain the control corresponding with this web page (in control configuration information, control for different web page configurations is different), then control is loaded on this web page.Further, the loading sequence that can pass through from left to right and from top to bottom loads control.
After showing web page to user and loading control on web page, it is possible to the web page buffer memory of control will be loaded with, both can be buffered in browser and can also be buffered in session.Use buffer memory can avoid carrying out the work of lookup control configuration information repeatedly for identical web page access request, thus improve displaying efficiency.
The above-mentioned website platform assembly that can customize generation module, in advance for user web page access request arrange correspondence control configuration information.When showing, obtain the control configuration information corresponding with this user according to the type of user, then control and web page are combined, the interface corresponding with this user can be shown to this user.And different types of control configuration information only need to be preset for different types of user, without revising all of web page.So that the displaying suitability of web page is higher, autgmentability is higher.
Embodiment described above only have expressed the several embodiments of the present invention, and it describes comparatively concrete and detailed, but therefore can not be interpreted as the restriction to the scope of the claims of the present invention.It should be pointed out that, for the person of ordinary skill of the art, without departing from the inventive concept of the premise, it is also possible to making some deformation and improvement, these broadly fall into protection scope of the present invention.Therefore, the protection domain of patent of the present invention should be as the criterion with claims.

Claims (5)

1. can customize a website platform assembly for generation module, said method comprising the steps of:
Obtain web page access request and the ID of user;
The control configuration information corresponding with described ID is obtained according to described ID;
The control of described web page is loaded according to described control configuration information.
2. the website platform assembly that can customize generation module according to claim 1, it is characterised in that before the step of the described web page access request obtaining user, also includes:
Obtain ID and control configuration-direct;
In default widget library, control is chosen according to described control configuration-direct;
The control configuration information corresponding with described ID is generated according to the described control chosen.
3. the website platform assembly that can customize generation module according to claim 2, it is characterised in that the control in described default widget library includes original control and extension control;
Before the step of described acquisition control configuration-direct, also include:
Obtain control edit instruction;
According to described control edit instruction, described original control is spliced into extension control;
Described extension control is added in described widget library.
4. the website platform assembly that can customize generation module according to claim 3, it is characterised in that after the step of the web page access request of described acquisition user, also include:
The browser type of user is obtained according to described web page access request;
Described according to described control configuration information load described web page control step particularly as follows:
Obtain the control corresponding with described web page according to described control configuration information and described browser type and be loaded in described web page.
5. the website platform assembly that can customize generation module according to claim 1, it is characterised in that after the step of the described web page access request obtaining user and ID, also includes:
Search the control corresponding with described ID and webpage in the buffer, if finding, then show described web page and
Described web page loads described control, otherwise, enters described according to the acquisition of described ID and described ID pair
The step of the control configuration information preset answered.
CN201410811660.8A 2014-12-24 2014-12-24 Website platform component capable of generating modules in user-defined manner Pending CN105786846A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410811660.8A CN105786846A (en) 2014-12-24 2014-12-24 Website platform component capable of generating modules in user-defined manner

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410811660.8A CN105786846A (en) 2014-12-24 2014-12-24 Website platform component capable of generating modules in user-defined manner

Publications (1)

Publication Number Publication Date
CN105786846A true CN105786846A (en) 2016-07-20

Family

ID=56378065

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410811660.8A Pending CN105786846A (en) 2014-12-24 2014-12-24 Website platform component capable of generating modules in user-defined manner

Country Status (1)

Country Link
CN (1) CN105786846A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106600383A (en) * 2016-12-29 2017-04-26 江西博瑞彤芸科技有限公司 Page configuration method
CN108089847A (en) * 2017-12-14 2018-05-29 易知成都数据服务有限公司 A kind of Components Development method based on ElementUI and UEditor rich texts
CN109213486A (en) * 2018-08-20 2019-01-15 北京百度网讯科技有限公司 Method and apparatus for generating customized visualization component
CN109766096A (en) * 2018-12-15 2019-05-17 深圳壹账通智能科技有限公司 Front end assemblies Element generation system, method, computer equipment and storage medium
CN112347144A (en) * 2021-01-04 2021-02-09 树根互联技术有限公司 Service index query method and device and server
CN113342858A (en) * 2021-06-28 2021-09-03 数贸科技(北京)有限公司 Page component curing method and device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101697123A (en) * 2009-10-20 2010-04-21 金蝶软件(中国)有限公司 Method and device for modifying interface layout in ERP system and ERP system
CN101859245A (en) * 2009-04-09 2010-10-13 北大方正集团有限公司 Method and device for generating user interface
CN103186370A (en) * 2011-12-29 2013-07-03 金蝶软件(中国)有限公司 Web page presentation method and system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101859245A (en) * 2009-04-09 2010-10-13 北大方正集团有限公司 Method and device for generating user interface
CN101697123A (en) * 2009-10-20 2010-04-21 金蝶软件(中国)有限公司 Method and device for modifying interface layout in ERP system and ERP system
CN103186370A (en) * 2011-12-29 2013-07-03 金蝶软件(中国)有限公司 Web page presentation method and system

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106600383A (en) * 2016-12-29 2017-04-26 江西博瑞彤芸科技有限公司 Page configuration method
CN108089847A (en) * 2017-12-14 2018-05-29 易知成都数据服务有限公司 A kind of Components Development method based on ElementUI and UEditor rich texts
CN109213486A (en) * 2018-08-20 2019-01-15 北京百度网讯科技有限公司 Method and apparatus for generating customized visualization component
CN109766096A (en) * 2018-12-15 2019-05-17 深圳壹账通智能科技有限公司 Front end assemblies Element generation system, method, computer equipment and storage medium
CN112347144A (en) * 2021-01-04 2021-02-09 树根互联技术有限公司 Service index query method and device and server
CN112347144B (en) * 2021-01-04 2021-05-07 树根互联技术有限公司 Service index query method and device and server
CN113342858A (en) * 2021-06-28 2021-09-03 数贸科技(北京)有限公司 Page component curing method and device

Similar Documents

Publication Publication Date Title
US11294968B2 (en) Combining website characteristics in an automatically generated website
US10776447B2 (en) Digital communications platform for webpage overlay
CN105786846A (en) Website platform component capable of generating modules in user-defined manner
KR20200043467A (en) Method and terminal device for extracting web page content
CN111104635B (en) Method and device for generating form webpage
US8271868B2 (en) Inserting web content into a destination website
US8793598B2 (en) Cross-browser web dialog platform
CN104572035A (en) Dynamic generation method and dynamic generation system of webpage codes
CN106354519A (en) Method and device for generating label for user portrait
CN111259644A (en) Rich text processing method, editor, equipment and storage medium
CN110515606B (en) Block-based component development method
US20180039998A1 (en) Automated Integration of Partner Products
US10326858B2 (en) System and method for dynamically generating personalized websites
US10671801B2 (en) Markup code generator
CN105912328A (en) Method and device for displaying web system page, and web system
CN102193789B (en) Method and equipment for realizing configurable skip link
CN103109289A (en) Web-based script language editing method, system and web client
US10089284B2 (en) Transforming a website for dynamic web content management
US20160299880A1 (en) Method and device for updating web page
US10788959B2 (en) Personalization of a web application
CN103631886B (en) In the method and apparatus that browser side is inputted
CN116048517A (en) API (application program interface) generating method, system and device based on B/S (browser/Server) architecture application system
CN104133608A (en) Method and device for opening new tab
CN103186370B (en) Web page presentation method and system
CN105117498A (en) Webpage data processing method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20160720

WD01 Invention patent application deemed withdrawn after publication