CN102567366A - Method for realizing webpage resetting - Google Patents
Method for realizing webpage resetting Download PDFInfo
- Publication number
- CN102567366A CN102567366A CN201010606695XA CN201010606695A CN102567366A CN 102567366 A CN102567366 A CN 102567366A CN 201010606695X A CN201010606695X A CN 201010606695XA CN 201010606695 A CN201010606695 A CN 201010606695A CN 102567366 A CN102567366 A CN 102567366A
- Authority
- CN
- China
- Prior art keywords
- webpage
- code
- web page
- page code
- resetting
- 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
Links
Images
Landscapes
- Information Transfer Between Computers (AREA)
Abstract
The invention discloses a method for realizing webpage resetting. The method comprises the following steps of: (1) accessing a webpage through a website; (2) obtaining a page code returned by the webpage; (3) saving context and user session of the webpage; (4) carrying out label filtering on the webpage code so as to remove the code; (5) loading the context and the user session saved in the step (3); (6) loading the processed webpage code and regenerating a webpage; and (7) displaying the webpage to the user. By using the method for realizing webpage resetting, disclosed by the invention, the problem that the interface is incompatible when the webpage is opened on a mobile phone is solved; meanwhile, the method for realizing webpage resetting, disclosed by the invention, can be used for filtering advertisements so that the advertisements cannot be popped out when the webpage is browsed on the mobile phone.
Description
Technical field
The present invention relates to a kind of mobile electronic equipment display packing, be specifically related to the disposal route of webpage on a kind of mobile electronic device.
Background technology
At present,,, and let webpage can adapt to the resolution of mobile phone, need before web displaying, carry out the second time to it and set type for better display web page on mobile phone because the resolution of mobile phone screen is less.Now existing number of site has been done interface optimization to mobile phone, and website but more is to write by the display mode of PC, therefore on mobile phone, has incompatible phenomenon and takes place.Therefore, need a kind of method that can effectively generic web page be converted into suitable mobile phone screen demonstration fast badly.
Summary of the invention
Technical matters to be solved by this invention provides a kind of method that webpage is set type again of realizing, it can solve when opening webpage on the mobile phone, the problem that the interface is incompatible.
In order to solve above technical matters, the invention provides a kind of method that webpage is set type again of realizing; May further comprise the steps:
Step 1, through the network address accessed web page;
Step 2, obtain the page code that webpage returns;
Step 3, the context of preserving this webpage and user conversation;
Step 4, web page code is carried out label filter, remove unwanted code;
Context and the user conversation preserved in step 5, the load step three;
Step 6, the web page code after will handling load, and regenerate webpage;
Step 7, give the user with web displaying.
Beneficial effect of the present invention is: solved when opening webpage on the mobile phone, the problem that the interface is incompatible can be used to filtering advertisements simultaneously, and advertisement is not ejected when mobile phone is browsed.
Description of drawings
Below in conjunction with accompanying drawing and embodiment the present invention is done further explain.
Fig. 1 is the process flow diagram of the said realization of the embodiment of the invention to webpage composition method again.
Embodiment
The present invention has realized before the handset displays webpage, it once being set type again.
As shown in Figure 1, the said method flow of the embodiment of the invention is following:
Step 1. through webpage of network address visit.
Step 2. obtain the page code that webpage returns.
Step 3. preserve the context and the user conversation of this webpage.
Step 4. use regular expression that web page code is carried out label and filter, remove unwanted partial code; Regular expression (English: Regular Expression) in computer science, be meant that one is used for describing or matees a series of single character strings that meet the character string of certain syntactic rule.In many text editors or other tools, the regular expression is often used to retrieve and / or replace those text matches a pattern.
Wherein web page code is carried out the label filtration and comprise, deletion list Table label, CSS CSS (Cascading Style Sheet) deletes at a distance from mark div label in the deletion district, and the html label of deleting other.
Step 5. can select web page code is replenished processing, add the code that a part needs, make its better composing.
Step 6. context and the user conversation preserved in the load step three, guarantee web page code after changing, do not lose user data.
Step 7. the web page code after will handling loads, and regenerates webpage.
Step 8. give the user with web displaying.
The invention solves when opening webpage on the mobile phone problem that the interface is incompatible.The present invention can be used to filtering advertisements simultaneously, and advertisement is not ejected when mobile phone is browsed.The method of the invention preferably is applicable to the Android mobile phone operating system by the Google invention.
The present invention is not limited to the embodiment that preceding text are discussed.More than the description of embodiment is intended in order to describe and explain the technical scheme that the present invention relates to.Based on the conspicuous conversion of the present invention enlightenment or substitute and also should be considered to fall into protection scope of the present invention.Above embodiment is used for disclosing best implementation method of the present invention, so that those of ordinary skill in the art can use numerous embodiments of the present invention and multiple alternative reaches the object of the invention.
Claims (3)
1. method that realization is set type to webpage again; It is characterized in that, may further comprise the steps:
Step 1, through the network address accessed web page;
Step 2, obtain the page code that webpage returns;
Step 3, the context of preserving this webpage and user conversation;
Step 4, web page code is carried out label filter, remove code;
Context and the user conversation preserved in step 5, the load step three;
Step 6, the web page code after will handling load, and regenerate webpage;
Step 7, give the user with web displaying.
2. the method that realization as claimed in claim 1 is set type to webpage again is characterized in that, between step 4 and step 5, adds following steps: web page code is replenished processing, add code.
3. the method that realization as claimed in claim 1 is set type to webpage again is characterized in that, saidly web page code is carried out label filters and to comprise, and deletion list Table label, the deletion district is at a distance from mark div label, deletion CSS CSS.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201010606695XA CN102567366A (en) | 2010-12-27 | 2010-12-27 | Method for realizing webpage resetting |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201010606695XA CN102567366A (en) | 2010-12-27 | 2010-12-27 | Method for realizing webpage resetting |
Publications (1)
Publication Number | Publication Date |
---|---|
CN102567366A true CN102567366A (en) | 2012-07-11 |
Family
ID=46412806
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201010606695XA Pending CN102567366A (en) | 2010-12-27 | 2010-12-27 | Method for realizing webpage resetting |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102567366A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103098001A (en) * | 2012-10-19 | 2013-05-08 | 华为技术有限公司 | Processing method for user interface and electronic device |
CN103412928A (en) * | 2013-08-16 | 2013-11-27 | 北京乐动卓越科技有限公司 | Method and device for realizing browser page intelligent response-type layout on mobile terminal |
CN103440289A (en) * | 2013-08-16 | 2013-12-11 | 北京航空航天大学 | Method for searching for webpage incompatible labels in parallel mode based on MapReduce |
CN104780153A (en) * | 2015-03-11 | 2015-07-15 | 小米科技有限责任公司 | Method and device for filtering information |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP1061458A2 (en) * | 1999-06-15 | 2000-12-20 | Sun Microsystems, Inc. | Caching of reduced forms of web pages on a small footprint device |
CN1434399A (en) * | 2002-01-24 | 2003-08-06 | 英业达股份有限公司 | System and method for rearrangement of web page table |
CN101833586A (en) * | 2010-05-26 | 2010-09-15 | 卓望数码技术(深圳)有限公司 | HTML (Hypertext Markup Language) small screen self-adaption typesetting method and typesetting server |
-
2010
- 2010-12-27 CN CN201010606695XA patent/CN102567366A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP1061458A2 (en) * | 1999-06-15 | 2000-12-20 | Sun Microsystems, Inc. | Caching of reduced forms of web pages on a small footprint device |
CN1434399A (en) * | 2002-01-24 | 2003-08-06 | 英业达股份有限公司 | System and method for rearrangement of web page table |
CN101833586A (en) * | 2010-05-26 | 2010-09-15 | 卓望数码技术(深圳)有限公司 | HTML (Hypertext Markup Language) small screen self-adaption typesetting method and typesetting server |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103098001A (en) * | 2012-10-19 | 2013-05-08 | 华为技术有限公司 | Processing method for user interface and electronic device |
WO2014059677A1 (en) * | 2012-10-19 | 2014-04-24 | 华为技术有限公司 | Method for processing user interface, and electronic device |
CN103412928A (en) * | 2013-08-16 | 2013-11-27 | 北京乐动卓越科技有限公司 | Method and device for realizing browser page intelligent response-type layout on mobile terminal |
CN103440289A (en) * | 2013-08-16 | 2013-12-11 | 北京航空航天大学 | Method for searching for webpage incompatible labels in parallel mode based on MapReduce |
CN103440289B (en) * | 2013-08-16 | 2016-05-18 | 北京航空航天大学 | The incompatible label parallel search of webpage method based on MapReduce |
CN104780153A (en) * | 2015-03-11 | 2015-07-15 | 小米科技有限责任公司 | Method and device for filtering information |
CN104780153B (en) * | 2015-03-11 | 2018-06-19 | 小米科技有限责任公司 | Information filtering method and device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103020025B (en) | Technology for the automatic animation of document content | |
CN107291449B (en) | Page rendering method, device and equipment | |
CN103853729A (en) | Page loading method and system | |
CN103020295B (en) | A kind of problem label for labelling method and device | |
CN102033917A (en) | Webpage browsing method for mobile terminal and mobile terminal applying same | |
CN101777065B (en) | Multi-page browser for mobile communication equipment terminals and application method thereof | |
CN102768662A (en) | Method and device for loading picture | |
CN103678698A (en) | Method and device for improving on-line browsing loading speed of PDF document | |
CN103984743B (en) | A kind of method and device of managing internal memory resource | |
CN104020950A (en) | Input method based on touch screen and input device with touch screen | |
CN103577477A (en) | Method and system for displaying browsing history of browser | |
CN106886544A (en) | A kind of data processing method and device | |
CN106354355A (en) | User interface layout method, device and system | |
CN103856507A (en) | Network dynamic picture static display method and device | |
CN102567366A (en) | Method for realizing webpage resetting | |
CN103092839A (en) | Management method and device for recording historical information | |
CN103902562A (en) | Method and device for upgrading terminal databases | |
CN106358062A (en) | Browser video file playing processing method and equipment | |
CN103455547A (en) | Method and device for webpage load | |
CN107943782A (en) | A kind of character processing method and terminal | |
CN102955852A (en) | Method, device and equipment for webpage resource processing | |
CN103049547B (en) | A kind of iOS page processing method based on IDF document format | |
CN106708479B (en) | A kind of page rendering method and device | |
CN109189593A (en) | A kind of method, apparatus of data processing, computer equipment and storage medium | |
CN106020616A (en) | Updating method and device for desktop quick linking icons |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20120711 |