CN101572727B - Method for controlling Web page menu and device thereof - Google Patents

Method for controlling Web page menu and device thereof Download PDF

Info

Publication number
CN101572727B
CN101572727B CN200910147671XA CN200910147671A CN101572727B CN 101572727 B CN101572727 B CN 101572727B CN 200910147671X A CN200910147671X A CN 200910147671XA CN 200910147671 A CN200910147671 A CN 200910147671A CN 101572727 B CN101572727 B CN 101572727B
Authority
CN
China
Prior art keywords
menu
state
menus
dependence
web server
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
Application number
CN200910147671XA
Other languages
Chinese (zh)
Other versions
CN101572727A (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.)
New H3C Technologies Co Ltd
Original Assignee
Hangzhou H3C Technologies Co Ltd
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 Hangzhou H3C Technologies Co Ltd filed Critical Hangzhou H3C Technologies Co Ltd
Priority to CN200910147671XA priority Critical patent/CN101572727B/en
Publication of CN101572727A publication Critical patent/CN101572727A/en
Application granted granted Critical
Publication of CN101572727B publication Critical patent/CN101572727B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a method for controlling a Web page menu and a device thereof. The method comprises the following steps: a Web server receives a Web page menu operation request sent by a client browser, wherein, the menu operation request carries a menu identification of a menu requested by the client browser for operation; the Web server inquires a dependency relationship between the menuand other menus according to the menu identification, and acquires a menu state according to the dependency relationship; and the Web server generates a new Web page according to the menu state, and sends the new Web page to the client browser. In the method, the Web server inquires a corresponding menu state after receiving the menu operation request sent by the client browser, sends the new Webpage to the client browser according to inquiry results, and flexibly determines whether other operations can be executed while a certain operation is executed on the Web page, thus improving the uti lization rate of network resources.

Description

A kind of Web page menus control method and device
Technical field
The present invention relates to the communications field, relate in particular to a kind of Web page menus control method and device.
Background technology
Webmastering software to developing based on Web (network) mode, develop the network management based on Web as an emphasis direction that attracts client by increasing networking products production commercial city at present.The basic goal of Web webmaster be realize the keeper through with Web page alternant way, reach purpose to Equipment Control and Stateful Inspection.The basic composition of Web network management system comprises: one group of Web page is used for showing network management information and accepting keeper's operation through Web browser; A Web server of in equipment, realizing is used to provide webmaster devices needed information; A communication protocol is used to transmit interaction data.
When Fig. 1 uses the network management based on Web for the user; The request of user interface, response contents generate and respond schematic flow sheet; Wherein, User interface is a Web server to HTML (HyperText Mark-up Language, the HTML) page of can revising of providing of user or configuration server parameter.When the user uses based on the network management of Web; Input server address URL (Uniform Resource Locator in Web browser; URL) after access server, server receive the access request of browser transmission, dynamically generating user interfaces; Then, server connects through TCP (Transfer Control Protocol, transmission control protocol) will represent that the message of user interface sends to the browser of client, and client browser generates user interface according to the message that receives.The user is being provided with or is revising the parameter on the user interface on the browser.The Web page will be provided with or amended parameter sends to server, and server receives the parameter that the user is provided with or revises, in the parameter of server internal record user setting or modification.
Need observe HTTP (Hypertext Transfer Protocol, HTTP) agreement based on the network management of Web.HTTP is a kind of connectionless protocol; Follow request/answer model; Do not set up lasting being connected between the browser of client and the Web server; But come independently message of back: the browser of client sends the HTTP request to Web server, and Web server is handled the HTTP request and returned suitable reply data, and all HTTP connections all are constructed to a cover request and reply.Http protocol requires all requests all to initiate from the browser of client, when the browser of client need be visited certain user interface, at first sends the HTTP request to Web server; After Web server is received this HTTP request, this HTTP request is handled, dynamically generated the user interface of html format according to process result; Web server will represent that then receiveing the response of user interface feeds back to client browser, and browser is receiveed the response according to this and on screen, shown corresponding user interfaces.
In the prior art, the user is to realize through menu or the button clicked on the user interface in the various operations to Web server on the browser.Menu and button are to carry out mutual important channel between browser equipment and the Web server, also are the mutual sole modes of user and Network Management Equipment.
The operation that the user carries out Web server through menu or button relates to the content of every aspect, and a lot of operations all have mutual dependence.For example, the user through the alternate device of a network of menu setting, need at first specify the IP address of this alternate device, respective operations " Setup SecondaryDevice Parameters (setting up the alternate device parameter) " on the Web page; The Web page sends to server with this IP address, this IP address of server for saving; The user is provided with backup operation " SetupReplication Device " on the Web page then; After backup operation, can also carry out " Check Replication Device " operation the backup setting result is checked; If find that backup result is incorrect, can adopt " ClearReplication Error " to remove mistake.
In the process of practical application, the operation that the user carries out server on the Web page all is very important operation usually, for the success rate that guarantees to operate; When carrying out these operations; The user can not he operate in the enterprising Xingqi of the Web page, therefore, and in this case; Related menu on the Web page just need lock the user, makes the user can not carry out corresponding operation.
Prior art adopts the mode of progress bar that the operation of user on the Web page locked; Promptly when clicking an important operation; The Web page can eject a progress page; Point out the user to operate with the mode of progress bar and carry out, and all operations on the locking current Web page, all menus on the current Web page all are in enabled; Even do not have the menu operation of influence also can't carry out, get on to check and the irrelevant content of current operation such as jumping to other professional pages for current operation.When the user after the EO on the Web page, progress bar disappears, the operation on the release Web page, the menu on the Web page can be used.
In the prior art; The user is in order to be locked carry out the back does not have influence to current operation menu operation at the Web page; Need " retreating " button on the click browser that the progress bar page is disappeared, the user can he operate in the enterprising Xingqi of the Web page then, still; This settling mode can affect to ongoing operation on the Web page, even causes this operation failure.
Based on above-mentioned analysis, the inventor thinks and has following problems in the prior art at least:
After adopting the progress bar page locking Web page, other do not have the operation of influence can't carry out to current operation yet on this Web page, and the service efficiency of Internet resources is low; If " retreating " button that the user clicks on the IE browser disappears the progress bar page, and then he operates in the enterprising Xingqi of the Web page, then can cause user's ongoing operation to be affected even to fail.
Summary of the invention
The invention provides a kind of Web page menus control method and device; When passing through Web page management Web server with the realization user; Both can guarantee the fail safe of the current operation of user, the operation that the user is carried out current device is being carried out is other operations of influence not.
The invention provides a kind of Web page menus control method, comprising:
Web server receives the menu operation request of the Web page of client browser transmission, carries the menu sign of the menu of said client browser requests operation in the said menu operation request;
Said Web server identifies the dependence of inquiring about said menu and other menus according to said menu, and obtains the state of said menu according to said dependence;
Said Web server generates the new Web page according to the state of said menu, and the said new Web page is sent to said client browser.
The dependence of said menu and other menus comprises not to be had dependence, rely on certainly and relies on outward; Wherein
Said nothing relies on the state that the state of representing said menu does not rely on other any menus;
The said state that depends on said menu self from the state that relies on the said menu of expression;
The said outer state that relies on the said menu of expression depends on the state of the menu beyond the said menu.
Said Web server is according to the dependence of the said menu sign said menu of inquiry and other menus, and comprises according to the state that said dependence is obtained said menu:
Said Web server relies on table according to the pre-configured menu of said menu sign inquiry, obtain the menu sign that has other menus of dependence with said menu according to Query Result, and said menu is to the dependence of the state of said other menus;
Said Web server obtains the state of said other menus according to the pre-configured menu properties table of menu sign inquiry of said other menus according to Query Result;
Said Web server to the dependence of the state of said other menus and the state of said other menus, obtains the state of said menu according to said menu.
Said menu is specially the said menu state that other menus need satisfy when being in enabled to the dependence of the state of said other menus, and the state of menu comprises and enables, goes to enable and use;
To the dependence of the state of said other menus and the state of said other menus, the state that obtains said menu comprises said Web server according to said menu:
When the state of said other menus satisfied requiring of said dependence, said Web server judged that the state of said menu is for enabling;
When the state of said other menus did not satisfy requiring of said dependence, the state that said Web server is judged said menu was in going to enable or using.
To the dependence of the state of said other menus and the state of said other menus, the state that obtains said menu also comprises afterwards said Web server according to said menu:
Said Web server is identified at the attribute that upgrades said menu in the said menu properties table according to the state of the said menu that obtains and the menu of said menu.
Said Web server generates the new Web page according to the state of said menu, and the said new Web page is specially to said client browser transmission:
Said Web server sends to said client browser and generates the new needed information of the Web page, makes said client browser generate the new Web page according to said information.
Said menu operation request is specially fixedly the operation requests of menu or the operation requests of pop-up menu;
Carry the menu sign of said fixedly menu in the operation requests of said fixedly menu; Carry the menu sign of all menus in the said pop-up menu in the operation requests of said pop-up menu.
The present invention provides a kind of Web server, comprising:
The request receiving element is used to receive the menu operation request of the Web page that client browser sends, the menu sign of carrying the menu of said client browser requests operation in the said menu operation request;
The status poll unit is connected with the described request receiving element, and the menu that is used for receiving according to the described request receiving element identifies the dependence of the said menu of inquiry and other menus, and obtains the state of said menu according to said dependence;
Page transmitting element is connected with said status poll unit, and the state of the menu that is used for obtaining according to said status poll unit generates the new Web page, and the said new Web page is sent to said client browser.
Said status poll unit comprises:
Dependence inquiry subelement; Be used for according to the pre-configured menu dependence table of said menu sign inquiry; Obtain the menu sign that has other menus of dependence with said menu according to Query Result, and said menu is to the dependence of the state of said other menus;
The attribute query subelement is connected with said dependence inquiry subelement, is used for the pre-configured menu properties table of menu sign inquiry according to said other menus, obtains the state of said other menus according to Query Result;
State obtains subelement, is connected with said attribute query subelement, is used for according to said menu the dependence of the state of said other menus and the state of said other menus are obtained the state of said menu.
Said menu is specially the said menu state that other menus need satisfy when being in enabled to the dependence of the state of said other menus, and the state of menu comprises and enables, goes to enable and use;
Said state obtains subelement and specifically is used for:
When the state of said other menus satisfied requiring of said dependence, the state of judging said menu was for enabling;
When the state of said other menus did not satisfy requiring of said dependence, the state of judging said menu was in going to enable or using.
Server provided by the invention also comprises:
The attribute updating block is connected with said status poll unit, and the state of the said menu that is used for obtaining according to said status poll unit and the menu of said menu are identified at the attribute that said menu properties table upgrades said menu.
Server provided by the invention; Said page transmitting element specifically is used for sending the new needed information of the Web page of generation according to the Query Result of said status poll unit to said client browser, makes said client browser generate the new Web page according to said information.
Compared with prior art, the present invention has the following advantages at least:
After Web server receives the menu operation request of client browser transmission; State according to the menu sign inquiry menu that carries in this menu operation request; The state of the menu that obtains according to inquiry generates the new Web page, and the new Web page is sent to client browser, thereby can confirm flexibly when carrying out a certain operation on the Web page; Whether can carry out other operations, improve utilization rate of network resource.
Description of drawings
Fig. 1 is that the request of user interface, response contents generated and respond schematic flow sheet when the user used the network management based on Web in the prior art;
Fig. 2 is the schematic flow sheet of Web page menus control method provided by the invention;
Fig. 3 is to be the schematic flow sheet of the Web page menus control method that provides of example with fixing menu in the application scenarios of the present invention;
Fig. 4 is that Web server identifies according to the menu of fixing menu and obtains this fixedly schematic flow sheet of the state of menu among the present invention;
Fig. 5 is in the application scenarios of the present invention to be the schematic flow sheet of the Web page menus control method that provides of example with the pop-up menu;
Fig. 6 is the structural representation of the Web server that provides among the present invention.
Embodiment
Core concept of the present invention is: the state of all menus on the Web server management Web page; When the user carried out the menu operation request on the Web page, the Web page sent query requests to Web server, and the state of the menu that inquiry is corresponding carries the menu sign in this query requests; Web server obtains corresponding menu state according to the menu sign, if this menu state for enabling, then can be operated this menu on the Web page; If this menu state enables for going, then can not operate this menu.
The present invention provides a kind of Web page menus control method, and is as shown in Figure 2, comprising:
Step s201, Web server receive the menu operation request of the Web page of client browser transmission, carry the menu sign of the menu of said client browser requests operation in the said menu operation request;
Step s202, said Web server identifies the dependence of inquiring about said menu and other menus according to said menu, and obtains the state of said menu according to said dependence;
Step s203, said Web server generates the new Web page according to the state of said menu, and the said new Web page is sent to said client browser.
In Web page menus control method provided by the invention, the form of expression of menu on the Web page has two kinds: fixedly menu and pop-up menu.Fixedly menu generally all is user's most common operation, and pop-up menu is the user when clicking certain link or the menu list that ejects during right mouse button, generally includes a plurality of menus in the pop-up menu.
Further, fixedly menu and pop-up menu have three state: in enabling, go to enable and using.When fixedly menu or pop-up menu were in " enabling " state, the user can carry out corresponding bookkeeping to the configuration of Web server through fixedly menu or the pop-up menu of clicking on the Web page; When fixedly menu or pop-up menu are in the state of " going to enable "; The user can't click fixedly menu or pop-up menu on the Web page; Perhaps the user clicks this fixedly behind menu or the pop-up menu, on the Web page, ejects this menu of prompt window prompting user and can't use at present; When fixedly menu or pop-up menu are in the state of " in the use "; The user is after clicking fixedly menu or pop-up menu on the Web page; On the Web page, eject this menu of prompt window prompting user and used at present, temporarily can't use by other users.
In order to understand the present invention better; In following application scenarios; With being that example is introduced Web page menus control method provided by the invention with fixedly menu on the Web page and pop-up menu respectively; Be that example is introduced Web page menus control method provided by the invention at first with fixing menu, as shown in Figure 3, may further comprise the steps:
Step s301, user are through client browser accessing Web services device, and request obtains the Web page of management Web server.
Concrete; The user imports Web server Address requests accessing Web services device in client browser after; Web server receives the access request that client browser sends; Answer to the client browser request of sending according to http protocol, carry the needed information of the Web page that generates during this request is answered.Client browser generates the Web page of managing Web server according to the message that receives, and has a series of menus relevant with the configuration of Web server on this Web page, comprises fixedly menu or pop-up menu.Menu state on this Web page is pre-configured by Web server, and for example the menu on the Web page can be preconfigured to by Web server and enable or go enabled.
Step s302, user click fixedly menu on the Web page.
The user clicks corresponding fixedly menu as required through after obtaining the Web page in client browser input Web server address on this Web page.
Step s303, the fixedly menu that client browser is clicked according to the user, reception user's operation requests is sent this operation requests to Web server.
Transmission Control Protocol is followed in being connected between client browser and the Web server; Client browser detects the user when having clicked fixedly menu; Receive user's operation requests; According to the message of this operation requests generation Transmission Control Protocol form, the menu sign of carrying the fixedly menu of user's click in this message.Client browser sends the message that this menu that carries the fixedly menu of user's click identifies to Web server.
Step s304, Web server receive the message that client browser sends, according in this message fixedly the menu of menu identify this fixedly state of menu that obtains.
Among the present invention, Web server can rely on the state storage of each menu in table and the menu properties table at pre-configured menu.When needs obtained the state of fixing menu, Web server was inquired about above-mentioned pre-configured menu dependence table and menu properties table.Wherein, an instance of the structure of menu dependence table is as shown in table 1, comprising:
Table 1 menu relies on the structure of table
Title Implication
ID The menu sign
TYPE Rely on type, span 0: do not have dependence, 1: rely on 2 certainly: the outer dependence
RELY_ID The menu ID that relies on
RELY_STATUS The state of the menu that relies on.1: " enabling " state that relies on the other side;-1: " going to enable " state that relies on the other side; 0: " in the use " state that relies on the other side
ID (Identification, menu sign) is used for unique sign menu, the unique menu of correspondence of each menu sign, and Web server is confirmed different menus according to the menu sign;
TYPE (type) is used in reference to out the dependence type of menu, and promptly this menu is in enabled and whether need relies on other menus, and the value of TYPE gets 0,1 or 2; Wherein 0 expression does not have dependence, and 1 expression relies on outside 2 expressions from relying on; Several kinds that introduce in detail below between the menu rely on type:
Do not have and rely on: the enabled of representing this menu does not rely on other any menus, and the state of other any menus does not influence its state;
From dependence: represent that the enabled of this menu relies on the state of self; Promptly this menu can only be used by a user simultaneously, if this user does not finish the operation of this menu, just the state of this menu is in using the time, and other user can not operate Web server through clicking this menu;
The outer dependence: represent that the enabled of this menu relies on the state of other menus; For example, if the enabled of A menu depends on the enabled of going of B menu and C menu, when then having only B menu and C menu to be in enabled simultaneously, the A menu just is in enabled.For the ease of distinguishing the dependence between the menu, should use in the scene, B and C menu are called by the dependence menu; From the dependence situation, menu itself is relied on menu for above-mentioned.
In addition, also comprise in the menu dependence table:
RELY_STATUS, when the expression menu is in enabled, the state that is relied on menu that needs; Shown in the associative list 1, if the value of RELY_STATUS is 1, represent that then the enabled of this menu depends on the enabled that is relied on menu, if the state that is relied on menu is not for enabling, then the state of this menu is not for enabling.For example; The dependence menu of A menu is B menu and C menu, and the enabled of A menu depends on the enabled of B menu and C menu, if then the user clicks moment of A menu; In B menu or the C menu one or two are not in enabled, and then the state of A menu is not for enabling.
In order to obtain the value of RELY_STATUS in the menu dependence table, promptly in order to obtain the state that is relied on menu, Web server also need be inquired about the menu properties table, and is as shown in table 2:
The structure of table 2 menu properties table
Title Implication
ID The menu sign
STATUS The state of menu.1: " enabling " state;-1: " going to enable " state; 0: " in the use " state
Comprise in the menu properties table:
ID is used for confirming uniquely menu;
STATUS is used to write down the state information of the corresponding menu of above-mentioned ID, wherein, and 1 expression " enabling " state;-1 expression " going to enable " state; 0 expression " in the use " state.
Menu shown in the Web server look-up table 1 relies on table; Obtain RELY_ID; In the menu properties table shown in the table 2, search the state that is relied on menu according to RELY_ID; And then according to this state and the RELY_STATUS in the table 1 of being relied on menu of searching acquisition, whether the menu of judges click is in enabled.
Concrete, should use among the above-mentioned steps s304 of scene, the Web server basis fixedly menu sign of menu is searched menu dependence table and menu properties table, obtains this fixedly state of menu, and is as shown in Figure 4, can may further comprise the steps:
Step s3041, the Web server basis fixedly menu sign of menu is searched menu dependence table, obtains the fixedly dependence type TYPE of menu.
If fixedly the TYPE of menu is 0; Represent this fixedly the dependence type of menu for do not have relying on; Promptly the enabled of this menu does not rely on the state of other any menus, does not rely on the fixedly state of menu self yet, Web server can directly judge this fixedly the state of menu for enabling; If should be fixedly the TYPE of menu be 1 or 2, represent this fixedly the dependence type of menu for from relying on or outer dependence execution in step s3042; In this step, fixedly the TYPE of menu is 1 or 2 o'clock, and Web server is also inquired about the RELY_STATUS in the menu dependence table, obtains the state that is relied on menu that fixing menu relies on.
For example, when the user clicked fixedly menu A on the Web page, Web server was searched menu dependence table according to the fixing sign 001 of menu A, and the dependence of obtaining fixing menu A is as shown in table 3:
Table 3 is the dependence of menu A fixedly
ID 001
TYPE 1
RELY_ID 002,003
RELY_STATUS 002-1,003-0
Web server relies on table through the inquiry menu, according to the RELY_ID in the menu dependence table know fixing menu A by the dependence menu be designated 002 and 003, wherein, it is the B menu that menu is designated 002 menu, it is the C menu that menu is designated 003 menu; Rely on the RELY_STATUS in the table according to menu, fixedly the enabled of menu A depends on menu B and is in enabled, and the while, menu C was in use state.In order to judge whether satisfied fixedly menu A is the condition of enabled for menu B and menu C, and Web server needs execution in step s3042, inquires about the menu properties table, obtains the state of menu B and menu C.
Step s3042, Web server inquiry menu properties table obtains the fixedly state that is relied on menu of menu.
More than fixedly menu A in the step be example; In a last step; Web server through inquiry fixedly the menu of menu A rely on table, obtain fixedly being identified of menu A, and fixedly menu A is in menu B that enabled need rely on and the state of menu C by the menu of dependence menu B and C; In this step, Web server obtains the state of menu B and menu C according to the sign inquiry menu properties table of menu B and menu C, and is as shown in table 4:
The state of menu B and C in the table 4 menu properties table
ID 002 003
STATUS 1 0
Web server inquiry menu properties table, according to the menu sign inquiry menu B of menu B and menu C and the state of menu C, the state that obtains menu B is 1, and promptly menu B is in enabled, and the state of menu C is 0, and promptly menu C is in use state.
Certainly, during Web server inquiry menu properties table, menu B that obtains and the state of menu C also can be inconsistent, as shown in table 5 with the state of menu B among above-mentioned table 3 RELY_STATUS and menu C:
The operating state of menu B and C in the table 5 menu properties table
ID 002 003
STATUS 0 0
Wherein, the operating state of menu B is 0, and is inconsistent with the operating state of menu B among table 3 RELY_STATUS.
Step s3043, Web server is judged the fixedly operating state of menu according to the state that is relied on menu of the fixedly menu that obtains.
Concrete; Confirm that with Web server the state of said fixing menu A is an example; If menu B that writes down among the RELY_STATUS of state that is relied on menu B and C that inquiry obtains among the step s3042 and table 3 and the state consistency of menu C, then the Web server judgement fixedly the state of menu A for enabling; Otherwise if the state of menu B that writes down among the RELY_STATUS of state that is relied on menu B and C that the Web server inquiry obtains and table 3 and menu C is inconsistent, then Web server judges that fixedly the state of menu A enables for going.
Should use in the scene, if the dependence type that Web server obtains fixing menu A among the step s3041 according to the menu sign inquiry of fixing menu A for from dependence, promptly the while can only have a user can use fixedly menu A, and is as shown in table 6:
Table 6 is the dependence of menu A fixedly
ID 001
TYPE 1
RELY_ID 001
RELY_STATUS 001-1
At this moment, fixedly the enabled of menu A depends on the enabled of himself, and Web server is according to the menu sign inquiry menu properties table of fixing menu A, and the acquisition fixedly state of menu A is as shown in table 7:
The state of menu A in the table 7 menu properties table
ID 001
STATUS 0
Web server inquiry menu properties table obtains the state of menu A in using, and is different with the state of recording menu A among the table 6RELY_STATUS, and Web server judges that the state of fixing menu A is in the use.Enable for going if Web server inquiry menu properties table obtains the state of menu A, then Web server judges that the state of menu A enables for going.
Should use in the scene, menu shown in the table 1 relies in the structure of table, the value of TYPE item can also for:
0: do not have dependence, 1: rely on; Wherein, rely on the state of representing this menu and depend on the state of self or the state of other menus; Do not have the state that relies on this menu of expression and do not rely on and other any menus, comprise the state of this menu self.
Web server inquiry menu relies on when showing, and knows that fixedly the dependence type of menu A is 1, and the further acquisition state that fixedly menu that is relied on menu of menu A identifies and quilt dependence menu need satisfy; Then, Web server identifies inquiry menu properties table according to the menu that is relied on menu, judges the state condition whether satisfied fixedly menu A enables that is relied on menu; If satisfy; Then Web server judges that fixedly menu A enables, otherwise Web server judges that fixedly menu A goes to enable; Promptly Web server only enabled and went to enable two kinds for the judgement of menu state this moment.
Step s305, Web server receives the operation requests that client browser sends, and answers to the client browser request of sending, and carries the new needed information of the Web page that generates during this request is answered; After client browser receives the request answer of Web server transmission, generate the new Web page according to the information of carrying in this request answer, so that the user proceeds operation on the new Web page.
Wherein, The state of the fixedly menu of clicking when the Web server judges is when enabling; Web server sends first kind of request to client browser and answers, and client browser is answered the new Web page that generates according to this first kind request can be the redirect of the original Web page, perhaps on the basis of the original Web page, increases drop-down menu etc.; For example: if user's requested operation is for revising the IP address of alternate device; The menu that the user clicks on the Web page is " new IP address ", then on the new Web page, can increase drop-down menu, and comprising in this drop-down menu can be by the IP address option of user's selection;
The state of the fixedly menu of clicking when the Web server judges is when going to enable; Web server sends second kind of request to client browser and answers; It is prompt window that client browser is answered the new Web page that generates according to this second kind request; The prompting user fixedly state of menu enables for going, and this moment is menu fixedly;
In addition; When the state of the fixedly menu that the Web server judges is clicked in using the time; Web server sends the third request answer to client browser, and it is prompt window that client browser is answered the new Web page that generates according to this third request, and the prompting user fixedly state of menu is in using; Fixedly menu is used by other users, temporarily can not be used by this user.
Should use in the scene, if table 1 menu relies in the structure of table, the value of TYPE item has only 0: do not have dependence and 1: rely on; Web server is judged the state of fixing menu and is only enabled or go to enable; At this moment, Web server only sends preceding two kinds of requests to client browser and answers, and is corresponding; On the client browser or generate the new Web webpage that the user carries out next step operation, perhaps eject prompt window prompting user fixedly menu can not be used.
Step s306, Web server upgrade in the menu properties table the fixedly attribute of menu.
Concrete; Web server according among the step s304 to the fixing judged result of the state of menu; Whether decision upgrades the fixedly attribute of menu in the menu properties table: if the Web server judgement fixedly the user mode of menu for enabling, then the user to this fixedly menu operate, this fixedly the state of menu should be updated in the use; Therefore, Web server in menu properties fixedly the attribute of menu be updated in the use; If the user mode that Web server is judged fixing menu is in going to enable or using, then the user can not to this fixedly menu operate, Web server need not upgrade this fixedly attribute of menu in the menu properties table.
Be that example is introduced webmaster Web page menus control method provided by the invention with fixing menu in the foregoing description; Below be that example is further introduced method provided by the invention with the pop-up menu; As shown in Figure 5, webmaster Web page menus control method provided by the invention may further comprise the steps:
Step s501, client browser receive the request of user to pop-up menu, should ask to send to Web server.
Pop-up menu is the menu list that the user ejects when clicking certain link, is made up of a plurality of menus usually.The user clicks the inlet of pop-up menu on the Web page; Comprise the one or more fixedly menus on the Web page; Perhaps right mouse button; Client browser receives the request of user to pop-up menu, should ask to the Web server transmission, comprises in this request that the menu of all menus in the menu list of pop-up menu identifies.Menu sign included in the menu list of pop-up menu is provided with in client browser in advance.
Step s502, Web server receives the request that client browser sends, according to the state of menu in the menu list of the menu sign inquiry pop-up menu in this request.
Concrete, Web server is inquired about the state of each menu in the menu list one by one, if the state of the menu in the menu list enables for going, then Web server is done the gray scale processing to this menu, makes this menu can not be by normal click; If the state of the menu in the menu list is for enabling, this menu is shown and can be by normal click by normal; When the state of all menus all behind the poll-final, Web server generates pop-up menu, the menu of handling comprising gray scale.
Step s503, Web server is answered to the client browser request of sending, and carries the information that pop-up menu needs that generates during this request is answered, after client browser receives and should request answers, according to information generation pop-up menu wherein.
The information of the menu state that step s504, Web server obtain according to inquiry generates corresponding pop-up menu.In this pop-up menu, Web server is that the menu gray scale that enables is handled according to the menu state that obtains with state; Web server is that the menu that enables normally shows according to the menu state that obtains to state; Web server will represent that the information of this pop-up menu sends to client router, and client router receives this information, generates corresponding pop-up menu.
Step s505, client browser receive the operation requests of user to the menu in this pop-up menu, and this operation requests is sent to Web server, and the state of this menu of Web server inquiry is further handled according to the state of this menu accordingly.
Wherein, the state of this menu of Web server inquiry and the process of handling accordingly according to the state of this menu, existing introduction is in detail repeated no more at this in above-mentioned steps s304-step s306.
The said method that the application of the invention provides; After Web server received the menu operation request that client browser sends, according to the state of the menu sign inquiry menu that carries in this menu operation request, the state of the menu that obtains according to inquiry generated the new Web page; And the new Web page sent to client browser; Thereby can confirm when carrying out a certain operation on the Web page, whether can carry out other operations flexibly, improve utilization rate of network resource.
The present invention also provides a kind of Web server of using said method, and is as shown in Figure 6, comprising:
Request receiving element 11 is used to receive the menu operation request of the Web page that client browser sends, the menu sign of carrying the menu of said client browser requests operation in the said menu operation request; Said menu comprises fixedly menu and pop-up menu, fixedly carries the menu sign of said fixedly menu in the menu operation request of menu; Carry the menu sign of all menus in the said pop-up menu in the operation requests of pop-up menu, this menu sign is arranged on client browser in advance.This request receiving element 11 can also provide the function of configuration Web page initial menu state; Concrete; This unit can be connected with the functional module that Web server is used to dispose Web page initial menu state, perhaps is connected with other devices with configuration Web page menus initial condition.
Status poll unit 12 is connected with described request receiving element 11, is used for identifying according to the menu that described request receiving element 11 receives the dependence of the said menu of inquiry and other menus, and obtains the state of said menu according to said dependence.The dependence of said menu and other menus comprises not to be had dependence, rely on certainly and relies on outward; Wherein, said nothing relies on the state that the state of representing said menu does not rely on other any menus; The said state that depends on said menu self from the state that relies on the said menu of expression; The said outer state that relies on the said menu of expression depends on the state of the menu beyond the said menu.
This status poll unit 12 further comprises:
Dependence inquiry subelement 121; Be used for according to the pre-configured menu dependence table of said menu sign inquiry; Obtain the menu sign that has other menus of dependence with said menu according to Query Result, and said menu is to the dependence of the state of said other menus; Wherein, the menu dependence table of storing in this subelement is as shown in table 1, at this repeated description no longer.
Attribute query subelement 122 is connected with said dependence inquiry subelement 121, is used for the pre-configured menu properties table of menu sign inquiry according to said other menus, obtains the state of said other menus according to Query Result; Wherein, the menu properties table of storing in this subelement is as shown in table 2, at this repeated description no longer.
State obtains subelement 123, is connected with said attribute query subelement 122, is used for according to said menu the dependence of the state of said other menus and the state of said other menus are obtained the state of said menu; Wherein, said menu is specially the said menu state that other menus need satisfy when being in enabled to the dependence of the state of said other menus, and the state of menu comprises and enables, goes to enable and use; Said state obtains subelement 123 and specifically is used for: when the state of said other menus satisfied requiring of said dependence, the state of judging said menu was for enabling; When the state of said other menus did not satisfy requiring of said dependence, the state of judging said menu was in going to enable or using.
Page transmitting element 13 is connected with said status poll unit 12, and the state of the menu that is used for obtaining according to said status poll unit 12 generates the new Web page, and the said new Web page is sent to said client browser.Concrete, page transmitting element 13 sends the new needed information of the Web page of generation according to the Query Result of said status poll unit 12 to said client browser, makes said client browser generate the new Web page according to said information.
Can also comprise in the Web server provided by the invention:
Attribute updating block 14 is connected with said status poll unit 12, and the state of the said menu that is used for obtaining according to said status poll unit 12 and the menu of said menu are identified at the attribute that said menu properties table upgrades said menu.
The above-mentioned Web server that the application of the invention provides; After Web server received the menu operation request that client browser sends, according to the state of the menu sign inquiry menu that carries in this menu operation request, the state of the menu that obtains according to inquiry generated the new Web page; And the new Web page sent to client browser; Thereby can confirm when carrying out a certain operation on the Web page, whether can carry out other operations flexibly, improve utilization rate of network resource.
Through the description of above execution mode, those skilled in the art can be well understood to the present invention and can realize by the mode that software adds essential general hardware platform, can certainly pass through hardware, but the former is better execution mode under a lot of situation.Based on such understanding; The part that technical scheme of the present invention contributes to prior art in essence in other words can be come out with the embodied of software product; This computer software product is stored in the storage medium; Comprise some instructions with so that computer equipment (can be personal computer, server, the perhaps network equipment etc.) carry out the described method of each embodiment of the present invention.
It will be appreciated by those skilled in the art that accompanying drawing is the sketch map of a preferred embodiment, module in the accompanying drawing or flow process might not be that embodiment of the present invention is necessary.
It will be appreciated by those skilled in the art that the module in the device among the embodiment can be distributed in the device of embodiment according to the embodiment description, also can carry out respective change and be arranged in the one or more devices that are different from present embodiment.The module of the foregoing description can be merged into a module, also can further split into a plurality of submodules.
The invention described above embodiment sequence number is not represented the quality of embodiment just to description.
More than disclosedly be merely several specific embodiment of the present invention, still, the present invention is not limited thereto, any those skilled in the art can think variation all should fall into protection scope of the present invention.

Claims (12)

1. a Web page menus control method is characterized in that, comprising:
Web server receives the menu operation request of the Web page of client browser transmission, carries the menu sign of the menu of said client browser requests operation in the said menu operation request;
Said Web server identifies the dependence of inquiring about said menu and other menus according to said menu, and obtains the state of said menu according to said dependence;
Said Web server generates the new Web page according to the state of said menu, and the said new Web page is sent to said client browser.
2. the method for claim 1 is characterized in that, the dependence of said menu and other menus comprises not to be had dependence, rely on certainly and rely on outward; Wherein
Said nothing relies on the state that the state of representing said menu does not rely on other any menus;
The said state that depends on said menu self from the state that relies on the said menu of expression;
The said outer state that relies on the said menu of expression depends on the state of the menu beyond the said menu.
3. according to claim 1 or claim 2 method is characterized in that, said Web server is according to the dependence of the said menu sign said menu of inquiry and other menus, and comprises according to the state that said dependence is obtained said menu:
Said Web server relies on table according to the pre-configured menu of said menu sign inquiry, obtain the menu sign that has other menus of dependence with said menu according to Query Result, and said menu is to the dependence of the state of said other menus;
Said Web server obtains the state of said other menus according to the pre-configured menu properties table of menu sign inquiry of said other menus according to Query Result;
Said Web server to the dependence of the state of said other menus and the state of said other menus, obtains the state of said menu according to said menu.
4. method as claimed in claim 3; It is characterized in that; Said menu is specially the said menu state that other menus need satisfy when being in enabled to the dependence of the state of said other menus, and the state of menu comprises and enables, goes to enable and use;
To the dependence of the state of said other menus and the state of said other menus, the state that obtains said menu comprises said Web server according to said menu:
When the state of said other menus satisfied requiring of said dependence, said Web server judged that the state of said menu is for enabling;
When the state of said other menus did not satisfy requiring of said dependence, the state that said Web server is judged said menu was in going to enable or using.
5. method as claimed in claim 4 is characterized in that, to the dependence of the state of said other menus and the state of said other menus, the state that obtains said menu also comprises afterwards said Web server according to said menu:
Said Web server is identified at the attribute that upgrades said menu in the said menu properties table according to the state of the said menu that obtains and the menu of said menu.
6. method as claimed in claim 4 is characterized in that, said Web server generates the new Web page according to the state of said menu, and the said new Web page is specially to said client browser transmission:
Said Web server sends to said client browser and generates the new needed information of the Web page, makes said client browser generate the new Web page according to said information.
7. the method for claim 1 is characterized in that, said menu operation request is specially fixedly the operation requests of menu or the operation requests of pop-up menu;
Carry the menu sign of said fixedly menu in the operation requests of said fixedly menu; Carry the menu sign of all menus in the said pop-up menu in the operation requests of said pop-up menu.
8. a Web server is characterized in that, comprising:
The request receiving element is used to receive the menu operation request of the Web page that client browser sends, the menu sign of carrying the menu of said client browser requests operation in the said menu operation request;
The status poll unit is connected with the described request receiving element, and the menu that is used for receiving according to the described request receiving element identifies the dependence of the said menu of inquiry and other menus, and obtains the state of said menu according to said dependence;
Page transmitting element is connected with said status poll unit, and the state of the menu that is used for obtaining according to said status poll unit generates the new Web page, and the said new Web page is sent to said client browser.
9. server as claimed in claim 8 is characterized in that, said status poll unit comprises:
Dependence inquiry subelement; Be used for according to the pre-configured menu dependence table of said menu sign inquiry; Obtain the menu sign that has other menus of dependence with said menu according to Query Result, and said menu is to the dependence of the state of said other menus;
The attribute query subelement is connected with said dependence inquiry subelement, is used for the pre-configured menu properties table of menu sign inquiry according to said other menus, obtains the state of said other menus according to Query Result;
State obtains subelement, is connected with said attribute query subelement, is used for according to said menu the dependence of the state of said other menus and the state of said other menus are obtained the state of said menu.
10. server as claimed in claim 9; It is characterized in that; Said menu is specially the said menu state that other menus need satisfy when being in enabled to the dependence of the state of said other menus, and the state of menu comprises and enables, goes to enable and use;
Said state obtains subelement and specifically is used for:
When the state of said other menus satisfied requiring of said dependence, the state of judging said menu was for enabling;
When the state of said other menus did not satisfy requiring of said dependence, the state of judging said menu was in going to enable or using.
11. server as claimed in claim 10 is characterized in that, also comprises:
The attribute updating block is connected with said status poll unit, and the state of the said menu that is used for obtaining according to said status poll unit and the menu of said menu are identified at the attribute that said menu properties table upgrades said menu.
12. server as claimed in claim 11; It is characterized in that; Said page transmitting element specifically is used for: the Query Result according to said status poll unit sends the new needed information of the Web page of generation to said client browser, makes said client browser generate the new Web page according to said information.
CN200910147671XA 2009-06-11 2009-06-11 Method for controlling Web page menu and device thereof Active CN101572727B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN200910147671XA CN101572727B (en) 2009-06-11 2009-06-11 Method for controlling Web page menu and device thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN200910147671XA CN101572727B (en) 2009-06-11 2009-06-11 Method for controlling Web page menu and device thereof

Publications (2)

Publication Number Publication Date
CN101572727A CN101572727A (en) 2009-11-04
CN101572727B true CN101572727B (en) 2012-07-04

Family

ID=41231964

Family Applications (1)

Application Number Title Priority Date Filing Date
CN200910147671XA Active CN101572727B (en) 2009-06-11 2009-06-11 Method for controlling Web page menu and device thereof

Country Status (1)

Country Link
CN (1) CN101572727B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103873515B (en) * 2012-12-13 2018-04-27 联想(北京)有限公司 The method and electronic equipment of information processing
EP2808794A1 (en) * 2013-05-30 2014-12-03 Siemens Aktiengesellschaft Rearranging a server response
CN108234178B (en) * 2016-12-21 2019-02-22 视联动力信息技术股份有限公司 A kind of method and apparatus being managed collectively menu file
CN107846311A (en) * 2017-10-27 2018-03-27 杭州迪普科技股份有限公司 A kind of server info collocation method and device
CN107992350B (en) * 2017-12-11 2021-01-26 杭州迪普科技股份有限公司 Method and device for generating configuration overview page
CN110909324B (en) * 2019-11-19 2022-03-01 杭州迪普科技股份有限公司 Control method and device for web permission

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1525361A (en) * 2003-02-24 2004-09-01 Technique for changing views of web content
CN1961312A (en) * 2004-06-24 2007-05-09 朴喜燮 Methods and the program-recording medium for creating, editing and trading home page components to assemble a home page and a personal portal site directly in wysiwyg on web browser

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1525361A (en) * 2003-02-24 2004-09-01 Technique for changing views of web content
CN1961312A (en) * 2004-06-24 2007-05-09 朴喜燮 Methods and the program-recording medium for creating, editing and trading home page components to assemble a home page and a personal portal site directly in wysiwyg on web browser

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
Martin Dzbor等.Magpie – Towards a Semantic Web Browser.《Lecture Notes in Computer Science》.2003, *

Also Published As

Publication number Publication date
CN101572727A (en) 2009-11-04

Similar Documents

Publication Publication Date Title
CN110221872B (en) Page jump method and device, electronic equipment and storage medium
CN111314459B (en) Service request method, device, electronic equipment and storage medium
CN101572727B (en) Method for controlling Web page menu and device thereof
CN110119292B (en) System operation parameter query method, matching method, device and node equipment
US7418440B2 (en) Method and system for extraction and organizing selected data from sources on a network
CN101098248B (en) Method and system for implementing universal network management based on configuration describing document
US7653729B2 (en) Information processing system, server apparatus, information processing apparatus, and control method thereof
US9323587B2 (en) Method and system for automatic detecting and resolving APIs
US7869585B2 (en) Declarations for transformations within service sequences
US8924867B2 (en) Web interface for remote platform build
KR20040082332A (en) Network printer connection update scheme for printer clients
EP2107472A1 (en) Electronic resource annotation
CN110011875B (en) Dial testing method, device, equipment and computer readable storage medium
US20140122576A1 (en) Setting support apparatus, setting support system and setting support method
CN102761532A (en) Information processing system and method for network video
JP7161719B2 (en) Interactive and non-interactive execution and rendering of templates for automating control and exploration across systems
US6356907B1 (en) Providing for data types of properties according to standard request-response protocols
EP2224661A1 (en) A method, system and apparatus of affair control
US10878055B2 (en) Web server
WO2019138336A1 (en) Recommending visual and execution templates to enable automation of control and data exploration across systems
CN111143383B (en) Data updating method and device, electronic equipment and storage medium
CN101661390B (en) Linkage display and jump control method and device
CN100409182C (en) Method and apparatus for processing of internet forms
JP2021033316A (en) Scenario providing system, scenario providing apparatus, scenario information providing method, and program
US7412495B2 (en) Method, system, and article of manufacture for a server side application

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
CP03 Change of name, title or address

Address after: 310052 Binjiang District Changhe Road, Zhejiang, China, No. 466, No.

Patentee after: Xinhua three Technology Co., Ltd.

Address before: 310053 Hangzhou hi tech Industrial Development Zone, Zhejiang province science and Technology Industrial Park, No. 310 and No. six road, HUAWEI, Hangzhou production base

Patentee before: Huasan Communication Technology Co., Ltd.

CP03 Change of name, title or address