CN104615697A - Webpage level memorizing and returning method - Google Patents

Webpage level memorizing and returning method Download PDF

Info

Publication number
CN104615697A
CN104615697A CN201510037421.6A CN201510037421A CN104615697A CN 104615697 A CN104615697 A CN 104615697A CN 201510037421 A CN201510037421 A CN 201510037421A CN 104615697 A CN104615697 A CN 104615697A
Authority
CN
China
Prior art keywords
webpage
level
page
session
current
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.)
Granted
Application number
CN201510037421.6A
Other languages
Chinese (zh)
Other versions
CN104615697B (en
Inventor
朱节中
梅永
周晓彦
周翀斌
郭萍
郑钰辉
姚永雷
郑昊宇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhongshida (Fujian) Information Technology Co., Ltd.
Original Assignee
Nanjing University of Information Science and Technology
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 Nanjing University of Information Science and Technology filed Critical Nanjing University of Information Science and Technology
Priority to CN201510037421.6A priority Critical patent/CN104615697B/en
Publication of CN104615697A publication Critical patent/CN104615697A/en
Application granted granted Critical
Publication of CN104615697B publication Critical patent/CN104615697B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
    • G06F16/986Document structures and storage, e.g. HTML extensions

Abstract

The invention discloses a webpage level memorizing and returning method, belong to the technical field of the network data processing, and particularly relates to a webpage generating method. A valid level of a webpage entering can be dynamically recorded and a corresponding page layer can be returned based on a developer preset or a user request, and a data state of a corresponding webpage can be maintained. According to the webpage level memorizing and returning method, the phenomena in the traditional webpage design that only the downward click can be carried out, the return to an original state cannot be achieved or the return can only be carried out on a previous webpage are overcome, the operation is convenient, the achieving efficiency is high, and the resources occupancy is low. The webpage level memorizing and returning method has the advantages that the code reusability is good and the method universality is good. The effect can be achieved only by putting a length of simple codes in the front portion of the corresponding webpage and linking the corresponding linkage on the place needed to be returned.

Description

A kind of webpage level memory return method
Technical field
The invention belongs to network data processing technique, relate to a kind of webpage generating method, more specifically relate to a kind of webpage level memory return method.
Background technology
Along with the development of computer technology, computer technology especially network technology in information management to applying widely, especially in the application based on WEB Information issued website and sector application type website, play very effective function.WEB webpage has level usually, advancing and return in webpage is all very common operation, webpage has the function remembering upper one or upper several page usually, at present, in the memory of a lot of WEB webpage level, during with the returning of webpage level, program developer uses simple JavaScript code history.go (-1) or javascript:history.back (-1) codes implement, this method can only return the previous page (preceding state of the same page), but not the last layer in webpage level, and there will be the page submitted to, repeat situation about submitting to.
Summary of the invention
For solving the problem, the invention discloses a kind of webpage level memory return method, when opening webpage, memory page surface layer number situation and data mode, the corresponding page is returned at any time for user, display historical data situation, programmer arbitrarily can determine whether certain webpage submitted to is returning in queue.
In order to achieve the above object, the invention provides following technical scheme:
A kind of webpage level memory return method, comprises the steps:
Steps A, arranges webpage root name and webpage level in the link of the top layer of each branch of main page, defines the variable of webpage root name and webpage level in every one deck page;
Step B, current web page obtains the webpage root name of last layer and the variate-value of webpage level;
Step C, takes out the link of last layer, and preserves from session;
Step D, if current web page is the webpage of effective level, then adds 1 by the last layer webpage level got in described step B, obtains the level of this layer of webpage, will open the link of the webpage of this layer, webpage level stored in session;
Step e, if current web page is not the webpage of effective level, then the direct webpage information that step C obtains being reached next layer open;
Step F, when being linked in other webpage of current web page, if current web page is effective level, normally comprises webpage root name and webpage level in linking; If current web page is the webpage of non-effective level, import in the webpage linked to by last layer webpage level;
Step G, needing place suitable on the page to place back link or button, back link is the link of the last layer preserved in step C.
Further, the described page shows navigation, described navigation comprises each effective level web page interlinkage that session stores.
Further, in described session, store the label information of effective level webpage, leave before current page enters the next page by the current label information of this effective level webpage store or be updated in session.
Further, in described session, store the page number of point page in effective level webpage, before current page enters the next page, the page number of the current point of page of this effective level webpage to be stored or be updated in session leaving.
Compared with prior art, tool of the present invention has the following advantages and beneficial effect:
Can effective level of entering of dynamically recording webpage, according to developer preset or the demand of user turns back to corresponding page layer, and maintain the data mode of corresponding webpage.Instant invention overcomes traditional webpage design, down can only click and can not return the situation that original state maybe can only turn back to a page, easy to operate, implementation efficiency is high, and resource occupation is few.This method code reusability is good, and method versatility is good, as long as put into one section of simple code in the front portion of the corresponding page during use, just can realize in the corresponding link of place link needing to return.
Accompanying drawing explanation
Fig. 1 is the data structure schematic diagram stored in session in the present invention;
Fig. 2 is web page navigation example;
Fig. 3 is the webpage example with label display and the display of the little page.
Embodiment
Below with reference to specific embodiment, technical scheme provided by the invention is described in detail, following embodiment should be understood and be only not used in for illustration of the present invention and limit the scope of the invention.
The invention provides a kind of webpage level memory return method, based on following webpage framework, namely have a main page, have multiple branch in main page, have multilayer sub-pages under each branch, each webpage should have corresponding level.In webpage opening procedure, likely arrive same sub-pages from multiple path, then also should return layer by layer along the path arrived when returning, therefore in the present invention, the level of each webpage dynamically generates.Based on above-mentioned thinking, the present invention includes following steps:
Steps A, first the every one deck under each branch of webpage is distinguished by webpage root name and level, namely different webpage root names represents different branches, webpage root name and webpage level is comprised in the link of the top layer of each branch of main page, the level of top level page is 0, and defines the variable of webpage root name and webpage level in every one deck page.
Then, when opening each layer page, need webpage root name and the webpage level of the last layer webpage obtaining current web page, and be effective level (webpage can opened to user when effective level refers to and returns at current page, whether webpage is that effective level can set as required) time obtain the webpage level of current web page, and in a session newly-built data stored in the information of current page, if current page is not effective webpage, then by the information transmission of last layer in lower one deck page of current page.In the present invention, session is structure of arrays, as shown in Figure 1, which includes the information respectively having the active layer page from top layer to current layer, for the specifying information of wherein one deck, comprise the link, webpage title, Navigation Picture etc. of webpage root name Backtype, webpage level backlevel, this webpage respectively.
Step B, when entering into certain one deck page, need obtain the webpage root name of last layer webpage and the variate-value of webpage level, namely these variate-values are included in the link of current web page.
Step C, from session(session) take out the link of last layer, and connection is saved in backpage variable.Specifically, be in session, find corresponding link by the webpage root name of last layer webpage and webpage level.
Step D, if current web page is the webpage of effective level, then obtains originally secondary layer by layer, and by relevant information stored in session: the webpage level got in preceding step B is added 1, namely obtains the level of this layer of webpage;
To open the link (comprising webpage root name and webpage level) of the webpage of this layer stored in session, namely in session array, increase a record again, the variable in this record is called webpage root name and adds the webpage level obtained in step D.
Step e, if current web page is not the webpage of effective level, when namely in the middle of return course, current page is no longer shown again to user, then the direct webpage information that step C obtains being reached next layer open.
Step F, when being linked in other webpage of current web page, if current web page is effective level, normally comprises webpage root name and webpage level in linking; If current web page is the webpage of non-effective level, import in the webpage linked to by last layer webpage level.
Step G, needing place suitable on the page to place back link or button, back link is the content of the variable backpage preserved in step C.
Further, each effective level webpage in bar record each in session can also be linked at place suitable on the page shows as navigation, each effective level page like this before current page directly can be returned by the respective page link clicked in navigation, and the display of navigating items can adopt go forward one by one level or Navigation Picture as shown in Figure 2, connection, button-pressing way.
In addition, webpage may be also many Tab(label) (as shown in Figure 3), therefore also needing before current page enters the next page the concrete Tab value at this effective current place of level webpage to be stored or upgrade that (needing when there being acquiescence Tab value in session data the actual Tab value of current web page to replace original default value) enter in session belonging to this webpage during that records leaving, Tab value can be taken out from session when returning this page and showing Tab state residing when leaving this page.Same, also may have in webpage and be divided into the situation of multiple little page display to there is (as shown in Figure 2), therefore also needing the page number shown in current effective level webpage to be stored or upgrades before entering the next page in that record that (needing the real page number of current web page to replace original default value when there being default page in session data) enter in session belonging to this webpage, page number can be taken out from session when returning this page and this page is left in display time the residing point page.
Technological means disclosed in the present invention program is not limited only to the technological means disclosed in above-mentioned embodiment, also comprises the technical scheme be made up of above technical characteristic combination in any.It should be pointed out that for those skilled in the art, under the premise without departing from the principles of the invention, can also make some improvements and modifications, these improvements and modifications are also considered as protection scope of the present invention.

Claims (4)

1. a webpage level memory return method, is characterized in that, comprise the steps:
Steps A, arranges webpage root name and webpage level in the link of the top layer of each branch of main page, defines the variable of webpage root name and webpage level in every one deck page;
Step B, current web page obtains the webpage root name of last layer and the variate-value of webpage level;
Step C, takes out the link of last layer, and preserves from session;
Step D, if current web page is the webpage of effective level, then adds 1 by the last layer webpage level got in described step B, obtains the level of this layer of webpage, will open the link of the webpage of this layer, webpage level stored in session;
Step e, if current web page is not the webpage of effective level, then the direct webpage information that step C obtains being reached next layer open;
Step F, when being linked in other webpage of current web page, if current web page is effective level, normally comprises webpage root name and webpage level in linking; If current web page is the webpage of non-effective level, import in the webpage linked to by last layer webpage level;
Step G, needing place suitable on the page to place back link or button, back link is the link of the last layer preserved in step C.
2. webpage level memory return method according to claim 1, it is characterized in that: the described page shows navigation, described navigation comprises each effective level web page interlinkage that session stores.
3. webpage level memory return method according to claim 1 and 2, it is characterized in that: webpage level memory return method according to claim 1, it is characterized in that: the label information storing effective level webpage in described session, leave before current page enters the next page by the current label information of this effective level webpage store or be updated in session.
4. webpage level memory return method according to claim 1 and 2, it is characterized in that: the page number storing point page in effective level webpage in described session, before current page enters the next page, the page number of the current point of page of this effective level webpage to be stored or be updated in session leaving.
CN201510037421.6A 2015-01-26 2015-01-26 A kind of webpage level remembers return method Active CN104615697B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510037421.6A CN104615697B (en) 2015-01-26 2015-01-26 A kind of webpage level remembers return method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510037421.6A CN104615697B (en) 2015-01-26 2015-01-26 A kind of webpage level remembers return method

Publications (2)

Publication Number Publication Date
CN104615697A true CN104615697A (en) 2015-05-13
CN104615697B CN104615697B (en) 2018-04-24

Family

ID=53150139

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510037421.6A Active CN104615697B (en) 2015-01-26 2015-01-26 A kind of webpage level remembers return method

Country Status (1)

Country Link
CN (1) CN104615697B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106021549A (en) * 2016-05-27 2016-10-12 青岛海信传媒网络技术有限公司 Page control method and device of web application program and terminal device
CN106202244A (en) * 2016-06-28 2016-12-07 深圳中兴网信科技有限公司 Web page message return method and web page message return system
CN107659438A (en) * 2017-09-18 2018-02-02 上海斐讯数据通信技术有限公司 A kind of configuration of routers function pages jump method and system

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101005566A (en) * 2007-01-10 2007-07-25 中兴通讯股份有限公司 Page returning method for electronic program list navigation
EP1993264B1 (en) * 2007-05-18 2012-12-19 Apple Inc. Characteristic identifying system and method
CN102968252A (en) * 2012-11-05 2013-03-13 北京奇虎科技有限公司 Page backward/forward method and equipment
CN103500204A (en) * 2013-09-27 2014-01-08 北京京东尚科信息技术有限公司 Web surfing backspacing method, web server and client side
CN103713815A (en) * 2012-09-28 2014-04-09 腾讯科技(深圳)有限公司 Method and device for quickly returning to assigned page and mobile terminal
CN103914523A (en) * 2014-03-24 2014-07-09 小米科技有限责任公司 Page rollback controlling method and page rollback controlling device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101005566A (en) * 2007-01-10 2007-07-25 中兴通讯股份有限公司 Page returning method for electronic program list navigation
EP1993264B1 (en) * 2007-05-18 2012-12-19 Apple Inc. Characteristic identifying system and method
CN103713815A (en) * 2012-09-28 2014-04-09 腾讯科技(深圳)有限公司 Method and device for quickly returning to assigned page and mobile terminal
CN102968252A (en) * 2012-11-05 2013-03-13 北京奇虎科技有限公司 Page backward/forward method and equipment
CN103500204A (en) * 2013-09-27 2014-01-08 北京京东尚科信息技术有限公司 Web surfing backspacing method, web server and client side
CN103914523A (en) * 2014-03-24 2014-07-09 小米科技有限责任公司 Page rollback controlling method and page rollback controlling device

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106021549A (en) * 2016-05-27 2016-10-12 青岛海信传媒网络技术有限公司 Page control method and device of web application program and terminal device
CN106021549B (en) * 2016-05-27 2020-04-07 青岛海信传媒网络技术有限公司 Web application program page control method and device and terminal equipment
CN106202244A (en) * 2016-06-28 2016-12-07 深圳中兴网信科技有限公司 Web page message return method and web page message return system
CN107659438A (en) * 2017-09-18 2018-02-02 上海斐讯数据通信技术有限公司 A kind of configuration of routers function pages jump method and system

Also Published As

Publication number Publication date
CN104615697B (en) 2018-04-24

Similar Documents

Publication Publication Date Title
CN111104635B (en) Method and device for generating form webpage
CN110377851A (en) Implementation method, device and the computer equipment of multistage linking combobox
CN108874926A (en) Mass data inquiry method, device, computer equipment and storage medium
US20100257439A1 (en) Render engine for spreadsheet
US10289743B2 (en) Client-side minimal download and simulated page navigation features
US20130073536A1 (en) Indexing of urls with fragments
CN106294372A (en) Application program page quick access method and apply its mobile terminal
CN104346267A (en) Method and device for generating program bug positioning information
CN111324577B (en) Yml file reading and writing method and device
US10169053B2 (en) Loading a web page
CN110209966A (en) A kind of webpage method for refreshing, Web page system and electronic equipment
CN104052626A (en) Method, device and system for configuring network element data
US11222067B2 (en) Multi-index method and apparatus, cloud system and computer-readable storage medium
US11562037B2 (en) Crawlability of single page applications
CN104423961A (en) Method and system for generating testing script
CN107885767A (en) A kind of page operation method and device
CN106095917A (en) A kind of bookmark preservation, methods of exhibiting, device and browser
EP3287904A1 (en) Web page manipulation
CN104615697A (en) Webpage level memorizing and returning method
CN108038142A (en) Realize method, electronic device and the storage medium of multistage linking combobox
CN108241676A (en) Realize the method and apparatus that data synchronize
CN105430078B (en) A kind of distributed storage method of mass data
CN106126595A (en) A kind of document down loading method and device
CN109522507B (en) Method for uniformly managing webpage components
CN111309424A (en) Page restoration method and related equipment

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
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20190408

Address after: 350000 12 floors of No.3 Building, No.528 Xihong Road, Gulou District, Fuzhou City, Fujian Province

Patentee after: Zhongshida (Fujian) Information Technology Co., Ltd.

Address before: 210044 Ning six road, Nanjing, Jiangsu Province, No. 219

Patentee before: Nanjing University of Information Science and Technology