CN103581246B - A kind of display methods and server of browser homepage - Google Patents
A kind of display methods and server of browser homepage Download PDFInfo
- Publication number
- CN103581246B CN103581246B CN201210268335.2A CN201210268335A CN103581246B CN 103581246 B CN103581246 B CN 103581246B CN 201210268335 A CN201210268335 A CN 201210268335A CN 103581246 B CN103581246 B CN 103581246B
- Authority
- CN
- China
- Prior art keywords
- information
- homepage
- user agent
- modules
- web page
- 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.)
- Active
Links
Landscapes
- Information Transfer Between Computers (AREA)
Abstract
The invention discloses a kind of display methods and server of browser homepage, belong to field of mobile terminals.Methods described includes:The request for showing homepage is obtained, the request includes UA information, and the UA information is used to identify the terminal for sending the request;According to the UA information, the homepage is created;The homepage is sent into the browser to be shown.The server includes:Acquisition module, the first creation module and transmission display module.By technical scheme, server being capable of comprehensively identification terminal;According to the homepage of the UA information dynamic creation browsers of terminal so that product operation personnel's flexibly configurable homepage content, be easy to safeguard and update;Configurable identical content of pages shares in the terminal of different UA information, improves allocative efficiency;Server can avoid user from pulling blank start page, more preferable viewing experience is brought to user according to the homepage of the UA information dynamic creation browsers of terminal.
Description
Technical field
The present invention relates to field of mobile terminals, the more particularly to a kind of display methods and server of browser homepage.
Background technology
With the development of mobile terminal and development of Mobile Internet technology, user can connect mobile Internet by mobile terminal,
To enjoy the enjoyment surfed the web.Usually, the browser being equipped with mobile terminals, which provides the user, browses mobile Internet
The function of content.
Wherein, as first page that user is shown to after browser execution, homepage is the important composition portion of browser
Point.Therefore, in browser homepage for user make a distinction operation it is necessary, Consumer's Experience can be improved, moreover it is possible to meet
Operation needs.In order to distinguish operation, existing browser homepage display mode is that browser shows according to different terminals operating platform
Show corresponding homepage.Specifically, product operation personnel is every kind of announced one homepage of terminal operation platform configuration in advance;So
Afterwards, when user runs browser, give tacit consent to server and send terminal operation platform information;Secondly, server lookup terminal behaviour
Make homepage corresponding to platform information, and corresponding homepage is sent to browser and shown.
During the present invention is realized, inventor has found that prior art at least has problems with:
On the one hand, the homepage being pre-configured with is static page, and product operation personnel need to be to different terminals operating platform configuration
Different homepage versions, when version is more, safeguard relatively difficult;And reusable content between the homepage of two kinds of different editions
It is multiple to be also required to configuration, the efficiency comparison of configuration is low;On the other hand, if product operation personnel does not configure some operating platform and corresponded to
Homepage, browser will show blank homepage, have impact on Consumer's Experience.
The content of the invention
In order to make lean operation for homepage, be easy to product operation personnel to safeguard homepage and improve user's viewing experience,
The embodiments of the invention provide a kind of display methods and server of browser homepage.The technical scheme is as follows:
A kind of display methods of browser homepage, methods described include:
The request for showing homepage is obtained, the request includes user agent's information, and user agent's information is used to identify
Send the terminal of the request;
According to user agent's information, the homepage is created;
The homepage is sent into the browser to be shown.
Wherein, methods described also includes:
Create the comprising modules of the homepage;
Generate different user agent's information;
It is that the comprising modules of the homepage create corresponding web page contents list according to different user agent's information
Member, make different user agent's information corresponding with the different web pages content element of the comprising modules of the homepage respectively.
Wherein, it is described according to user agent's information, the homepage is created, including:
Obtain the comprising modules of the homepage;
Obtain the web page contents unit of the comprising modules of the homepage corresponding to user agent's information;
According to the web page contents unit of the comprising modules of the homepage, the homepage is assembled.
Wherein, the web page contents unit for obtaining the homepage comprising modules corresponding to user agent's information, bag
Include:
Obtain the different web pages content list of the comprising modules for the different user agent's information and homepage being pre-created
The corresponding relation of member;
Judge the acquisition user agent's information whether be in the corresponding relation user agent's information one of them;
If so, then obtain the web page contents list of the comprising modules of the homepage corresponding to user agent's information of the acquisition
Member;
If it is not, then for the acquisition user agent's information matches comprising modules of the homepage accordingly web page contents
Unit.
Wherein, user agent's information matches for the acquisition are accordingly in the webpage of the comprising modules of the homepage
Hold unit, including:
Parse user agent's condition of user agent's information of the acquisition;
According to user agent's condition, new user agent's information is generated;
New user agent's information is matched in the corresponding relation;
Obtain the web page contents unit of the comprising modules of the homepage corresponding to the user agent's information matched.
Wherein, it is described according to user agent's condition, new user agent's information is generated, including:
According to the priority of preset user agent's condition, selected part user agent's bar from user agent's condition
Part;
The certain customers selected are acted on behalf of into conditional combination into new user agent's information.
A kind of server, the server include:
Acquisition module, the request of homepage is shown for obtaining, and the request includes user agent's information, the user agent
Information is used to identify the terminal for sending the request;
First creation module, for according to user agent's information, creating the homepage;
Display module is sent, is shown for the homepage to be sent into the browser.
Wherein, the server also includes the second creation module, and second creation module is used for,
Create the comprising modules of the homepage;
Generate different user agent's information;
It is that the comprising modules of the homepage create corresponding web page contents list according to different user agent's information
Member, make different user agent's information corresponding with the different web pages content element of the comprising modules of the homepage respectively.
Wherein, first creation module includes:
First acquisition submodule, for obtaining the comprising modules of the homepage;
Second acquisition submodule, for obtaining the webpage of the comprising modules of the homepage corresponding to user agent's information
Content element;
Submodule is assembled, for the web page contents unit of the comprising modules according to the homepage, assembles the homepage.
Wherein, second acquisition submodule includes:
First acquisition unit, for obtaining the comprising modules of the different user agent's information being pre-created and the homepage
Different web pages content element corresponding relation;
Judging unit, for judging whether user agent's information of the acquisition is that user agent believes in the corresponding relation
Cease one of them;
Second acquisition unit, if user agent's information for the acquisition is user agent's information in the corresponding relation
One of them, then obtain the web page contents unit of the comprising modules of the homepage corresponding to user agent's information of the acquisition;
Matching unit, if not being user agent's information wherein one in the corresponding relation for user agent's information
It is individual, then for the acquisition user agent's information matches comprising modules of the homepage accordingly web page contents unit.
Wherein, the matching unit includes:
Parse subelement, user agent's condition of user agent's information for parsing the acquisition;
Subelement is generated, for according to user agent's condition, generating new user agent's information;
Coupling subelement, for new user agent's information to be matched in the corresponding relation;
Subelement is obtained, for obtaining the comprising modules of the homepage corresponding to the user agent's information matched
Web page contents unit.
Wherein, the generation subelement is used for,
According to the priority of preset user agent's condition, selected part user agent's bar from user agent's condition
Part;
The certain customers selected are acted on behalf of into conditional combination into new user agent's information.
The beneficial effect that technical scheme provided in an embodiment of the present invention is brought is:The request of homepage, institute are shown by obtaining
Stating request includes user agent's information, and user agent's information is used to identify the terminal for sending the request;Due to user's generation
Manage the information that information sends the terminal of the request for description so that server being capable of comprehensively identification terminal;According to the use
Family proxy information, create the homepage;And the homepage is sent to the browser and shown;Server is according to terminal
The homepage of user agent's information dynamic creation browser so that product operation personnel's flexibly configurable homepage content, be easy to tie up
Shield and renewal;Meanwhile configurable identical content of pages shares in the terminal of different user proxy information, configuration effect is improved
Rate;Also, server can avoid user from pulling blank according to the homepage of user agent's information dynamic creation browser of terminal
Start page, more preferable viewing experience is brought to user.
Brief description of the drawings
Technical scheme in order to illustrate the embodiments of the present invention more clearly, make required in being described below to embodiment
Accompanying drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the present invention, for
For those of ordinary skill in the art, on the premise of not paying creative work, other can also be obtained according to these accompanying drawings
Accompanying drawing.
Fig. 1 is a kind of flow chart of the display methods of the browser homepage provided in the embodiment of the present invention 1;
Fig. 2 is a kind of flow chart of the display methods of the browser homepage provided in the embodiment of the present invention 2;
Fig. 3 is the schematic diagram of the comprising modules of the browser homepage provided in the embodiment of the present invention 2;
Fig. 4 is a kind of structural representation of the server provided in the embodiment of the present invention 3;
Fig. 5 is a kind of structural representation of the server provided in the embodiment of the present invention 4.
Embodiment
To make the object, technical solutions and advantages of the present invention clearer, below in conjunction with accompanying drawing to embodiment party of the present invention
Formula is described in further detail.
For ease of describing technical scheme provided in an embodiment of the present invention, first below to UA(User Agent, Yong Hudai
Reason)Information is introduced.
UA information is HTTP(Hypertext Transport Protocol, HTTP)In a key
Word, allow to add the data of this field in HTTP heads to describe to send some information of the terminal of HTTP request, be easy to take
The terminal is identified business device.Specifically, by taking the HTTP request that browser on mobile terminal is sent as an example, in the HTTP request
Entrained UA information is to record the UA conditions such as terminal operation platform, browser version, channel and operator of mobile terminal
Regular character string.The form of the character string is the combination of some " parameter entries/parameter entries attribute ", and separated with " space ".
For example, the UA information that browser is sent to server is Nokia7650/1.0SymbianOS/7.0s Series60/
2.0Release/5.18.2003Browser/OpenWave7.0Profile.The information that the character string includes has, mobile terminal
Model version is Nokia7650, operating platform version is 1.0SymbianOS, software platform version is 7.0s Series60, soft
Part issuing time is 2.0, browser version 5.18.2003 and Profile version is OpenWave7.0.Obviously, the word
" other entries/other entry attributes " can also be increased in symbol string, so that the information of terminal is described more.This is prior art,
This is no longer described in detail.
Embodiment 1
Referring to Fig. 1, the embodiment of the present invention 1 provides a kind of display methods of browser homepage, and this method includes:
101:The request for showing homepage is obtained, the request includes UA information.
Wherein, the UA information is used to identify the terminal for sending the request.
102:According to the UA information, homepage is created.
103:The homepage is sent into browser to be shown.
The beneficial effect that technical scheme provided in an embodiment of the present invention is brought is:The request of homepage, institute are shown by obtaining
Stating request includes UA information, and the UA information is used to identify the terminal for sending the request;By UA information is description transmission institute
State the information of the terminal of request so that server being capable of comprehensively identification terminal;According to the UA information, the homepage is created;
And the homepage is sent to the browser and shown;Server is according to the UA information dynamic creation browsers of terminal
Homepage so that product operation personnel's flexibly configurable homepage content, be easy to safeguard and update;Meanwhile the configurable identical page
Content shares in the terminal of different UA information, improves allocative efficiency;Also, server is created according to the UA information dynamic of terminal
The homepage of browser is built, user can be avoided to pull blank start page, more preferable viewing experience is brought to user.
Embodiment 2
Referring to Fig. 2, the embodiment of the present invention 2 provides a kind of display methods of browser homepage, and this method includes:
201:Establish the corresponding relation of the different web pages content element of the comprising modules of different UA information and homepage.
Further, the step includes:
2011:Create the comprising modules of homepage.
Wherein, server creates the comprising modules of homepage.The comprising modules are drawn by the page layout of homepage according to region
The construction module divided, the Segment for homepage.For example, with reference to Fig. 3, it is assumed that the browser homepage includes an area, 2nd area, three
Area and 4th area totally four comprising modules.Further, the characteristics of comprising modules of homepage embody browser, and meet man-machine
Engineering and corresponding programming linguistic norm.The comprising modules storage of the homepage of establishment is in the server.
2012:Generate different UA information.
Specifically, server obtains announced UA conditions, and the UA conditions are combined, and is believed with generating different UA
Breath.
Wherein, server is inquired about by correlation means and obtains all announced UA conditions;And according to UA character strings
Rule and practical situations, by the UA conditional combinations of acquisition into different UA information.Specifically, combination can be, according to
The quantity of included specific UA conditions incrementally combines in UA information.
For example, with reference to table 1, ID(Identity, mark)Include 1 UA condition for UA 1 UA information, the UA conditions are
The full version operating platforms of Android, other UA conditions are full condition(It is or default);The UA information that ID is UA_2 includes 2 UA bars
The full version operating platform of part, respectively Android and mobile operator, other UA conditions are full condition(It is or default);ID is UA_
3 UA information includes 2 UA conditions, the full version operating platforms of respectively Android and telecom operators, and other UA conditions are complete
Condition(It is or default);The UA information that ID is UA_3 includes 3 UA conditions, the full version operating platforms of respectively Android, mobile fortune
It is full condition to seek business and QQ browsers, other UA conditions(It is or default);By that analogy, the UA information that ID is UA_X includes N number of UA
Condition.Further, the different UA information of generation store in the server.
Table 1
UA Information IDs | UA condition quantity | UA conditional contents |
UA_1 | 1 | The full version operating platforms of Android+full condition |
UA_2 | 2 | The full version operating platform+mobile operator of Android+full condition |
UA_3 | 2 | The full version operating platform+telecom operators+full conditions of Android |
UA_4 | 3 | The full version operating platform+mobile operator+QQ browsers of Android+full condition |
... | ... | ... |
UA_X | N | ... |
2013:According to different UA information, it is that the comprising modules of homepage create corresponding web page contents unit, makes different
UA information is corresponding with the different web pages content element of the comprising modules of homepage.
Wherein, each comprising modules of homepage include some web page contents units.Web page contents unit is to be filled out in comprising modules
The specific web page contents filled, including many web page elements, such as word, picture, audio, animation and video etc..In a word, in webpage
Hold the thematic function that unit can realize affiliated comprising modules.For example, it is assumed that the areas of Fig. 3 Zhong tri- are the navigation for Web side navigation
Module, the navigation module include 4 web page contents units, the link identification of respectively QQ game, the link identification of Sina weibo,
The link identification of 163 mailboxes and the link identification of Taobao.This is prior art, be will not be described in detail herein.
Wherein, it is that the comprising modules of homepage create corresponding web page contents unit, essence according to the different UA information of generation
On be the specific UA conditions included according to each UA information for being combined into, corresponding web page contents list is matched for each comprising modules
Member.Because the specific UA conditions that each UA information includes are different, therefore, the corresponding web page contents list of each UA information matches need to be directed to
Member.Further, the corresponding relation of the different web pages content element of the comprising modules of different UA information and homepage is stored in clothes
It is engaged on device.
For example, with reference to table 2, for the areas of Fig. 3 Zhong mono-, web page contents list that UA information and ID that ID is UA_1 are con_1
Member is corresponding, and the web page contents unit that the UA information that ID is UA_2 is also con_1 with ID is corresponding;For 2nd area, ID is UA_1 UA
Information is corresponding with the web page contents unit that ID is con_2, the web page contents unit pair that the UA information that ID is UA_2 is con_3 with ID
Should;For 3rd area, the UA information that ID is UA_1 is con_4, con_5, con_6 and con_7 web page contents unit with ID respectively
Corresponding, the UA information that ID is UA_2 is that con_4, con_5 and con_6 web page contents unit are corresponding with ID respectively;For 4th area,
The UA information that ID is UA_1 is respectively con_8 with ID and con_9 web page contents unit is corresponding, and the UA information that ID is UA_2 is distinguished
It is corresponding with the web page contents unit that ID is con_9, con_10 and con_11.
Table 2
202:The request for showing homepage is obtained, the request includes UA information.
Wherein, the UA information is used to identify the terminal for sending the request.
Wherein, user intends to browse the content of mobile Internet by the browser installed on mobile terminal.The user adopts
With existing Starting mode, such as the icon with hand touch screen click browser, browser is started.
Wherein, after browser is activated, the request for showing homepage is sent to server, the request includes UA information.Specifically
Ground, the request are HTTP request, and UA information is a part for the HTTP request.
Wherein, after server receives the request of the display homepage, will be parsed according to related http protocol in the request
Specific UA information.
203:According to the UA information, homepage is created.
Further, this step includes:
2031:Obtain the comprising modules of homepage.
Wherein, the page of homepage includes some comprising modules.Specifically, the establishment process of the comprising modules of homepage is referring to preceding
Step 2011 is stated, will not be described in detail herein.The comprising modules for the homepage being pre-created are obtained, for example, it is assumed that the comprising modules of homepage
Shown in Fig. 3, then to obtain an area, 2nd area, 3rd area and 4th area totally four comprising modules.
Further, the homepage page is made up of independent a set of comprising modules.This set comprising modules can have sent
Shared on the different mobile terminal of different UA information so that browser operation personnel's flexibly configurable homepage content, improve
Efficiency of operation;Also, a set of comprising modules are easily updated and safeguard, save manpower.
2032:Obtain the web page contents unit of the comprising modules of homepage corresponding to the UA information.
Further, this step includes:
2032a:Obtain the different web pages content element of the comprising modules of the different UA information being pre-created and homepage
Corresponding relation.
Specifically, the establishment process of the corresponding relation is referring to abovementioned steps 201.After the comprising modules for obtaining homepage, from clothes
It is engaged in the corresponding relation of device storage, obtains the web page contents unit of the comprising modules of homepage corresponding to the UA information.
2032b:Judge the acquisition UA information whether be in corresponding relation UA information one of them.
If so, then perform 2032c;If it is not, then perform 2032d.
Wherein, UA information is in corresponding relation, previously according to the different UA information of announced UA conditions generation.It is different
UA information generating process referring to step 2012, will not be described in detail herein.After server parses the UA information, in storage not
In same UA information and the corresponding relation of the different web pages content element of the comprising modules of homepage, inquiry is believed with the presence or absence of the UA
Breath.If inquiring identical UA information, 2032c is performed;If not inquiring identical UA information, 2032d is performed.
2032c:Obtain the web page contents unit of the comprising modules of homepage corresponding to the UA information of the acquisition.
Wherein, according to the description of step 201, the different web pages content element of the comprising modules of different UA information and homepage
Into corresponding relation.Therefore, if the UA information of the acquisition be in corresponding relation UA information one of them, the UA information and homepage
The web page contents unit of comprising modules is corresponding.Obtain the web page contents list of the comprising modules of homepage corresponding to the UA information of the acquisition
Member.For example, it is assumed that the UA information of the acquisition is that UA_1 is identical with UA Information IDs in corresponding relation, referring to table 2, in Fig. 3
One area, obtain the web page contents unit that ID corresponding with the UA information is con_1;For 2nd area, obtain corresponding with the UA information
ID be con_2 web page contents unit;For 3rd area, it is con_4, con_5, con_6 to obtain ID corresponding with the UA information
With con_7 web page contents unit;For 4th area, the web page contents that ID corresponding with the UA information is con_8 and con_9 are obtained
Unit.
2032d:For the web page contents unit of the comprising modules of the corresponding homepage of UA information matches of the acquisition.
Further, this step comprises the following steps A~D:
Step A:Parse the UA conditions of the UA information of the acquisition.
Wherein, UA Informational Expressions are character string.If identical UA is not inquired in all UA information in corresponding relation
Information, server is then according to HTML(Hypertext Markup Language, HTML)Specification is marked to obtain
UA character strings parsed, obtain each UA conditions included in the UA character strings.
Step B:According to the UA conditions, new UA information is generated.
Specifically, first, server is chosen according to the priority of the UA conditions pre-set in the UA conditions analytically gone out
Part UA conditions.For example, it is assumed that pre-setting the UA conditions that browser version is limit priority, operating platform is time one-level
Priority;When then choosing, browser version will be chosen first, secondly selection operation platform.Then, the portion that server will select
Divide UA conditional combinations Cheng Xin UA information.Anabolic process will not be described in detail herein referring to abovementioned steps 2012.
In addition, server can also be according to the quantity of UA conditions in a manner of successively decreasing or be incremental, the UA conditions that analytically go out
Middle selected part UA conditions.Further, server can also meet priority and quantity in a manner of successively decreasing or be incremental simultaneously
Choose UA conditions.For example, it is assumed that the quantity of the UA conditions parsed is 8, wherein, browser version is limit priority, other
UA condition priorities it is identical.Server have chosen including browser version etc. totally 7 UA conditions for the first time, have chosen for the second time
Totally 6 UA conditions such as including browser version;The like, the quantity for the UA conditions that server is chosen every time is successively decreased, and every time
Browser version must be selected.
Step C:New UA information is matched in corresponding relation.
Wherein, these new UA information are matched in all UA information of the server in corresponding relation.Specifically, according to new
UA information included by UA conditions quantity from more to being matched less, believed with ensuring to match the most UA of UA condition quantity
Breath.
What deserves to be explained is, on the one hand, if matching the equal new UA letters of UA condition quantity included by two or more
Breath, then should make a distinction according to priority.On the other hand, step B and step C can circulate progress, i.e. complete one it is new
After the generation of UA information, just the new UA information is matched;Then circulation generation and matching process.
Step D:Obtain the web page contents unit of the comprising modules of homepage corresponding to the UA information matched.
Wherein, the new UA information matched is obtained, further obtains the composition mould of homepage corresponding to the new UA information
The web page contents unit of block, referring specifically to abovementioned steps 2032c, will not be described in detail herein.
2033:According to the web page contents unit of the comprising modules of homepage, homepage is assembled.
Wherein, the comprising modules of server homepage according to corresponding to each comprising modules of homepage and the UA information of acquisition
Web page contents unit, the homepage page can be assembled, so as to create generation browser homepage.
204:The homepage is sent into browser to be shown.
Wherein, after completing assembling, server sends homepage to browser., will be according to HTML after browser receives homepage
Mark normalized explaining and show the content of pages of homepage.
The beneficial effect that technical scheme provided in an embodiment of the present invention is brought is:The request of homepage, institute are shown by obtaining
Stating request includes UA information, and the UA information is used to identify the terminal for sending the request;By UA information is description transmission institute
State the information of the terminal of request so that server being capable of comprehensively identification terminal;According to the UA information, the homepage is created;
And the homepage is sent to the browser and shown;Server is according to the UA information dynamic creation browsers of terminal
Homepage so that product operation personnel's flexibly configurable homepage content, be easy to safeguard and update;Meanwhile the configurable identical page
Content shares in the terminal of different UA information, improves allocative efficiency;Also, server is created according to the UA information dynamic of terminal
The homepage of browser is built, user can be avoided to pull blank start page, more preferable viewing experience is brought to user.
Embodiment 3
Referring to Fig. 4, the embodiment of the present invention 3 provides a kind of server, and the server includes:
Acquisition module 301, the request of homepage is shown for obtaining, and the request includes UA information.
Wherein, the UA information is used to identify the terminal for sending the request.
First creation module 302, for according to the UA information, creating homepage.
Display module 303 is sent, is shown for the homepage to be sent into browser.
The beneficial effect that technical scheme provided in an embodiment of the present invention is brought is:The request of homepage, institute are shown by obtaining
Stating request includes UA information, and the UA information is used to identify the terminal for sending the request;By UA information is description transmission institute
State the information of the terminal of request so that server being capable of comprehensively identification terminal;According to the UA information, the homepage is created;
And the homepage is sent to the browser and shown;Server is according to the UA information dynamic creation browsers of terminal
Homepage so that product operation personnel's flexibly configurable homepage content, be easy to safeguard and update;Meanwhile the configurable identical page
Content shares in the terminal of different UA information, improves allocative efficiency;Also, server is created according to the UA information dynamic of terminal
The homepage of browser is built, user can be avoided to pull blank start page, more preferable viewing experience is brought to user.
Embodiment 4
Referring to Fig. 5, the embodiment of the present invention 4 provides a kind of server, and the server includes:
Acquisition module 401, the request of homepage is shown for obtaining, and the request includes UA information.
Wherein, the UA information is used to identify the terminal for sending the request.
First creation module 402, for according to the UA information, creating homepage.
Wherein, the first creation module 402 includes:
First acquisition submodule 4021, for obtaining the comprising modules of homepage.
Second acquisition submodule 4022, for obtaining the web page contents unit of the comprising modules of homepage corresponding to UA information.
Wherein, the second acquisition submodule 4022 includes:
First acquisition unit 4022a, for obtaining the comprising modules of the different UA information being pre-created and homepage not
With the corresponding relation of web page contents unit.
Judging unit 4022b, for judge obtain UA information whether be in corresponding relation UA information one of them.
Second acquisition unit 4022c, if for obtain UA information be corresponding relation in UA information one of them, obtain
The web page contents unit of the comprising modules of homepage corresponding to the UA information of the acquisition.
Matching unit 4022d, if for obtain UA information be corresponding relation in UA information one of them, obtained for this
The web page contents unit of the comprising modules of the corresponding homepage of UA information matches taken.
Wherein, matching unit 4022d includes:
Parse subelement, the UA conditions of the UA information for parsing the acquisition.
Subelement is generated, for according to UA conditions, generating new UA information.
Specifically, generation subelement is used for, and according to the priority of preset UA conditions, is chosen in the UA conditions analytically gone out
Part UA conditions;By the part UA conditional combinations selected into the new UA information.
Coupling subelement, for new UA information to be matched in corresponding relation.
Subelement is obtained, for obtaining the web page contents unit of the comprising modules of homepage corresponding to the UA information matched.
Submodule 4023 is assembled, for the web page contents unit of the comprising modules according to homepage, assembles homepage.
Display module 403 is sent, is shown for the homepage to be sent into browser.
Wherein, the server also includes the second creation module 404, for creating the comprising modules of homepage;Generate different
UA information;According to different UA information, it is that the comprising modules of homepage create corresponding web page contents unit, makes different UA information
It is corresponding with the different web pages content element of the comprising modules of homepage respectively.
The beneficial effect that technical scheme provided in an embodiment of the present invention is brought is:The request of homepage, institute are shown by obtaining
Stating request includes UA information, and the UA information is used to identify the terminal for sending the request;By UA information is description transmission institute
State the information of the terminal of request so that server being capable of comprehensively identification terminal;According to the UA information, the homepage is created;
And the homepage is sent to the browser and shown;Server is according to the UA information dynamic creation browsers of terminal
Homepage so that product operation personnel's flexibly configurable homepage content, be easy to safeguard and update;Meanwhile the configurable identical page
Content shares in the terminal of different UA information, improves allocative efficiency;Also, server is created according to the UA information dynamic of terminal
The homepage of browser is built, user can be avoided to pull blank start page, more preferable viewing experience is brought to user.
It should be noted that:The server that above-described embodiment provides is when showing browser homepage, only with above-mentioned each function
The division progress of module, can be as needed and by above-mentioned function distribution by different function moulds for example, in practical application
Block is completed, i.e., the internal structure of server is divided into different functional modules, described above all or part of to complete
Function.In addition, server and the display methods embodiment of browser homepage that above-described embodiment provides belong to same design, it has
Body implementation process refers to embodiment of the method, repeats no more here.
The embodiments of the present invention are for illustration only, do not represent the quality of embodiment.
One of ordinary skill in the art will appreciate that hardware can be passed through by realizing all or part of step of above-described embodiment
To complete, by program the hardware of correlation can also be instructed to complete, described program can be stored in a kind of computer-readable
In storage medium, storage medium mentioned above can be read-only storage, disk or CD etc..
The foregoing is only presently preferred embodiments of the present invention, be not intended to limit the invention, it is all the present invention spirit and
Within principle, any modification, equivalent substitution and improvements made etc., it should be included in the scope of the protection.
Claims (10)
1. a kind of display methods of browser homepage, it is characterised in that methods described includes:
The request for showing homepage is obtained, the request includes user agent's information, and user agent's information, which is used to identify, to be sent
The terminal of the request;
Obtain the comprising modules of the homepage;
Obtain web page contents unit corresponding with user agent's information in the comprising modules of the homepage;
According to the web page contents unit of the comprising modules of the homepage, the homepage is assembled;
The homepage is sent into browser to be shown.
2. the method as described in claim 1, it is characterised in that before the request for obtaining display homepage, in addition to:
Create the comprising modules of the homepage;
Generate different user agent's information;
According to different user agent's information, it is that the comprising modules of the homepage create corresponding web page contents unit, makes
Different user agent's information is corresponding with the different web pages content element of the comprising modules of the homepage respectively.
3. the method as described in claim 1, it is characterised in that in the comprising modules for obtaining the homepage with the user
Web page contents unit corresponding to proxy information, including:
Obtain the different web pages content element of the comprising modules for the different user agent's information and homepage being pre-created
Corresponding relation;
Judge the acquisition user agent's information whether be in the corresponding relation user agent's information one of them;
If so, then obtain web page contents unit corresponding with user agent's information in the comprising modules of the homepage;
If it is not, it is then the corresponding web page contents list of user agent's information matches of the acquisition in the comprising modules of the homepage
Member.
4. method as claimed in claim 3, it is characterised in that described is the acquisition in the comprising modules of the homepage
The corresponding web page contents unit of user agent's information matches, including:
Parse user agent's condition of user agent's information of the acquisition;
According to user agent's condition, new user agent's information is generated;
New user agent's information is matched in the corresponding relation;
Obtain web page contents unit corresponding to the user agent's information matched in the comprising modules of the homepage.
5. method as claimed in claim 4, it is characterised in that it is described according to user agent's condition, generate new user
Proxy information, including:
According to the priority of preset user agent's condition, selected part user agent's condition from user agent's condition;
The certain customers selected are acted on behalf of into conditional combination into new user agent's information.
6. a kind of display server of browser homepage, it is characterised in that the server includes:
Acquisition module, the request of homepage is shown for obtaining, and the request includes user agent's information, user agent's information
The terminal of the request is sent for identifying;
First creation module, including:
First acquisition submodule, for obtaining the comprising modules of the homepage;
Second acquisition submodule, in the comprising modules for obtaining the homepage in webpage corresponding with user agent's information
Hold unit;
Submodule is assembled, for the web page contents unit of the comprising modules according to the homepage, assembles the homepage;
Display module is sent, is shown for the homepage to be sent into browser.
7. server as claimed in claim 6, it is characterised in that the server also includes the second creation module, and described
Two creation modules are used for,
Create the comprising modules of the homepage;
Generate different user agent's information;
According to different user agent's information, it is that the comprising modules of the homepage create corresponding web page contents unit, makes
Different user agent's information is corresponding with the different web pages content element of the comprising modules of the homepage respectively.
8. server as claimed in claim 6, it is characterised in that second acquisition submodule includes:
First acquisition unit, for obtaining the comprising modules of the different user agent's information being pre-created and the homepage not
With the corresponding relation of web page contents unit;
Judging unit, for judge the acquisition user agent's information whether be in the corresponding relation user agent's information its
In one;
Second acquisition unit, if for the acquisition user agent's information be the corresponding relation in user agent's information wherein
One, then obtain web page contents unit corresponding with user agent's information in the comprising modules of the homepage;
Matching unit, if for user agent's information be the corresponding relation in user agent's information one of them,
It is the corresponding web page contents unit of user agent's information matches of the acquisition in the comprising modules of the homepage.
9. server as claimed in claim 8, it is characterised in that the matching unit includes:
Parse subelement, user agent's condition of user agent's information for parsing the acquisition;
Subelement is generated, for according to user agent's condition, generating new user agent's information;
Coupling subelement, for new user agent's information to be matched in the corresponding relation;
Obtain subelement, webpage corresponding to the user agent's information matched in the comprising modules for obtaining the homepage
Content element.
10. server as claimed in claim 9, it is characterised in that the generation subelement is used for,
According to the priority of preset user agent's condition, selected part user agent's condition from user agent's condition;
The certain customers selected are acted on behalf of into conditional combination into new user agent's information.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210268335.2A CN103581246B (en) | 2012-07-30 | 2012-07-30 | A kind of display methods and server of browser homepage |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210268335.2A CN103581246B (en) | 2012-07-30 | 2012-07-30 | A kind of display methods and server of browser homepage |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103581246A CN103581246A (en) | 2014-02-12 |
CN103581246B true CN103581246B (en) | 2018-01-16 |
Family
ID=50052165
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210268335.2A Active CN103581246B (en) | 2012-07-30 | 2012-07-30 | A kind of display methods and server of browser homepage |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103581246B (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104182247A (en) * | 2014-07-22 | 2014-12-03 | 百度在线网络技术(北京)有限公司 | Method and device for configuring navigation page of browser |
CN105468611A (en) * | 2014-08-29 | 2016-04-06 | 中兴通讯股份有限公司 | Webpage toolbar insertion method and apparatus |
CN105867890A (en) * | 2015-09-11 | 2016-08-17 | 乐视致新电子科技(天津)有限公司 | Page display method and device |
CN107229711B (en) * | 2017-05-27 | 2021-06-08 | 北京小米移动软件有限公司 | Webpage display method and device |
CN109388460A (en) * | 2018-09-26 | 2019-02-26 | 浙江万朋教育科技股份有限公司 | A method of it promoting client application and pulls homepage data efficiency |
Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CA2348706A1 (en) * | 2001-05-25 | 2002-11-25 | Ibm Canada Limited-Ibm Canada Limitee | Converting user interface source code of a legacy application to web pages |
CN101261643A (en) * | 2008-05-04 | 2008-09-10 | 腾讯科技(深圳)有限公司 | Website page information statistical method and apparatus |
CN101778168A (en) * | 2010-02-05 | 2010-07-14 | 中国电信股份有限公司 | Method and system for optimization display of wed pages on browser of mobile terminal |
CN101877716A (en) * | 2010-03-10 | 2010-11-03 | 艾默生网络能源有限公司 | Customization method for configuration template, display method for configuration template and server |
CN101916285A (en) * | 2010-08-20 | 2010-12-15 | 北京新岸线网络技术有限公司 | Method and device for analyzing internet web page contents |
US8107452B1 (en) * | 2008-09-26 | 2012-01-31 | Sprint Communications Company L.P. | Customizing a browsing experience on a mobile communications device |
CN102402513A (en) * | 2010-09-08 | 2012-04-04 | 腾讯科技(深圳)有限公司 | Software home page management method, device and system |
CN102457528A (en) * | 2010-10-19 | 2012-05-16 | 北京邮电大学 | Method for adaptively issuing web content facing to mobile phone terminal and system thereof |
CN102572806A (en) * | 2012-02-14 | 2012-07-11 | 中国民航信息网络股份有限公司 | Mobile terminal adapting system and method based on Msky platform |
US8285813B1 (en) * | 2007-12-05 | 2012-10-09 | Appcelerator, Inc. | System and method for emulating different user agents on a server |
-
2012
- 2012-07-30 CN CN201210268335.2A patent/CN103581246B/en active Active
Patent Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CA2348706A1 (en) * | 2001-05-25 | 2002-11-25 | Ibm Canada Limited-Ibm Canada Limitee | Converting user interface source code of a legacy application to web pages |
US8285813B1 (en) * | 2007-12-05 | 2012-10-09 | Appcelerator, Inc. | System and method for emulating different user agents on a server |
CN101261643A (en) * | 2008-05-04 | 2008-09-10 | 腾讯科技(深圳)有限公司 | Website page information statistical method and apparatus |
US8107452B1 (en) * | 2008-09-26 | 2012-01-31 | Sprint Communications Company L.P. | Customizing a browsing experience on a mobile communications device |
CN101778168A (en) * | 2010-02-05 | 2010-07-14 | 中国电信股份有限公司 | Method and system for optimization display of wed pages on browser of mobile terminal |
CN101877716A (en) * | 2010-03-10 | 2010-11-03 | 艾默生网络能源有限公司 | Customization method for configuration template, display method for configuration template and server |
CN101916285A (en) * | 2010-08-20 | 2010-12-15 | 北京新岸线网络技术有限公司 | Method and device for analyzing internet web page contents |
CN102402513A (en) * | 2010-09-08 | 2012-04-04 | 腾讯科技(深圳)有限公司 | Software home page management method, device and system |
CN102457528A (en) * | 2010-10-19 | 2012-05-16 | 北京邮电大学 | Method for adaptively issuing web content facing to mobile phone terminal and system thereof |
CN102572806A (en) * | 2012-02-14 | 2012-07-11 | 中国民航信息网络股份有限公司 | Mobile terminal adapting system and method based on Msky platform |
Also Published As
Publication number | Publication date |
---|---|
CN103581246A (en) | 2014-02-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11907360B2 (en) | Systems and methods for deploying countermeasures against unauthorized scripts interfering with the rendering of content elements on information resources | |
CN104866512B (en) | Extract the method, apparatus and system of web page contents | |
KR102185864B1 (en) | Server-side rendering method and system of native content for presentation | |
CN103581246B (en) | A kind of display methods and server of browser homepage | |
CN101154231B (en) | Method and system for applying web page semantics | |
JP5814523B2 (en) | Traffic visualization on web maps | |
US20140122619A1 (en) | Chatbot system and method with interactive chat log | |
CN107229633A (en) | Static page generation method, Web access method and device | |
CN102955854A (en) | Webpage presenting method and device based on HTML5 (Hypertext Markup Language 5) protocol | |
CN106339414A (en) | Webpage rendering method and device | |
US9646103B2 (en) | Client-side template engine and method for constructing a nested DOM module for a website | |
CN103297327A (en) | Message pushing method, message pushing device and display terminal | |
US11947377B2 (en) | Systems and methods for dynamically restricting the rendering of unauthorized content included in information resources | |
CN103383691B (en) | A kind of online editing method and apparatus of webpage | |
US10536354B1 (en) | Methods and systems for identifying styles of properties of document object model elements of an information resource | |
CN107479873A (en) | A kind of APP page modules melt forwarding method, electronic equipment and storage medium | |
WO2016005885A2 (en) | Asynchronous initialization of document object model (dom) modules | |
CN104899212B (en) | Web page display method, server and system | |
CN104699789A (en) | Method and system for embedding webpage | |
CN104156421B (en) | The page shows method, apparatus and system | |
CN106326403A (en) | Web page generating method and device | |
CN101950289A (en) | Method and system for webpage semantics | |
CN107451163A (en) | A kind of cartoon display method and device | |
CN112733009B (en) | Searching method and device | |
CN102231150A (en) | Method and system for managing word stock of embedded browser |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |