CN104615697B - One kind of page-level memory method returns - Google Patents

One kind of page-level memory method returns Download PDF

Info

Publication number
CN104615697B
CN104615697B CN 201510037421 CN201510037421A CN104615697B CN 104615697 B CN104615697 B CN 104615697B CN 201510037421 CN201510037421 CN 201510037421 CN 201510037421 A CN201510037421 A CN 201510037421A CN 104615697 B CN104615697 B CN 104615697B
Authority
CN
Grant status
Grant
Patent type
Prior art keywords
page
level
current
web
layer
Prior art date
Application number
CN 201510037421
Other languages
Chinese (zh)
Other versions
CN104615697A (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
Grant date

Links

Abstract

本发明公开了一种网页层次记忆返回方法,属于网络数据处理技术领域,具体涉及一种网页生成方法。 The present invention discloses a method to return the page memory hierarchy, belonging to a network of data processing technology, and in particular relates to a method for generating a web page. 本发明可以动态记录网页进入的有效层次,根据开发者的预设或用户的需求返回到相应的页面层,并维持相应的网页的数据状态。 The present invention can effectively record dynamic page entry level, according to a preset or user returns the developer needs to the appropriate page layer, and maintains the state data of the corresponding page. 本发明克服了传统的网页设计,只能往下点击不能返回原先状态或只能返回到上一个页面的情况,操作方便,实现效率高,资源占用少。 The present invention overcomes the traditional web design, can only return to the original state can not click down or can only return to the situation on one page, easy operation, high efficiency, occupy less resources. 本方法代码重用性好,方法通用性好,使用时只要在相应的页面的前部放入一段简单的代码,在需要返回的地方链接相应的链接就能够实现。 This method is good code reuse method common good, as long as a simple code placed in front of the corresponding page when using, where necessary links returned the appropriate link can be achieved.

Description

一种网页层次记忆返回方法 One kind of page-level memory method returns

技术领域 FIELD

[0001]本发明属于网络数据处理技术领域,涉及一种网页生成方法,更为具体地说是涉及一种网页层次记忆返回方法。 [0001] The present invention belongs to the technical field of data processing network, to a method for generating a web page, and more particularly relates to a method to return the page memory hierarchy.

背景技术 Background technique

[0002]随着计算机技术的不断发展,计算机技术尤其是网络技术在信息管理中的到广泛的应用,尤其是在基于WEB信息发布网站和行业应用型网站的应用中发挥着非常有效的功能。 [0002] With the continuous development of computer technology, computer technology, especially the extensive application of network technology in information management, in particular, plays a very effective function on the WEB information release sites and industry-based application-oriented websites. WEB网页通常具有层次,在网页中前进和返回都是很常见的操作,网页通常有记忆上一个或上几个页面的功能,目前,在很多WEB网页层次的记忆,和网页层次的返回时,程序开发者是使用f§]单的JavaScript代码history.go (-1)或javascript:history.back 卜1)代码实现,这种方法只能返回前一个页面(同一个页面的前一个状态),而非网页层次中的上一层,而且会出现提交过的页面,重复提交的情况。 WEB pages typically have levels, forward and return operations are very common in Web pages, Web pages often have a memory or a functionally few pages, returning Currently, many WEB pages in memory hierarchy, and the page level, application developers using f§] JavaScript codes history.go (-1) or single javascript: history.back BU 1) code for a page (a state) before the same page before this method can only return, on one page, rather than hierarchy, and the page will be submitted, the situation repeated submission.

发明内容 SUMMARY

[0003]为解决上述问题,本发明公开了一种网页层次记忆返回方法,在打开网页时,记忆页面层数情况和数据状态,供用户随时返回相应的页面,显示历史数据情况,编程者可以随意确定某次提交的网页是否在返回队列中。 [0003] In order to solve the above problems, the present invention discloses a method to return the page memory hierarchy, when the page is opened, the page memory where the number of layers and the state data for the user at any time to return to the corresponding page, the display of historical data, the programmer can free to determine whether the submission of a web page in the return queue.

[0004] 为了达到上述目的,本发明提供如下技术方案: [0004] To achieve the above object, the present invention provides the following technical solutions:

[0005] —种网页层次记忆返回方法,包括如下步骤: [0005] - return species page memory hierarchy, comprising the steps of:

[0006] 步骤A,在主网页每一分支的顶层的链接中设置网页根名和网页层次,在每一层页面中定义网页根名和网页层次的变量; [0006] Step A, provided web page hierarchy and the root name of each link on the main page of the top branch, root name and web page definition of the hierarchy each layer variable page;

[0007] 步骤B,在当前网页上得到上一层的网页根名和网页层次的变量值; [0007] Procedure B, to give the value of the variable name and the root layer of web pages on the current level of the page;

[0008] 步骤C,从会话中取出上一层的链接,并进行保存; [0008] Procedure C, taken on the links from the session layer, and saved;

[0009] 步骤D,如果当前网页是有效层次的网页,则将所述步骤B中取到的上一层网页层次加1,得到本层网页的层次,将打开本层的网页的链接、网页层次存入会话中; [0009] Procedure D, if the current page is a valid page level, then the step B to take on one page plus one level, the level of this layer to obtain the page, the page will open the link layer is present, the page level into session;

[0010] 步骤E,如果当前网页不是有效层次的网页,则直接将步骤c获得的信息传至下一层打开的网页; [0010] Step E, if the current page is not a valid page level, the information directly obtained in step c is transmitted to the next layer to open the page;

[0011] 步骤F,在当前网页的链接到其它网页中时,如果当前网页是有效层次则链接中正常包括网页根名和网页层次;如果当前网页是非有效层次的网页,即将上一层网页层次传入链接至的网页中; [0011] Step F., When the link to the current page to another page, if the current page is valid level the links normally comprises a web root name and a page level; if a non-active level of the current web page, i.e. the one page level pass the link to the web page;

[0012] 步骤G,在需要页面上合适的地方放置返回链接或按钮,返回链接为步骤c中保存的上一层的链接。 [0012] Step G, the right place to put the page on the need to return a link or button to return to the link layer link saved in step c.

[0013] 进一步的,所述页面上显示有导航,所述导航包括会话存储的各有效层次网页链接。 [0013] Further, the display on the navigation page, the page navigation links comprising an effective level of each session storage.

[0014] 进一步的,所述会话中存储有有效层次网页的标签信息,在离开当前页面进入下一个页面之前将该有效层次网页的当前标签信息存储或更新入会话中。 [0014] Further, the session information stored in the tag valid page level, leave the current page in the current page to enter a valid tag information stored in the page level or before the update session.

[0015] 进一步的,所述会话中存储有有效层次网页中的分页面的页面号,在离开当前页面进入下一个页面之前将该有效层次网页的当前分页面的页面号存储或更新入会话中。 [0015] Further, the session page number stored sub-page level valid page, in the current page to a page away from the page number memory the page currently active level division page before update into the session or .

[0016] 与现有技术相比,本发明具有如下优点和有益效果: [0016] Compared with the prior art, the present invention has the following advantages and benefits:

[0017]可以动态记录网页进入的有效层次,根据开发者的预设或用户的需求返回到相应的页面层,并维持相应的网页的数据状态。 [0017] The effective level can dynamically record the incoming web, according to a preset or user returns the developer needs to the appropriate page layer, and maintains the state data of the corresponding page. 本发明克服了传统的网页设计,只能往下点击不能返回原先状态或只能返回到上一个页面的情况,操作方便,实现效率高,资源占用少。 The present invention overcomes the traditional web design, can only return to the original state can not click down or can only return to the situation on one page, easy operation, high efficiency, occupy less resources. 本方法代码重用性好,方法通用性好,使用时只要在相应的页面的前部放入一段简单的代码, 在需要返回的地方链接相应的链接就能够实现。 This method is good code reuse method common good, as long as a simple code placed in front of the corresponding page when using, where necessary links returned the appropriate link can be achieved.

附图说明 BRIEF DESCRIPTION

[0018] 图1为本发明中会话中存储的数据结构示意图; [0018] FIG. 1 is a schematic data structure stored in the session of the present invention;

[0019] 图2为网页导航示例; [0019] Figure 2 is an example of a navigation page;

[0020] 图3为带有标签显示和小页面显示的网页示例。 [0020] FIG. 3 is an example web page and a small display with the tag display.

具体实施方式 detailed description

[0021] 以下将结合具体实施例对本发明提供的技术方案进行详细说明,应理解下述具体实施方式仅用于说明本发明而不用于限制本发明的范围。 [0021] The following embodiments in conjunction with the technical solutions of the present invention provides specific embodiments will be described in detail, it should be understood that the embodiments described below merely illustrate the invention and are not intended to limit the scope of the invention.

[0022] 本发明提供了一种网页层次记忆返回方法,基于如下网页架构,即具有一主网页, 主网页中具有多个分支,每个分支下都具有多层子网页,每个网页应具有相应的层次。 [0022] The present invention provides a method to return the page memory hierarchy, based on the page structure, i.e. having a main page, a web page having a plurality of main branches, each branch having the multilayer sub-pages, each page should have the appropriate level. 在网页打开过程中有可能从多种路径到达同一子网页,则返回时也应沿着到达的路径层层返回,因此本发明中各网页的层次动态生成。 It is possible to open the page from a plurality of process sub-paths to the same page, the layer should return back along the path to, the present invention thus dynamically generated each page level. 基于上述思路,本发明包括如下步骤: Based on the above idea, the present invention comprises the steps of:

[0023]步骤A,首先通过网页根名和层次来区分网页每个分支下的每一层,不同的网页根名即表不不同的分支,在主网页每一分支的顶层的链接中包括网页根名和网页层次,顶层页面的层次为0,并在每一层页面中定义网页根名和网页层次的变量。 [0023] Step A, to distinguish each layer of the first web page through each of the branch name and root level, i.e., different page tables that do not root name different branches, each link comprising a top web root of the branch main webpage name and web-level, top-level page is 0, and define the web root name and page-level variables in each layer of the page.

[0024] 然后,在打开各层页面时,需要获得当前网页的上一层网页的网页根名和网页层次,并在当前页面是有效层次(有效层次指的是返回时可以给用户打开的网页,网页是否为有效层次可以根据需要设定)时获得当前网页的网页层次,并在会话中新建一条数据存入当前页面的信息,如果当前页面不是有效网页,则将上一层的信息传输至当前页面的下一层页面中。 [0024] Then, when you open the layers page, you need to get the root page name and page-level layer of the current web page, and the page is valid in the current level (effective level means that the user can return to the page that opens when, web page is a valid page hierarchy level can be obtained when the current page) as needed to set, and build a new data into information for the current page in the session, if the current web page is not valid, the information will be transmitted on to the current layer page next layer page. 本发明中session为数组结构,如图1所示,其中包括了从顶层至当前层的各有效层页面的信息,以其中一层的具体信息为例,分别包括网页根名Backtype、网页层次backlevel、该网页的链接、网页名称、导航图片等。 The present invention is that the session is an array of structures, shown in Figure 1, which includes information from each active layer of the current page to the top layer, wherein the information specific to one example, each include a root name Backtype page, the page level backlevel the web link, page names, navigation pictures.

[0025] 步骤B,在进入到某一层页面时,需得到上一层网页的网页根名和网页层次的变量值,这些变量值即包含在当前网页的链接中。 [0025] Procedure B, a layer upon entering the page, the page needs to obtain the value of the variable name and the root level on page one page, i.e., variable values ​​included in the link of the current page.

[0026] 步骤C,从session (会话)取出上一层的链接,并将连接保存到backpage变量中。 [0026] Procedure C, removed from the session (sessions) on a link layer, and is connected to the backpage save variable. 具体地说,是通过上一层网页的网页根名和网页层次在session中找到对应的链接。 Specifically, through the web root level on a layer name and web pages to find the corresponding link in the session.

[0027]步骤D,如果当前网页是有效层次的网页,则得到本层层次,并将相关信息存入会话中:将前面步骤B中取到的网页层次加1,即得到了本层网页的层次; [0027] Procedure D, if the current page is a valid page level, this level of hierarchy is obtained, and the information stored in the session: the preceding Step B taken to a page-level plus 1, i.e., this layer is obtained page level;

[0028]将打开本层的网页的链接(包括网页根名和网页层次)存入会话中,即在会话数组中再增加一条记录,该记录中的变量名为网页根名加步骤D中得到的网页层次。 [0028] The open link to the page of the present layer (including web page hierarchy and root name) stored in the session, i.e., to add a record in the session array, the page record variable named root name obtained in Step D was added page level.

[0029] 步骤E,如果当前网页不是有效层次的网页,即在返回过程当中当前页面不再向用户重新展示时,则直接将步骤C获得的信息传至下一层打开的网页。 [0029] Step E, to pass information to the next level is not valid if the current web page, the current page that is not re-appear to users in the process of returning them, then directly to Step C to obtain a layer of open pages.

[0030] 步骤F,在当前网页的链接到其它网页中时,如果当前网页是有效层次则链接中正常包括网页根名和网页层次;如果当前网页是非有效层次的网页,即将上一层网页层次传入链接至的网页中。 [0030] Step F., When the link to the current page to another page, if the current page is valid level the links normally comprises a web root name and a page level; if a non-active level of the current web page, i.e. the one page level pass the link to the web page.

[0031] 步骤G,在需要页面上合适的地方放置返回链接或按钮,返回链接为步骤c中保存的变量backpage的内容。 [0031] Step G, the right place to put the page on the need to return a link or button, to save the return link in step c backpage variable content.

[0032]进一步的,还可以将会话中各条记录中的各有效层次网页链接在页面上合适的地方显示出来作为导航,这样在当前页面之前的各个有效层次页面都可以通过点击导航中的相应页面链接直接返回,导航项目的显示可以采用如图2所示的递进层次或导航图片、连接、按钮方式。 [0032] Further, also will be displayed effective level web links for each word in each record in the right on the page where the navigation, so that each effective levels of the page before the current page can by clicking on the navigation accordingly page links directly back to display navigation items can be used as shown in progressive levels or navigation images shown in Figure 2, connection, button mode.

[0033] 此外,网页还可能是多Tab (标签)的(如图3所示),因此在离开当前页面进入下一个页面之前还需要将该有效层次网页当前所在的具体Tab值存储或更新(当session数据中有默认Tab值时需要将当前网页的实际Tab值代替原有默认值)入session中该网页所属的那条记录中,在返回该页面时能够从session中取出Tab值并显示离开该页面时所处的Tab 状态。 [0033] In addition, the page may also be a multi-Tab (tag) (FIG. 3), thus leaving the current value storage Tab specific pages needed before entering the effective level of a web page is currently located or update ( when the session data has a default value Tab Tab actual value of the current page need to replace the original default values) that record the session into the page belongs, the value of Tab can be removed from the session when returning to the display page and leave Tab state when the page. 同样的,网页中还可能有分为多个小页面显示的情况存在(如图2所示),因此在在进入下一个页面之前还需要将当前有效层次网页中正在显示的页面号存储或更新(当session数据中有默认页面号时需要将当前网页的实际页面号代替原有默认值)入session 中该网页所属的那条记录中,在返回该页面时能够从session中取出页面号并显示离开该页面时所处的分页面。 Similarly, there may be case where pages are divided into a plurality of small pages displayed is present (Figure 2), thus entering a page under the page number needed before storing the currently active web page hierarchy being displayed or updated (when the session data needed to have a default page number of the current page number of the actual page instead of the original default values) that record the session into the page belongs, the page number can be removed from the session when returning to the page and displays sub-page in when leaving the page.

[0034]本发明方案所公开的技术手段不仅限于上述实施方式所公开的技术手段,还包括由以上技术特征任意组合所组成的技术方案。 [0034] The embodiment of the present invention is not limited to the techniques disclosed techniques disclosed in the above-described embodiment, further comprises the above technical features of any combination of the technical solutions. 应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明原理的前提下,还可以做出若干改进和润饰,这些改进和润饰也视为本发明的保护范围。 It should be noted, for the ordinary person skilled in the art, without departing from the principles of the invention premise, can make various improvements and modifications, improvements and modifications into the scope of the invention.

Claims (4)

  1. 1. 一种网页层次记忆返回方法,其特征在于,包括如下步骤: 步骤A,在主网页每一分支的顶层的链接中设置网页根名和网页层次,在每一层页面中定义网页根名和网页层次的变量,会话中包括从顶层至当前层的各有效层页面的信息,包括网页根名、有效网页的网页层次和链接; 步骤B,在当前网页上得到上一层的网页根名和网页层次的变量值; 步骤C,从会话中取出上一层的链接,并进行保存,取出上一层链接的方式为通过上一层网页的网页根名和网页层次从会话中取出; 步骤D,如果当前网页是有效层次的网页,则将所述步骤B中取到的上一层网页层次加1,得到本层网页的层次,将打开本层的网页的链接、网页层次存入会话中; 步骤E,如果当前网页不是有效层次的网页,则直接将步骤C获得的信息传至下一层打开的网页; 步骤F,在当前网页的链 A hierarchical memory page return method comprising the following steps: Step A, root name and web pages provided at the link level of each top branch of the main page, the web page defined root name and web pages in each layer level variables, the session includes information from each of the active layers of the page top layer to the current layer, comprising a web page hierarchy and a link to the page root name valid page; procedure B, to give a layer of the web root name and page level on the current page variable values; step C, and removed from the session layer of the links, and save, remove the upper layer is removed from the linked manner by the session name and web page root level on one page; Procedure D, if the current level web page is valid, then the step B to take on one page plus one level, the level of this layer to obtain the page, the page will open the link layer is present, the page stored in the session level; step E , the transmitted information is not valid if the current web page level, directly obtained in step C a layer of open pages; step F, a current page chain 到其它网页中时,如果当前网页是有效层次则链接中正常包括网页根名和网页层次;如果当前网页是非有效层次的网页,即将上一层网页层次传入链接至的网页中; 步骤G,在需要页面上合适的地方放置返回链接或按钮,返回链接为步骤C中保存的上一层的链接。 To the other page, if the current page is valid then the link level normally comprises web page hierarchy and the root name; non-active level if the current web page, i.e. the page on one level of the incoming links to a web page; Step G, in the right place to put the return link or button on the back link is a link layer saved in step C on page needs.
  2. 2. 根据权利要求1所述的网页层次记忆返回方法,其特征在于:所述页面上显示有导航,所述导航包括会话存储的各有效层次网页链接。 2. The page memory hierarchy according to claim 1 to return, characterized in that: said navigation display, a navigation hierarchy comprising active web page links from the page memory for each session.
  3. 3. 根据权利要求1或2所述的网页层次记忆返回方法,其特征在于:所述会话中存储有有效层次网页的标签信息,在离开当前页面进入下一个页面之前将该有效层次网页的当前标签信息存储或更新入会话中。 3. The method returns the page memory hierarchy of claim 1 or claim 2, wherein: said label stored in the session information is valid page level, at the current page to a page away from the page before the current active level updating the tag information storage or session.
  4. 4. 根据权利要求1或2所述的网页层次记忆返回方法,其特征在于:所述会话中存储有有效层次网页中的分页面的页面号,在离开当前页面进入下一个页面之前将该有效层次网页的当前分页面的页面号存储或更新入会话中。 4. Return the page-level memory method of claim 1 or claim 2, wherein: the session page number stored sub-page level valid page, a page before the effective in the current page into the leaving the current level of sub-page web page or update number is stored into the session.
CN 201510037421 2015-01-26 2015-01-26 One kind of page-level memory method returns CN104615697B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201510037421 CN104615697B (en) 2015-01-26 2015-01-26 One kind of page-level memory method returns

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201510037421 CN104615697B (en) 2015-01-26 2015-01-26 One kind of page-level memory method returns

Publications (2)

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

Family

ID=53150139

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201510037421 CN104615697B (en) 2015-01-26 2015-01-26 One kind of page-level memory method returns

Country Status (1)

Country Link
CN (1) CN104615697B (en)

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

Also Published As

Publication number Publication date Type
CN104615697A (en) 2015-05-13 application

Similar Documents

Publication Publication Date Title
US20110055314A1 (en) Page rendering for dynamic web pages
US20100005443A1 (en) System and Methods to Create a Multi-Tenancy Software as a Service Application
US20120137235A1 (en) Dynamic user interface generation
US20100017696A1 (en) Intelligent Preloads of Views and Asynchronous Loading of Models Using the MVC Design Pattern
US20080195954A1 (en) Delivery of contextually relevant web data
US20020104023A1 (en) System and method for using dynamic web components to remotely control the security state of web pages
US20090271690A1 (en) Handling cross-domain web service calls
US20080177883A1 (en) Web server for managing session and method thereof
US20100235430A1 (en) Methods and systems to provide services to a mobile device
US20100125541A1 (en) Popup window for error correction
US20120110437A1 (en) Style and layout caching of web content
CN101079041A (en) Dynamic web page updating method and system
US20120096429A1 (en) Wiring web widgets of a web mashup
US20130073536A1 (en) Indexing of urls with fragments
US7870482B2 (en) Web browser extension for simplified utilization of web services
CN102325191A (en) Fully automatic treatment method and frame without page refresh
CN102027454A (en) Multi-process browser architecture
US20070204216A1 (en) System and method for creating layouts using a layout editor
CN1783079A (en) Method of displaying data of a client computer
US8626865B1 (en) Shared worker application
CN102185901A (en) Client message conversion method
US20100306366A1 (en) System for enabling rich network applications
US20100100866A1 (en) Intelligent Shared Virtual Whiteboard For Use With Representational Modeling Languages
US7757177B1 (en) Virtual forms
US20140157106A1 (en) Dynamic building of a web page from widgets and resources specified in a uniform resource locator (url)

Legal Events

Date Code Title Description
C06 Publication
C10 Entry into substantive examination
GR01