CN102262628B - Webpage segmentation method and paging server - Google Patents

Webpage segmentation method and paging server Download PDF

Info

Publication number
CN102262628B
CN102262628B CN 201010180383 CN201010180383A CN102262628B CN 102262628 B CN102262628 B CN 102262628B CN 201010180383 CN201010180383 CN 201010180383 CN 201010180383 A CN201010180383 A CN 201010180383A CN 102262628 B CN102262628 B CN 102262628B
Authority
CN
China
Prior art keywords
paging
web page
access links
server
original web
Prior art date
Application number
CN 201010180383
Other languages
Chinese (zh)
Other versions
CN102262628A (en
Inventor
肖家丽
余恒兵
李成亮
祁晓龙
Original Assignee
卓望数码技术(深圳)有限公司
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 卓望数码技术(深圳)有限公司 filed Critical 卓望数码技术(深圳)有限公司
Priority to CN 201010180383 priority Critical patent/CN102262628B/en
Publication of CN102262628A publication Critical patent/CN102262628A/en
Application granted granted Critical
Publication of CN102262628B publication Critical patent/CN102262628B/en

Links

Abstract

The invention relates to a paging technology. Aiming at the defect of inconvenience for use caused by impossible random access to each subpage in the conventional webpage segmentation technology, the invention provides a webpage segmentation method and a paging server. The method comprises the following steps that: the paging server receives a webpage access request including an original webpage address; the paging server acquires a corresponding original webpage according to the original webpage address; the paging server constructs a document object model (DOM) tree based on the original webpage and constructs the first subpage of the original webpage based on the DOM tree; the paging server inserts at least one paging access link in the first subpage, and then returns the first subpage, wherein the at least one paging access link points to the paging server. The invention also provides the paging server. In the invention, the random access of each subpage is realized by inserting the paging access link corresponding to each subpage in subpages. Therefore, users can access the subpage as required conveniently.

Description

A kind of webpage dividing method and paging server

Technical field

The present invention relates to paging technique, more particularly, the present invention relates to a kind of webpage dividing method and paging server.

Background technology

Mobile communication technology has changed the daily life mode greatly, and mobile phone also has been transformed into the element of people's daily lifes already from the luxury goods of costliness.Through years of development, mobile communication technology not only can be set up voice communication without lifting an eyebrow between the user, and can also realize that simple message (for example short message) is transmitted between the user.And up-to-date mobile communication technology can realize that especially the user is to the mobile access of internet.

Yet, being subject to the performance of mobile phone self, existing mobile phone can only be visited the internet sites towards portable terminal of special structure mostly.The webpage that this type of internet sites provides adopts the specific format (for example WML form) towards mobile phone, in order to can easily show on mobile phone.And the internet web page of accepting for users more based on html format, most of mobile phones all can't normally show.This is because the present internet web page based on html format has adopted a large amount of special efficacy technology, shows that the required data-handling capacity of this webpage is well beyond the ability of general mobile phone.Simultaneously, this internet web page can produce a large amount of flows, and this point is for very fatal for the mobile subscriber of charge on traffic.

Visit html web page for ease of the mobile subscriber, page cutting techniques arises at the historic moment.This page cutting techniques can be divided into html web page the sub-pages of a plurality of WML forms, so that mobile subscriber's visit.

Yet existing page cutting techniques only allows each paging of user's sequential access, and can't realize the random visit of each paging, and it is very inconvenient to use.

Therefore, need a kind of page cutting techniques, can realize the random access to each paging after cutting apart, to overcome the above-mentioned defective that exists among the prior art.

Summary of the invention

The technical problem to be solved in the present invention is, can't realize that at existing page cutting techniques the random visit of each paging causes using very inconvenient defective thus, provides a kind of webpage dividing method and paging server.

The technical solution adopted for the present invention to solve the technical problems is:

A kind of webpage dividing method comprises:

Accessing step first comprises:

The paging server receives the web page access request that comprises the original web page address;

The paging server obtains corresponding original web page according to this original web page address;

The paging server makes up the dom tree based on this original web page, and makes up the first paging of this original web page based on this dom tree;

The paging server inserts at least one paging access links in this first paging, return this first paging then, and wherein said at least one paging access links is all pointed to the paging server.

Preferably, in described at least one paging access links, each paging access links be based on described paging server address, described original web page address and this paging access links corresponding paging paging sign and generate.

Preferably:

The paging accessing step comprises:

The paging server receives the web page access request comprise a paging access links among described at least one paging access links, and extracts original web page address and the paging sign that comprises in this paging access links;

The paging server identifies corresponding paging based on this dom tree and this paging of described paging sign structure then according to the dom tree of the original web page of this original web page address search correspondence;

The paging server inserts at least one paging access links of pointing to the paging server in this paging, return this paging then.

Preferably, comprise at least a among the following link in the corresponding paging of each paging access links:

Last page or leaf link;

The nextpage link.

Preferably, comprise drop-down list in the corresponding paging of each paging access links, show at least one pagination options corresponding with at least one paging access links of inserting this paging in this drop-down list.

A kind of paging server comprises:

Transceiver module is used for receiving the web page access request that comprises the original web page address;

Acquisition module is used for obtaining corresponding original web page according to this original web page address by transceiver module;

Make up module, be used for making up the dom tree based on this original web page, and make up the first paging of this original web page based on this dom tree;

Insert module is used for inserting at least one paging access links in this first paging, returns this first paging by transceiver module then, and wherein said at least one paging access links is all pointed to this paging server.

Preferably, in described at least one paging access links, each paging access links be based on described paging server address, described original web page address and this paging access links corresponding paging paging sign and generate.

Preferably,

Described transceiver module also be used for to receive the web page access request that comprises a paging access links among described at least one paging access links, and extracts original web page address and the paging sign that comprises in this paging access links;

Described structure module also is used for the dom tree according to the original web page of this original web page address search correspondence, and identifies corresponding paging based on this dom tree and this paging of described paging sign structure;

Described insert module also is used for inserting at least one paging access links of pointing to this paging server in this paging, returns this paging by transceiver module then.

Preferably, comprise at least a among the following link in the corresponding paging of each paging access links:

Last page or leaf link;

The nextpage link.

Preferably, comprise drop-down list in the corresponding paging of each paging access links, show at least one pagination options corresponding with at least one paging access links of inserting this paging in this drop-down list.

Implement technical scheme of the present invention, have following beneficial effect: technical scheme provided by the invention realizes the random access of each paging by the paging access links of inserting corresponding each paging in paging.Thus, the user just can come arbitrarily visit to want the paging of visiting as required, and is very easy to use.

Description of drawings

The invention will be further described below in conjunction with drawings and Examples, in the accompanying drawing:

Fig. 1 is according to the process flow diagram of accessing step first in the webpage dividing method of a preferred embodiment of the present invention;

Fig. 2 is the process flow diagram according to paging accessing step in the webpage dividing method of a preferred embodiment of the present invention;

Fig. 3 is the synoptic diagram of going up page or leaf link, nextpage link and drop-down list and submit button that inserts each paging;

Fig. 4 is the paging server logical structural representation according to a preferred embodiment of the present invention.

Embodiment

In order to make purpose of the present invention, technical scheme and advantage clearer, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein only in order to explaining the present invention, and be not used in restriction the present invention.

The invention provides a kind of webpage dividing method and paging server, realize the random access of each paging by the paging access links of in paging, inserting corresponding each paging.Thus, the user just can come arbitrarily visit to want the paging of visiting as required, and is very easy to use.Below just come technical scheme provided by the invention is described in detail with specific embodiment by reference to the accompanying drawings.

The invention provides a kind of webpage dividing method, it specifically comprises accessing step and paging accessing step first, below just come above-mentioned two steps are described in detail in conjunction with corresponding the drawings and specific embodiments respectively.

Fig. 1 is according to the process flow diagram of accessing step 100 first in the webpage dividing method of a preferred embodiment of the present invention.As shown in Figure 1, accessing step 100 starts from step 102 first.

Subsequently, at next step 104, the paging server receives the web page access request that comprises the original web page address.

In the specific implementation process, this web page access request is by realizing such as but not limited to input above-mentioned original web page address and redirect in client browser.

Subsequently, at next step 106, the paging server obtains corresponding original web page according to this original web page address.

In the specific implementation process, the paging server is according to this original web page address this original web page of station for acquiring in this address correspondence.

Subsequently, at next step 108, the paging server makes up DOM (Document Object Model, the DOM Document Object Model) tree based on this original web page, and makes up the first paging of this original web page based on this dom tree.

The relevant content that makes up dom tree based on webpage has been done in the prior art clearly and has been described, and therefore repeats no more herein.

Subsequently, at next step 110, the paging server inserts at least one paging access links in this first paging, return this first paging to client browser then, and wherein, above-mentioned at least one paging access links is all pointed to the paging server.

In the specific implementation process, above-mentioned at least one paging access links can select list to realize by a paging, and this selection page is expressed and can be realized by following list source file:

<FORM?name=f?action=s??method=get>

<input?name=url?type=hidden?value=”request?url”>

<A id=previous href=" " target=? last page or leaf</A〉﹠amp; Nbsp;

<A id=next href=" " target=? nextpage</A〉﹠amp; Nbsp;

<SELECT?id=page?name=pager>

<OPTION〉the 1st page</OPTION 〉

<OPTION〉the n page or leaf</OPTION 〉

</SELECT>&nbsp;

<INPUT id=button type=submit value=redirect 〉

</FORM>

Based on above-mentioned list source file, can generate page or leaf link, nextpage link and drop-down list and submit button, wherein comprise a plurality of pagination options in the drop-down list, each pagination options is corresponding with a paging access links in above-mentioned at least one paging access links.Should note, the corresponding paging access links of each option all will be pointed to the paging server in last page or leaf link, nextpage link and the drop-down list, and paging that this link is based on the corresponding paging of address, original web page address and this paging access links institute of paging server identifies and generation.

In the specific implementation process, above-mentioned paging access links can adopt such as but not limited to following form:

Page URL=" http: // "+Server Host Name (paging server address)+"? " + " url "+"="+URL ENCODE (original web page address)+“ ﹠amp; "+" page "+"="+" page number (paging sign) ".

For example, suppose the paging server address for " 192.168.168.24 ", the original web page address is http://www.sina.com.cn, and then the nextpage in the first paging links corresponding address and is:

http://192.168.168.24?url=http%3A%2F%2Fwww.sina.com.cn&page=2。

It should be noted that for first paging, do not comprise the page or leaf link in its paging, for last paging, do not comprise the nextpage link in its paging.In the specific implementation process, last page or leaf link, nextpage link and drop-down list can arbitrarily arrange as required.

Can be seen from the foregoing, each paging access links of generation is all pointed to the paging server.

In the specific implementation process, step 108 and 110 can be carried out in the following manner:

After making up dom tree, in dom tree, search the corresponding start node of first paging and terminal node according to the paging size that client browser is supported.Subsequently, set up one with interface createContextualFragment and comprise the subtree that list is selected in above-mentioned paging, the standard interface insertBejfore that calls DOM then comes in the dom tree corresponding to original web page that makes up, before start node, inserts this stalk tree.Subsequently, based on above-mentioned dom tree, make up first paging according to this subtree and definite start node and terminal node.

At last, accessing step 100 ends at step 112 first.

Fig. 2 is the process flow diagram according to paging accessing step 200 in the webpage dividing method of a preferred embodiment of the present invention.As shown in Figure 2, accessing step 200 starts from step 202 first.

Subsequently, at next step 204, the paging server receives and comprises the web page access request of a paging access links among at least one paging access links among above-mentioned Fig. 1, and extracts original web page address and the paging sign that comprises in this paging access links.

In the specific implementation process, when the user clicks the paging access links that comprises in the first paging (such as but not limited to a certain option in nextpage link or the drop-down list), a web page access request that comprises the paging access links is sent in triggering.As indicated above, because each paging access links all is to point to the paging server, and the paging access links be based on the paging server address, original web page address and this paging access links corresponding paging paging sign and generate, therefore the paging server can directly be handled this web page access request, extracts original web page address and paging sign from this paging access links.

Subsequently, at next step 206, the paging server identifies corresponding paging based on this dom tree and this paging of described paging sign structure then according to the dom tree of the original web page of this original web page address search correspondence.

Subsequently, at next step 208, the paging server inserts at least one paging access links of pointing to the paging server in this paging, return this paging then.

In the specific implementation process, step 206 and 208 can adopt following manner to realize:

At first the paging server can search above-mentioned paging sign start node and the terminal node of corresponding paging in dom tree.Subsequently, the paging server is set up one with interface createContextualFragment and is comprised the subtree that list (this paging selection list is corresponding with at least one the paging access links in the step 208) selected in a paging, the standard interface insertBefore that calls DOM then comes in the dom tree corresponding to original web page that makes up, before above-mentioned start node, inserts this stalk tree.Subsequently, based on above-mentioned dom tree, make up first paging according to this subtree and definite start node and terminal node.

Be understood that at least one paging access links of inserting (being that list is selected in paging) all exists different in different pagings.If paging comprises page or leaf link, nextpage link and drop-down list simultaneously, then the upward page or leaf link in the different pagings and nextpage link have nothing in common with each other each other, but the corresponding paging access links of each option is identical in the drop-down list.

At last, paging accessing step 200 ends at step 210.

Fig. 3 is the synoptic diagram of going up page or leaf link, nextpage link and drop-down list and submit button that inserts each paging.

Fig. 4 is the logical organization synoptic diagram according to the paging server 400 of a preferred embodiment of the present invention.As shown in Figure 4, paging server 400 provided by the invention comprises transceiver module 402, acquisition module 404, makes up module 406 and insert module 408.Above-mentioned module has different functions in different operation stepss, below just introduce the function of these modules respectively.

In accessing step first, the function of above-mentioned module is as follows:

Transceiver module 402 is used for receiving the web page access request that comprises the original web page address.

Acquisition module 404 is used for obtaining corresponding original web page according to this original web page address by transceiver module 402;

Make up module 406 and be used for structure based on the dom tree of this original web page, and make up the first paging of this original web page based on this dom tree.

Insert module 408 is used for inserting at least one paging access links in this first paging, returns this first paging by transceiver module then, and wherein said at least one paging access links is all pointed to this paging server.

In the specific implementation process, each link in described at least one paging access links all will be pointed to the paging server, this link be based on the paging server address, original web page address and this paging access links corresponding paging paging sign and generate.The content of relevant paging access links is described in detail at preamble, therefore repeats no more herein.

In the specific implementation process, the function of each module in the paging server 400 in accessing step first respectively with Fig. 1 in accessing step first 100 in each operation corresponding, the content of these operations has been done clearly at preamble and has been described, and therefore repeats no more herein.

In the paging accessing step, the function of above-mentioned module is as follows:

Transceiver module 402 is used for receiving the web page access request that comprises a paging access links among above-mentioned at least one paging access links, and extracts original web page address and the paging sign that comprises in this paging access links;

Make up the dom tree that module 404 is used for according to the original web page of this original web page address search correspondence, and identify corresponding paging based on this dom tree and this paging of described paging sign structure;

Insert module 406 is used for inserting at least one paging access links of pointing to this paging server in this paging, returns this paging by transceiver module 402 then.

In the specific implementation process, the function of each module in the paging accessing step in the paging server 400 respectively with Fig. 2 in paging accessing step 200 in each operation corresponding, the content of these operations has been done clearly at preamble and has been described, and therefore repeats no more herein.

The above only is preferred embodiment of the present invention, not in order to limiting the present invention, all any modifications of doing within the spirit and principles in the present invention, is equal to and replaces and improvement etc., all should be included within protection scope of the present invention.

Claims (6)

1. a webpage dividing method is characterized in that, comprising:
Accessing step first comprises:
The paging server receives the web page access request that comprises the original web page address;
The paging server obtains corresponding original web page according to this original web page address;
The paging server makes up the dom tree based on this original web page, and makes up based on this dom tree
The first paging of this original web page;
The paging server inserts at least one paging access links in this first paging, return this first paging then, wherein said at least one paging access links is all pointed to the paging server, and in described at least one paging access links, each paging access links be based on described paging server address, described original web page address and this paging access links corresponding paging paging sign and generate;
The paging accessing step comprises:
The paging server receives the web page access request comprise a paging access links among described at least one paging access links, and extracts original web page address and the paging sign that comprises in this paging access links;
The paging server identifies corresponding paging based on this dom tree and this paging of described paging sign structure then according to the dom tree of the original web page of this original web page address search correspondence;
The paging server inserts at least one paging access links of pointing to the paging server in this paging, return this paging then.
2. webpage dividing method according to claim 1 is characterized in that, comprises at least a among the following link in the corresponding paging of each paging access links:
Last page or leaf link;
The nextpage link.
3. webpage dividing method according to claim 1, it is characterized in that, comprise drop-down list in the corresponding paging of each paging access links, show at least one pagination options corresponding with at least one paging access links of inserting this paging in this drop-down list.
4. a paging server is characterized in that, comprising:
Transceiver module is used for receiving the web page access request that comprises the original web page address;
Acquisition module is used for obtaining corresponding original web page according to this original web page address by transceiver module;
Make up module, be used for making up the dom tree based on this original web page, and make up the first paging of this original web page based on this dom tree;
Insert module, be used for inserting at least one paging access links in this first paging, return this first paging by transceiver module then, wherein said at least one paging access links is all pointed to this paging server, and in described at least one paging access links, each paging access links be based on described paging server address, described original web page address and this paging access links corresponding paging paging sign and generate;
Wherein,
Described transceiver module also be used for to receive the web page access request that comprises a paging access links among described at least one paging access links, and extracts original web page address and the paging sign that comprises in this paging access links;
Described structure module also is used for the dom tree according to the original web page of this original web page address search correspondence, and identifies corresponding paging based on this dom tree and this paging of described paging sign structure;
Described insert module also is used for inserting at least one paging access links of pointing to this paging server in this paging, returns this paging by transceiver module then.
5. paging server according to claim 4 is characterized in that, comprises at least a among the following link in the corresponding paging of each paging access links:
Last page or leaf link;
The nextpage link.
6. paging server according to claim 4, it is characterized in that, comprise drop-down list in the corresponding paging of each paging access links, show at least one pagination options corresponding with at least one paging access links of inserting this paging in this drop-down list.
CN 201010180383 2010-05-24 2010-05-24 Webpage segmentation method and paging server CN102262628B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201010180383 CN102262628B (en) 2010-05-24 2010-05-24 Webpage segmentation method and paging server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201010180383 CN102262628B (en) 2010-05-24 2010-05-24 Webpage segmentation method and paging server

Publications (2)

Publication Number Publication Date
CN102262628A CN102262628A (en) 2011-11-30
CN102262628B true CN102262628B (en) 2013-07-03

Family

ID=45009259

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201010180383 CN102262628B (en) 2010-05-24 2010-05-24 Webpage segmentation method and paging server

Country Status (1)

Country Link
CN (1) CN102262628B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103365877B (en) * 2012-03-29 2017-12-26 百度在线网络技术(北京)有限公司 Method and server to establishing catalogue after webpage progress transcoding
CN102682093B (en) * 2012-04-25 2014-09-17 广州市动景计算机科技有限公司 Web page sectionally-loading method and web page sectionally-loading system for mobile browser
CN103345371B (en) * 2013-05-31 2016-06-01 沈阳东软熙康医疗系统有限公司 A kind of method by display screen flow display big data quantity
CN103294819B (en) * 2013-06-14 2018-08-31 北京新学堂网络科技有限公司 The method that Pagination Display is carried out to web page contents using HTML5 technologies
CN105677909A (en) * 2016-02-24 2016-06-15 沈文策 Layout method for sliding to turn web pages

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101625700A (en) * 2009-08-12 2010-01-13 中兴通讯股份有限公司 Method and device for optimizing display network page on terminal
CN101655874A (en) * 2009-09-04 2010-02-24 卓望数码技术(深圳)有限公司 Web page segmentation method and web page segmentation device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080153467A1 (en) * 2006-03-01 2008-06-26 Eran Shmuel Wyler Methods and apparatus for enabling use of web content on various types of devices

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101625700A (en) * 2009-08-12 2010-01-13 中兴通讯股份有限公司 Method and device for optimizing display network page on terminal
CN101655874A (en) * 2009-09-04 2010-02-24 卓望数码技术(深圳)有限公司 Web page segmentation method and web page segmentation device

Also Published As

Publication number Publication date
CN102262628A (en) 2011-11-30

Similar Documents

Publication Publication Date Title
US10802543B2 (en) Mobile electronic device with an adaptively responsive flexible display
CN103392179B (en) Obtain method and device, browser and the mobile terminal of page resource
US8849752B2 (en) Overloaded communication session
CN100481088C (en) Web page resource issuing method and issuing system
CN101401359B (en) Communication device and base for an advanced display
CN100530179C (en) Techniques for inline searching in an instant messenger environment
CN1108685C (en) Distributed system and method for prefetching objects
CN102946590B (en) Method and system for information issue by wifi (wireless fidelity) network
US8403222B2 (en) Method of enabling the downloading of content
US6560640B2 (en) Remote bookmarking for wireless client devices
TW529261B (en) Method of and system for transferring data over a wireless communications network
EP0779759B1 (en) A method and architecture for an interactive two-way data communication network
CN101295302B (en) Advertisement releasing system and method
CN104333599A (en) Application sharing method and system and application service platform
CN101296255B (en) Web page browsing method, system, proxy server and mobile phone browser
JP2009510565A (en) Method and system for displaying information on a mobile device
US7747781B2 (en) Content access from a communications network using a handheld computer system and method
CN101291304B (en) Transplantable network information sharing method
CN103428076A (en) Method and device for transmitting information to multi-type terminals or applications
JP2008532110A (en) Web page matching method and system for mobile communication terminal
JP4982455B2 (en) Mobile web service system and method
CN102171673B (en) Cross-layer pipelining optimizations for reduced roundtrips and improving quality of experience
US9152615B2 (en) Method and system for inserting data in a web page that is transmitted to a handheld device
CN101583072B (en) Middleware product for realizing Mobile Internet and method thereof
EP2151981A1 (en) Method, system and apparatus for implanting advertisement

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant