CN102707890A - Browsing method and device for webpages - Google Patents

Browsing method and device for webpages Download PDF

Info

Publication number
CN102707890A
CN102707890A CN201210149249XA CN201210149249A CN102707890A CN 102707890 A CN102707890 A CN 102707890A CN 201210149249X A CN201210149249X A CN 201210149249XA CN 201210149249 A CN201210149249 A CN 201210149249A CN 102707890 A CN102707890 A CN 102707890A
Authority
CN
China
Prior art keywords
user
class information
level
type
browser
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
CN201210149249XA
Other languages
Chinese (zh)
Other versions
CN102707890B (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.)
Shenzhen Coship Electronics Co Ltd
Original Assignee
Shenzhen Coship Electronics 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 Shenzhen Coship Electronics Co Ltd filed Critical Shenzhen Coship Electronics Co Ltd
Priority to CN201210149249.XA priority Critical patent/CN102707890B/en
Publication of CN102707890A publication Critical patent/CN102707890A/en
Application granted granted Critical
Publication of CN102707890B publication Critical patent/CN102707890B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a browsing method for webpages, comprising the following steps: acquiring an input event input in a browser by an external input device; judging the acquired input event to obtain level information of current user; and starting application of the level corresponding to the level information of current user according to the obtained level information of current user. A browsing device for webpages is further provided by the invention. An aim of the invention is to provide the browsing device and the browsing device for webpages, webpage browsing mode switching mode and browsing levels control can be automatically carried out according to the level information of the user, thereby meeting various demands of different users.

Description

A kind of browsing method of webpage and device
Technical field
The present invention relates to browser, video and graph and image processing field, relate in particular to a kind of browsing method and device of webpage.
Background technology
At present; Browser technology is very ripe; Application based on browser also is very many; Yet but do not have a kind of method can distinguish which type crowd effectively, equally do not have a kind of method to carry out web page browsing mode switch pattern automatically and to browse other control of level yet according to user class information at browsing page.
Summary of the invention
Technical matters to be solved by this invention is, a kind of browsing method and device of webpage is provided, and can carry out web page browsing mode switch pattern automatically and browse rank control according to user class information, satisfies various requirements of different users.
In order to solve the problems of the technologies described above, the embodiment of the invention provides a kind of browsing method of webpage, comprising:
Obtain the incoming event of external input device;
The said incoming event that gets access to is judged, obtained active user's class information;
According to the said active user's who obtains class information, the application of startup and said active user's class information corresponding level.
Wherein, said obtaining comprises before the outside incoming event:
Start and monitor browser event.
Wherein, said the said incoming event that gets access to is judged that the class information that obtains the active user comprises:
According to the said incoming event that gets access to, analyze the type and the typonym that draw current input equipment;
According to the type and the typonym of the said current input equipment that gets access to, judge active user's class information.
Wherein, said class information according to the said active user who obtains, startup comprises with the application of said active user's class information corresponding level:
When said active user's class information is the higher-level user, then start the higher-level user proprietary business corresponding with said higher-level user;
When said active user's class information is middle rank user, then start and the said middle corresponding proprietary business of middle rank user of rank user;
When said active user's class information is the lower-level user, then start the lower-level user proprietary business corresponding with said lower-level user.
Wherein, said external input device comprises telepilot, mouse, keyboard, touch-screen.
Correspondingly, the present invention also provides a kind of browsing apparatus of webpage, and the browsing apparatus of said webpage comprises:
Acquisition module is used for obtaining the incoming event of external input device at browser;
Judge module is used for the incoming event that said acquisition module gets access to is judged, obtains active user's class information;
Start module, be used for judging the active user's who obtains class information, the application of startup and said active user's class information corresponding level according to said judge module.
Wherein, also comprise:
Second starts module, is used for starting the monitoring browser event.
Wherein, said judge module comprises:
Analytic unit is used for the incoming event that said acquisition module gets access to is analyzed, and draws the type and the typonym of current input equipment;
Judging unit, the type and the typonym of the current input equipment that is used for drawing according to said analytic unit analysis are judged active user's class information.
Wherein, said startup module comprises:
First start unit, the class information that is used for judging the active user according to said judge module start the higher-level user proprietary business corresponding with said higher-level user during for the higher-level user;
Second start unit when being used for judging that according to said judge module active user's class information is the rank user, starts and the said middle corresponding proprietary business of middle rank user of rank user;
The 3rd start unit, the class information that is used for judging the active user according to said judge module start the lower-level user proprietary business corresponding with said lower-level user during for the lower-level user.
Embodiment of the present invention has following beneficial effect:
The browsing method of the webpage that the embodiment of the invention provides and device; Can be different according to kinsfolk's composition structure; If any old man, child etc., can obtain current use crowd effectively, control the authority of each crowd's browsing page; And carry out web page browsing mode switch pattern automatically and browse rank control according to user class information, satisfy various requirements of different users.
Description of drawings
Fig. 1 is the process flow diagram of first embodiment of the browsing method of a kind of webpage of the present invention;
Fig. 2 is the process flow diagram of second embodiment of the browsing method of a kind of webpage of the present invention;
Fig. 3 is the process flow diagram of the 3rd embodiment of the browsing method of a kind of webpage of the present invention;
Fig. 4 is the structural representation of first embodiment of the browsing apparatus of a kind of webpage of the present invention;
Fig. 5 is the structural representation of second embodiment of the browsing apparatus of a kind of webpage of the present invention;
Fig. 6 is the structural representation of the 3rd embodiment of the browsing apparatus of a kind of webpage of the present invention.
Embodiment
To combine the accompanying drawing in the embodiment of the invention below, the technical scheme in the embodiment of the invention is carried out clear, intactly description, obviously, described embodiment only is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills are not making the every other embodiment that is obtained under the creative work prerequisite, all belong to the scope of the present invention's protection.
See also Fig. 1, be the process flow diagram of first embodiment of the browsing method of a kind of webpage of the present invention.Said method comprises:
S101 obtains the incoming event of external input device;
Concrete; The incoming event that obtains external input device described in the embodiment of the invention is meant that embedded device obtains the incoming event of external input device; Said embedded device comprises equipment such as STB, TV, mobile phone; Said external unit comprises external input devices such as telepilot, mouse, keyboard, touch-screen, and the incoming event of said external input device has comprised the type of said external input device and the title of type, but perhaps wherein a kind of unique identification of identification equipment type; The type of said current input equipment is that the input equipment of showing the people of different stage is different; Such as the old man the proprietary input equipment of old man is arranged, child has the proprietary input equipment of child, and said embedded device obtains the incoming event of external input device; And the incoming event of the said external input device that gets access to sent to the browser in the said embedded device; So that the browser in the said embedded device is according to the incoming event of said external input device, but the unique identification of the relevant current device type in the incoming event of said external input device or a kind of identification equipment type is wherein judged, obtained active user's class information.
S102 judges the said incoming event that gets access to, and obtains active user's class information;
Concrete; Embedded device described in the embodiment of the invention obtains the incoming event of external input device, and the incoming event of the said external input device that gets access to is sent to the browser in the said embedded device, and by said browser the incoming event of the external input device that gets access to is judged; So that obtain active user's class information; Comprise the type of current input equipment and the title of type in the event message type of the incoming event of said external input device, but perhaps wherein a kind of unique identification of identification equipment type has the type of message of prescribed level; That is to say; To define corresponding which device type of each rank in the type of message of the incoming event of said external input device, or the definition message Class Type, perhaps which kind of other crowd of level is which type just represent; Therefore; The type of current input equipment is different and different according to active user's rank, such as the old man the proprietary input equipment of old man is arranged, and child has the proprietary input equipment of child; Said browser is resolved the incoming event to the external input device that gets access to, and the type information of the external input device that parsing is obtained is saved in the extended message type of said browser.
Browser in the embodiment of the invention increases expansion type information in DOM Document Object Model DOM (Document Object Model) object incident; Be used to distinguish the device type of current input; In DOM object incident, increased the KeyEvent type such as said browser; Increase a type type and string type in the event incident in the said KeyEvent type among document.onkeydown, document.onkeypress, the document.onkeyup; Represent the type and the typonym of current input equipment respectively, therefore, when said embedded device receives external input device when being the keyboard incoming event of keyboard; The KeyEvent type that said embedded device increases in DOM Document Object Model DOM (Document Object Model) object incident according to said browser; Can obtain the type and the typonym of current external input device, but perhaps wherein a kind of unique identification of identification equipment type, and according to the type and the typonym of the said current external input device that obtains; Perhaps but wherein a kind of unique identification of identification equipment type is further judged the class information that obtains the user.
S103, according to the said active user's who obtains class information, the application of startup and said active user's class information corresponding level.
Concrete, in the embodiment of the invention, in the message channel between said browser and Web application; Defined several kinds of dissimilar passages, comprised high, medium and low passage, the extent of competence of other control browsing page of each grade is different; Wherein, said high, medium and low passage is represented different user groups respectively, and different like this user groups can have high, medium and low other passage of level to carry out web page browsing; Send in the browser extension message channel when said embedded device obtains the browser that the incoming event of external input device sends in the said embedded device, comprise the type of current input equipment and the title of type in the event message type of the incoming event of said external input device, but perhaps wherein a kind of unique identification of identification equipment type; Said browser is resolved this incoming event, and according to said browser extension type of message or title, just can obtain the current user crowd's who is using type; Wherein, Dissimilar user crowds can only use proprietary separately input equipment, and has each self-corresponding Web to use, when said browser is received the message event of external unit transmission; Trigger Web application affairs audiomonitor; And the equipment unique identification is sent to Web simultaneously use, said Web uses and gets access to this device type according to this equipment unique identification, and obtains active user crowd according to this device type; And the active user crowd's who obtains according to said judgement type; Current Web is used the Web that switches to corresponding crowd use, said Web uses the class information of from said browser, obtaining the active user exactly, opens corresponding high, normal, basic level applications; If the user is the higher-level user then represents the proprietary business of higher-level user that is applied as to the user; In low level also be similar process, can realize the authority of each different crowd's of control browsing page according to the difference of different crowds' composition structure.
S103, according to the said active user's who obtains class information, startup comprises with the application of said active user's class information corresponding level:
When said active user's class information is the higher-level user, then start the higher-level user proprietary business corresponding with said higher-level user;
When said active user's class information is middle rank user, then start and the said middle corresponding proprietary business of middle rank user of rank user;
When said active user's class information is the lower-level user, then start the lower-level user proprietary business corresponding with said lower-level user.
The embedded device of the embodiment of the invention is after obtaining the incoming event of external input device; The incoming event of the said external input device that gets access to is sent to the browser in the said embedded device, by said browser the said incoming event that gets access to is judged, the type information of said incoming event comprises the type of said external input device and the title of type; But perhaps wherein a kind of unique identification of identification equipment type; When said browser is received the message event of external unit transmission, trigger Web application affairs audiomonitor, and the equipment unique identification is sent to the Web application simultaneously; Said Web uses and gets access to this device type according to this equipment unique identification; And obtain active user crowd's type according to this device type, and the active user crowd's who obtains according to said judgement type, current Web is used the Web that switches to corresponding crowd use; Can obtain current use crowd's type information effectively; Judge active user's class information according to said current use crowd's type information, and carry out web page browsing mode switch pattern automatically and browse rank control, realized difference according to kinsfolk's composition structure according to the original active user's of said judgement class information; Authority to crowd's browsing page of different structure limits, and satisfies various requirements of different users.
See also Fig. 2, be the process flow diagram of second embodiment of the browsing method of a kind of webpage of the present invention.Said method comprises:
S201 starts and monitors browser event;
Concrete, before embedded device obtained the incoming event of external input device, said user monitored browser event through opening the Web application start in the embodiment of the invention; Said Web uses and adds event sniffer in browser, waits for browser event message readjustment, when the external event trigger messages; Be said embedded device when obtaining the incoming event of external input device, the telepilot incoming event is passed to said embedded device, said embedded device is after getting access to remote events; Said outside incoming event is sent to browser, and when said browser telepilot audiomonitor received the external remote incident, the telepilot of embedded device drives can obtain current remote unit type information; And type information joined in the event information, said embedded device sends to said browser with event message, and said browser obtains this event message; And resolve, preserve remote unit type information in the extended message type, and trigger Web application affairs audiomonitor; Said Web uses the event sniffer that browser is given in registration, promptly triggers the Javascript incident, carries out the Web application affairs and monitors readjustment; Notice Web application affairs message; Said Web is applied in when listening to browser event, obtains this external remote message event, judges active user's information according to this telepilot type of message; And, start the application of corresponding level according to current use user profile.
S202 obtains the incoming event of external input device;
S203 according to the said incoming event that gets access to, analyzes the type and the typonym that draw current input equipment;
Concrete; Embedded device in the embodiment of the invention gets access to the incoming event of external input device, and the said incoming event that gets access to external input device is sent to the browser in the said embedded device, by said browser this incoming event is resolved; And notify said Web to use; Said browser increases expansion type information in DOM Document Object Model DOM (Document Object Model) object incident, be used to distinguish the device type of current input, in DOM object incident, has increased the remote events type such as said browser; Said embedded device gets access to remote events; Telepilot drives can obtain current remote unit type information, and type information is joined in the event information, and said embedded device sends to said browser with this event information; By said browser the incoming event of this telepilot is resolved; And the type information of the telepilot that parsing is obtained is saved in the extended message type of said browser, and notifies said Web to use, and just said browser triggers the Javascript incident; And said Web used the event sniffer that browser is given in registration, and the equipment unique identification is sent to Web simultaneously use.
S204 according to the type and the typonym of the said current input equipment that gets access to, judges active user's class information;
Concrete, embedded device obtains the incoming event of external input device in the embodiment of the invention, and the said incoming event that gets access to is sent in the browser in the said embedded device; By said browser the incoming event that gets access to is analyzed, so that draw the type and the typonym of current input equipment, said browser receives and has the current device type in the external unit event message; Give people's external input device of different stage different, like the old man the proprietary input equipment of old man is arranged, child has the proprietary input equipment of child; Said browser increases expansion type information in DOM Document Object Model DOM (Document Object Model) object incident, be used to distinguish the device type of current input, and in the message channel between said browser and Web application; Defined several kinds of dissimilar passages, comprised high, medium and low passage, each other range of control of level is different; The event information that will carry device type when external unit sends in the browser extension message channel; When browser was received the message event of external unit transmission, browser telepilot audiomonitor received the external remote incident, and triggered Web application affairs audiomonitor; And carry out the Web application affairs and monitor readjustment; Notice Web application affairs message, Web uses and obtains message event, and said browser triggers Web and uses; And the equipment unique identification is sent to Web simultaneously use; Web uses according to unique device type and judges active user crowd, and Web uses and judged current user crowd, and the Web that just can switch to corresponding crowd uses.Every kind of crowd's the own corresponding Web that has uses, and that is to say that said Web uses the incident of receiving; And judgement extended message type; And the type and the typonym of the current input equipment that gets access to according to said browser extension message channel, judging active user's class information, said Web uses the class information of from said browser, obtaining the active user exactly; Open corresponding high, normal, basic level applications, realize the authority of each different crowd's of control browsing page.
S205, according to the said active user's who obtains class information, the application of startup and said active user's class information corresponding level.
Concrete, embedded device receives the incoming event of external input device in the embodiment of the invention, and the incoming event of said external input device is sent in the browser of said embedded device; So that said browser triggers the incoming event of said reception, and notify said Web to use, said embedded device is after receiving the incoming event of external input device; The incident of the said external input device that gets access to is sent in the browser in the said embedded device; The incoming event of the external input device that said browser gets access to is analyzed, and analyzes the type and the typonym that draw current input equipment, according to the type and the typonym of the said current input equipment that gets access to; Judge active user's class information; And notice Web application, wherein, said browser receives and has the current device type in the external unit event message; Give people's external input device of different stage different; Like the old man the proprietary input equipment of old man is arranged, child has the proprietary input equipment of child, and just every kind of crowd's the own corresponding Web that has uses.Comprise the unique identification of external unit in the event message type that said browser receives, after said browser is received incident and trigger event, trigger Web application affairs audiomonitor; And the equipment unique identification is sent to Web simultaneously use, said Web uses the incident of receiving, and judges the extended message type; And the type and the typonym of the current input equipment that gets access to according to said browser extension message channel, judging active user's class information, Web uses and gets access to the device type in this browser event; Just define unique identification input equipment type; Can judge active user crowd according to this unique device type, said Web uses according to the said active user crowd who judges, and the Web that just can switch to corresponding crowd uses; Be that said Web uses the class information of from said browser, obtaining the active user exactly; Open corresponding high, normal, basic level applications, realize the authority of each different crowd's of control browsing page, satisfy various requirements of different users.
See also Fig. 3, be the process flow diagram of the 3rd embodiment of the browsing method of a kind of webpage of the present invention.Said method comprises:
S301 obtains the incoming event of external input device;
S302 judges the said incoming event that gets access to, and obtains active user's class information;
S303 when said active user's class information is the higher-level user, then starts the higher-level user proprietary business corresponding with said higher-level user;
Concrete, in the S302 step, the said incoming event that gets access to is judged in the embodiment of the invention, obtain active user's class information after; Further according to the said active user's who obtains class information, so that start the application with said active user's class information corresponding level, in the message channel of the embodiment of the invention between said browser and Web use; Defined several kinds of dissimilar passages, comprised high, medium and low passage, each other range of control of level is different; Wherein, said high, medium and low passage is represented different user groups respectively, and different like this user groups can have high, medium and low other passage of level to carry out web page browsing; That is to say that the own corresponding Web of having of each crowd uses, the event information that will carry device type when external unit sends in the browser extension message channel, when said browser is received the message event of external unit transmission; Trigger Web application affairs audiomonitor, and the equipment unique identification is sent to the Web application simultaneously, said Web uses the incident of receiving; And judgement extended message type; Web uses and gets access to the device type in this browser event, just defines unique identification input equipment type, and Web uses according to unique device type and judges active user crowd; Web uses and has judged current user crowd; The Web that just can switch to corresponding crowd uses, and said Web uses the class information of from said browser, obtaining the active user exactly, opens corresponding high, normal, basic level applications; If the user is the higher-level user then represents the proprietary business of higher-level user that is applied as to the user; Promptly the class information as said active user is the higher-level user, then starts the higher-level user proprietary business corresponding with said higher-level user, and the user group of this moment can have high level passage to carry out web page browsing; Such crowd enjoys the authority of high level browsing page, satisfies the demand of such crowd's browsing page.
Need to prove; In the message channel in the embodiment of the invention between said browser and Web application; Defined several kinds of dissimilar passages, comprised high, medium and low passage, each other range of control of level is different; Wherein, Said high, medium and low passage is just in order to explain a kind of mode of said message channel, and in actual implementation process, is not limited to just to adopt the mode of high, medium and low passage that said message channel is described, also can said message channel be described with other mode of other representation classes; Represent that such as modes such as can adopting passage 1, passage 2, passage 3 embodiment of the invention preferably adopts the mode of high, medium and low passage that said message channel is described.
S304 when said active user's class information is middle rank user, then starts and the said middle corresponding proprietary business of middle rank user of rank user;
Concrete, in the message channel of the embodiment of the invention between said browser and Web application, defined several kinds of dissimilar passages; Comprise high, medium and low passage; Each other range of control of level is different, and wherein, said high, medium and low passage is represented different user groups respectively; Different like this user groups can have high, medium and low other passage of level to carry out web page browsing, that is to say that different crowds has own corresponding Web to use.The event information that will carry device type when external input device sends in the browser extension message channel, and browser is received incident and trigger event, and said event message type the inside has the current device type; Give people's external input device of different stage different, like the old man the proprietary input equipment of old man is arranged, child has the proprietary input equipment of child; The unique identification that comprises external unit in the event message type that said browser receives, and notice Web application, said Web uses the incident of receiving; And judgement extended message type; Web uses and gets access to the device type in this browser event, judges active user crowd according to unique device type, and switches to corresponding crowd's Web application; If the user is middle rank user then represents to the middle proprietary business of rank user of being applied as of user; Promptly the class information as said active user is middle rank user, then starts and the said middle corresponding proprietary business of middle rank user of rank user, and the user group of this moment can have other passage of middle rank to carry out web page browsing; Such crowd enjoys the authority of other browsing page of middle rank, satisfies the demand of such crowd's browsing page.
S305 when said active user's class information is the lower-level user, then starts the lower-level user proprietary business corresponding with said lower-level user.
Concrete, in the message channel of the embodiment of the invention between said browser and Web application, defined several kinds of dissimilar passages; Comprise high, medium and low passage; Each other range of control of level is different, and wherein, said high, medium and low passage is represented different user groups respectively; Different like this user groups can have high, medium and low other passage of level to carry out web page browsing, that is to say that different crowds has own corresponding Web to use.The event information that will carry device type when external input device sends in the browser extension message channel, and browser is received incident and trigger event, and said event message type the inside has the current device type; Give people's external input device of different stage different, like the old man the proprietary input equipment of old man is arranged, child has the proprietary input equipment of child; The unique identification that comprises external unit in the event message type that said browser receives, and notice Web application, said Web uses the incident of receiving; And judge the extended message type, the Web application gets access to the device type in this browser event, judges active user crowd according to unique device type; And the Web that switches to corresponding crowd uses, and said Web uses the incident of receiving, and judges the extended message type; Said Web uses the class information of from said browser, obtaining the active user exactly; Open corresponding high, normal, basic level applications, if the user is the lower-level user then represents the proprietary business of lower-level user that is applied as to the user that promptly the class information as said active user is the lower-level user; Then start the lower-level user proprietary business corresponding with said lower-level user; The user group of this moment can have low-level passage to carry out web page browsing, and such crowd enjoys the authority of low-level browsing page, satisfies the demand of such crowd's browsing page.
Form the structure difference according to the kinsfolk in the embodiment of the invention, old man, child etc. are arranged, for the safety browsed web content; The browse right that just needs each crowd's of control browsing page is provided with the authority of different browsing pages to different crowds, in the message channel between said browser and Web use; Defined several kinds of dissimilar passages, comprised high, medium and low passage, the extent of competence of other control browsing page of each grade is different; Wherein, said high, medium and low passage is represented different user groups respectively, and different like this user groups can have high, medium and low other passage of level to carry out web page browsing; The event information that will carry device type when external unit sends in the browser extension message channel, and browser is received incident and trigger event, and notice Web uses; Said Web uses the class information of from said browser, obtaining the active user exactly; Open corresponding high, normal, basic level applications, if the user is the higher-level user then represents the proprietary business of higher-level user that is applied as to the user that promptly the class information as said active user is high level; Then start the higher-level user proprietary business corresponding with said higher-level user; This moment, the user group can have high level passage to carry out web page browsing, and middle low level also is similar process, can be according to the difference of different crowds' composition structure; Realize the authority of each different crowd's of control browsing page; And carry out the switching and the level limit of application model, so that all kinds of crowd's safety browsing page has satisfied various requirements of different users.
See also Fig. 4, be the structural representation of first embodiment of the browsing apparatus of a kind of webpage of the present invention.As shown in Figure 4, said web page browsing device comprises:
Acquisition module 10 is used for obtaining the incoming event of external input device at browser;
Concrete; External unit described in the embodiment of the invention comprises telepilot, mouse, keyboard, touch-screen etc.; Said acquisition module 10 obtains the incoming event of external input device in browser; And the incoming event of the external input device that said acquisition module 10 is got access to sends to the browser in the said embedded device; So that said browser is according to the incoming event of said external input device, but the unique identification of the relevant current device type in the incoming event of said external input device or a kind of identification equipment type is wherein judged, obtained active user's class information; The incoming event that said acquisition module 10 obtains external input device is meant that embedded device obtains the incoming event of external input device; Said embedded device comprises equipment such as STB, TV, mobile phone, and the incoming event of the external input device that said acquisition module 10 gets access to has comprised the type of said external input device and the title of type, but perhaps wherein a kind of unique identification of identification equipment type; The type of said current input equipment is that the input equipment of showing the people of different stage is different; Such as the old man the proprietary input equipment of old man is arranged, child has the proprietary input equipment of child, and said acquisition module 10 is meant that said embedded device obtains the incoming event of external input device; So that the browser in the said STB is judged according to the incident of the external input device that gets access to, is obtained active user's class information.
Judge module 20 is used for the incoming event that said acquisition module 10 gets access to is judged, obtains active user's class information;
Concrete; The incoming event of the external input device that 20 pairs of said acquisition modules 10 of the judge module in the embodiment of the invention get access to is judged, so that obtain active user's class information, wherein; Said acquisition module 10 is meant that embedded device obtains the incoming event of external input device; And the said incoming event that gets access to sent to the browser in the said STB, by said browser this incoming event is resolved, so that obtain active user's class information; The type of current input equipment and the title of type have been comprised in the event message type of the incoming event that said acquisition module 10 gets access to; But perhaps wherein a kind of unique identification of identification equipment type that is to say in the type of message of the incoming event that said acquisition module 10 gets access to define corresponding which device type of each rank, or the definition message Class Type; Perhaps which kind of other crowd of level is which type just represent; And the type information of the external input device that parsing is obtained is saved in the extended message type of said browser, and said browser increases expansion type information in DOM Document Object Model DOM (Document Object Model) object incident, be used to distinguish the device type of current input; In DOM object incident, increased the KeyEvent type such as said browser; Increase a type type and string type in the event incident in the said KeyEvent type among document.onkeydown, document.onkeypress, the document.onkeyup, represent the type and the typonym of current input equipment respectively, said judge module 20 is meant that said browser receives the external unit event message; And triggering Web application affairs audiomonitor; And the equipment unique identification is sent to Web simultaneously use, Web uses the unique identification that gets access to the device type in this browser event, and judges active user crowd according to unique device type; Said Web uses and obtains current user crowd according to judgement, and the Web that just can switch to corresponding crowd uses.
Start module 30, be used for judging the active user's who obtains class information, the application of startup and said active user's class information corresponding level according to said judge module 20.
Concrete, the startup module 30 in the embodiment of the invention is judged according to said judge module 20 and the active user's who obtains class information is started the active user's who obtains with said judge module 20 judgements the corresponding application of class information; In the message channel between browser described in the embodiment of the invention and Web use, define several kinds of dissimilar passages, comprised high, medium and low passage; The extent of competence of other control browsing page of each grade is different; Wherein, said high, medium and low passage is represented different user groups respectively, and different like this user groups can have high, medium and low other passage of level to carry out web page browsing; Obtain the incoming event of external input device when said acquisition module 10; And send in the browser extension message channel, the type information of said incoming event comprises the type of said external input device and the title of type, but perhaps wherein a kind of unique identification of identification equipment type; Said browser receives the external unit event message; And trigger Web application affairs audiomonitor, and the equipment unique identification is sent to the Web application simultaneously, Web uses the unique identification that gets access to the device type in this browser event; The incoming event that 20 pairs of said acquisition modules 10 of said judge module get access to is judged; And according to said browser extension type of message or title, and, judge the type that obtains the current user crowd who is using according to unique device type judgement active user crowd; Said startup module 30 is judged the current user crowd who obtains according to said judge module 20; Startup is judged the current user crowd's relevant Web application that obtains with said judge module 20, that is to say, the user class information that startup module 30 obtains according to said judge module 20 judgements is carried out switch mode automatically and browsed rank control.
External unit described in the embodiment of the invention comprises external input devices such as telepilot, mouse, keyboard, touch-screen; The acquisition module 10 of the embodiment of the invention obtains the incoming event of external input device in browser; The incoming event that 20 pairs of said acquisition modules 10 of said judge module get access to is judged; Obtain active user's class information; Said startup module 30 is judged the active user's who obtains class information according to said judge module 20, starts the application with said active user's class information corresponding level, can be according to the difference of kinsfolk's composition structure; Authority to crowd's browsing page of different structure limits; Can obtain current use crowd's type information effectively, and carry out switch mode automatically and browse rank control, satisfy various requirements of different users according to the user class information that said judge module 20 judgements obtain.
See also Fig. 5, be the structural representation of second embodiment of the browsing apparatus of a kind of webpage of the present invention.As shown in Figure 5, said web page browsing device comprises among above-mentioned Fig. 4: acquisition module 10, startup module 30, and in the present embodiment, said judge module 20 comprises:
Analytic unit 201 is used for the incoming event that said acquisition module 10 gets access to is analyzed, and draws the type and the typonym of current input equipment;
Concrete; The incoming event that 201 pairs of said acquisition modules 10 of analytic unit described in the embodiment of the invention get access to is analyzed; So that obtain the type and the typonym of current input equipment; Wherein, The incoming event that 201 pairs of said acquisition modules 10 of said analytic unit get access to is analyzed, and is meant that said embedded device is that the incoming event that said acquisition module 10 gets access to external input device is sent to the browser in the said STB, is analyzed this incoming event by said browser; And the type information of the external input device that analysis is obtained is saved in the extended message type of said browser; Browser described in the embodiment of the invention increases expansion type information in DOM Document Object Model DOM (Document Object Model) object incident, be used to distinguish the device type of current input, and the type information of said incoming event comprises the type of said external input device and the title of type; But perhaps wherein a kind of unique identification of identification equipment type; 201 pairs of said browsers of said analytic unit receive the external unit event message and analyze, and according to said browser extension type of message or title or unique device type judgement active user crowd, so that judge the type that obtains the current user crowd who is using; And trigger Web application affairs audiomonitor, the equipment unique identification is sent to Web simultaneously use.
Judging unit 202 is used for analyzing according to said analytic unit 201 type and the typonym of the current input equipment that draws, and judges active user's class information.
Concrete; The incoming event of the external input device that 201 pairs of said acquisition modules 10 of the analytic unit in the embodiment of the invention get access to is judged, so that obtain active user's class information, wherein; The type of current input equipment and the title of type have been comprised in the event message type of the incoming event that said acquisition module 10 gets access to; But perhaps wherein a kind of unique identification of identification equipment type that is to say in the type of message of the incoming event that said acquisition module 10 gets access to define corresponding which device type of each rank, or the definition message Class Type; Perhaps which kind of other crowd of level is which type just represent; Said judging unit 202 is analyzed the type and the typonym of the current input equipment that draws according to said analytic unit 201, and triggers Web application affairs audiomonitor, the equipment unique identification is sent to Web simultaneously use; Web uses the unique identification that gets access to the device type in this browser event; And according to said unique device type judgement active user crowd, said Web uses and obtains current user crowd according to judgement, and the Web that just can switch to corresponding crowd uses.
Browser described in the embodiment of the invention increases expansion type information in DOM Document Object Model DOM (Document Object Model) object incident; Be used to distinguish the device type of current input; And in the message channel between said browser and Web application, defined several kinds of dissimilar passages, comprise high, medium and low passage; Each other range of control of level is different; Said acquisition module 10 sends to the incoming event of the external input device that gets access in the browser extension message channel, and the incoming event that 201 pairs of said acquisition modules 10 of said analytic unit get access to is analyzed, so that obtain the type and the typonym of current input equipment; Said judging unit 202 is analyzed the type and the typonym of the current input equipment that draws according to said analytic unit 201; Judge active user's class information, and notice Web application, said Web uses the class information of from said browser, obtaining the active user exactly; Open corresponding high, normal, basic level applications, realize the authority of each different crowd's of control safe browsing page.
In the present embodiment, said web page browsing device also further comprises:
Second starts module 00, is used for starting the monitoring browser event.
Concrete,, said acquisition module 10 comprises that second starts module 00 before obtaining the incoming event of external input device in the embodiment of the invention, said second starts module 00 is meant that said user monitors browser event through opening the Web application start; Said Web uses and adds event sniffer in browser, waits for browser event message readjustment, when said acquisition module 10 obtains the incoming event of external input device; The telepilot incoming event is passed to said embedded device, and said embedded device sends to said browser with event message, and said browser obtains this event message; And resolve; Preserve remote unit type information in the extended message type, trigger simultaneously said second start the monitoring browser that module 00 started incident, said Web uses the event sniffer that browser is given in registration; Carry out the Web application affairs and monitor readjustment; Notice Web application affairs message, said Web is applied in when listening to browser event, obtains this external remote message event; Judge active user's information according to this telepilot type of message, start the application of corresponding level.
Originally the second startup module 00 is used for starting the monitoring browser event described in carrying out an invention; Wait for said browser event message readjustment; Said acquisition module 10 sends to the browser in the said STB with the incoming event of the external input device that gets access to; So that said judge module 20 is judged the class information that obtains the active user according to the incoming event that said acquisition module 10 gets access to; Said startup module 30 is judged the active user's who obtains class information according to said judge module 20; Startup and active user's the corresponding application level of class information, the authority of each different crowd's of realization control browsing page satisfies various requirements of different users.
See also Fig. 6, be the structural representation of the 3rd embodiment of the browsing apparatus of a kind of webpage of the present invention.As shown in Figure 6, said web page browsing device comprises among above-mentioned Fig. 4: acquisition module 10, judge module 20, and in the present embodiment, said startup module 30 comprises:
First start unit 301, the class information that is used for judging active users according to said judge module 20 start the higher-level user proprietary business corresponding with said higher-level user during for the higher-level user;
Concrete, the incoming event that 20 pairs of said acquisition modules 10 of judge module described in the embodiment of the invention get access to judges, obtain active user's class information after; When said first start unit 301 further judges that according to said judge module 20 active user's class information is advanced level user, start the higher-level user proprietary business corresponding, in the message channel of the embodiment of the invention between said browser and Web application with said higher-level user; Defined several kinds of dissimilar passages, comprised high, medium and low passage, each other range of control of level is different; Wherein, said high, medium and low passage is represented different user groups respectively, and different like this user groups can have high, medium and low other passage of level to carry out web page browsing; That is to say that the own corresponding Web of having of each crowd uses, when the event information that external unit will be carried device type when acquisition module 10 sends to the browser extension message channel, when said browser is received the message event that external unit sends; Trigger Web application affairs audiomonitor; And the equipment unique identification is sent to Web simultaneously use, said Web uses the incident of receiving, and judges the extended message type; Web uses the unique identification that gets access to the device type in this browser event; And judge active user crowd according to unique device identification, thus just can switch to corresponding crowd's Web application according to the unique device identification that gets access to, open corresponding high, normal, basic level applications; Wherein, When the said first startup module 301 judges that according to said judge module 20 active users' class information is the higher-level user, start the higher-level user proprietary business corresponding with said higher-level user, the user group of this moment can have high level passage to carry out web page browsing; Such crowd enjoys the authority of high level browsing page, satisfies the demand of such crowd's browsing page.
Second start unit 302 when being used for judging that according to said judge module 20 active users' class information is the rank user, starts and the said middle corresponding proprietary business of middle rank user of rank user;
Concrete, the incoming event that 20 pairs of said acquisition modules 10 of judge module described in the embodiment of the invention get access to judges, obtain active user's class information after; When said first start unit 301 further judges that according to said judge module 20 active user's class information is advanced level user, start the higher-level user proprietary business corresponding, in the message channel of the embodiment of the invention between said browser and Web application with said higher-level user; Defined several kinds of dissimilar passages, comprised high, medium and low passage, each other range of control of level is different; Wherein, said high, medium and low passage is represented different user groups respectively, and different like this user groups can have high, medium and low other passage of level to carry out web page browsing; That is to say that the own corresponding Web of having of each crowd uses, when the event information that external unit will be carried device type when acquisition module 10 sends to the browser extension message channel, when said browser is received the message event that external unit sends; Trigger Web application affairs audiomonitor; And the equipment unique identification is sent to Web simultaneously use, said Web uses the incident of receiving, and judges the extended message type; Web uses the unique identification that gets access to the device type in this browser event; And judge active user crowd according to unique device identification, thus just can switch to corresponding crowd's Web application according to the unique device identification that gets access to, open corresponding high, normal, basic level applications; Wherein, Said second starts module 302 when judging that according to said judge module 20 active users' class information is middle rank user, start with said in the corresponding proprietary business of middle rank user of rank user, user group at this moment can have intermediate other passage to carry out web page browsing; Such crowd enjoys the authority of other browsing page of middle rank, satisfies the demand of such crowd's browsing page.
The 3rd start unit 303, the class information that is used for judging active users according to said judge module 20 start the lower-level user proprietary business corresponding with said lower-level user during for the lower-level user.
Concrete, the incoming event that 20 pairs of said acquisition modules 10 of judge module described in the embodiment of the invention get access to judges, obtain active user's class information after; When said first start unit 301 further judges that according to said judge module 20 active user's class information is advanced level user, start the higher-level user proprietary business corresponding, in the message channel of the embodiment of the invention between said browser and Web application with said higher-level user; Defined several kinds of dissimilar passages, comprised high, medium and low passage, each other range of control of level is different; Wherein, said high, medium and low passage is represented different user groups respectively, and different like this user groups can have high, medium and low other passage of level to carry out web page browsing; That is to say that the own corresponding Web of having of each crowd uses, when the event information that external unit will be carried device type when acquisition module 10 sends to the browser extension message channel, when said browser is received the message event that external unit sends; Trigger Web application affairs audiomonitor; And the equipment unique identification is sent to Web simultaneously use, said Web uses the incident of receiving, and judges the extended message type; Web uses the unique identification that gets access to the device type in this browser event; And judge active user crowd according to unique device identification, thus just can switch to corresponding crowd's Web application according to the unique device identification that gets access to, open corresponding high, normal, basic level applications; Wherein, When said the 3rd startup module 303 judges that according to said judge module 20 active users' class information is the lower-level user, start the lower-level user proprietary business corresponding with said lower-level user, the user group of this moment can have low-level passage to carry out web page browsing; Such crowd enjoys the authority of low-level browsing page, satisfies the demand of such crowd's browsing page.
Form the structure difference according to the kinsfolk in the embodiment of the invention, old man, child etc. are arranged, for the safety browsed web content; The browse right that just needs each crowd's of control browsing page is provided with the authority of different browsing pages to different crowds, in the message channel between said browser and Web use; Defined several kinds of dissimilar passages, comprised high, medium and low passage, the extent of competence of other control browsing page of each grade is different; Wherein, said high, medium and low passage is represented different user groups respectively, and different like this user groups can have high, medium and low other passage of level to carry out web page browsing; Said acquisition module 10 sends to the incoming event that obtains in the browser extension message channel; The incoming event that 20 pairs of said acquisition modules 10 of said judge module obtain is judged, obtains active user's class information, and notice Web uses; Said Web uses the class information of from said browser, obtaining the active user exactly; Open corresponding high, normal, basic level applications, wherein, when said first start unit 301 judges that according to said judge module 20 active user's class information is the higher-level user; Start the higher-level user proprietary business corresponding with said higher-level user; When said second start unit 302 judges that according to said judge module 20 active users' class information is middle rank user, start with said in the corresponding proprietary business of middle rank user of rank user, when said the 3rd start unit 303 is the lower-level user according to said judge module 20 judgement active users' class information; Start the lower-level user proprietary business corresponding with said lower-level user; Can realize the authority of each different crowd's of control browsing page according to the difference of different crowds' composition structure, and carry out the switching and the level limit of application model; So that all kinds of crowd's safety browsing pages have satisfied various requirements of different users.
One of ordinary skill in the art will appreciate that all or part of flow process that realizes in the foregoing description method, described program can be stored in a computer-readable and write in the storage medium, and this program can comprise the flow process like the embodiment of above-mentioned each side method when carrying out.Wherein, described storage medium can be FLASH flash memory, EEPROM, magnetic disc, CD, read-only storage memory body (Read-Only Memory, ROM) or at random store memory body (Random Access Memory, RAM) etc.
Above disclosedly be merely preferred embodiment of the present invention; Certainly can not limit the present invention's interest field with this; One of ordinary skill in the art will appreciate that all or part of flow process that realizes the foregoing description; And, still belong to the scope that invention is contained according to the equivalent variations that claim of the present invention is done.

Claims (9)

1. the browsing method of a webpage is characterized in that, comprising:
Obtain the incoming event of external input device;
The said incoming event that gets access to is judged, obtained active user's class information;
According to the said active user's who obtains class information, the application of startup and said active user's class information corresponding level.
2. the method for claim 1 is characterized in that, said obtaining comprises before the outside incoming event:
Start and monitor browser event.
3. the method for claim 1 is characterized in that, said the said incoming event that gets access to is judged that the class information that obtains the active user comprises:
According to the said incoming event that gets access to, analyze the type and the typonym that draw current input equipment;
According to the type and the typonym of the said current input equipment that gets access to, judge active user's class information.
4. the method for claim 1 is characterized in that, said class information according to the said active user who obtains, and startup comprises with the application of said active user's class information corresponding level:
When said active user's class information is the higher-level user, then start the higher-level user proprietary business corresponding with said higher-level user;
When said active user's class information is middle rank user, then start and the said middle corresponding proprietary business of middle rank user of rank user;
When said active user's class information is the lower-level user, then start the lower-level user proprietary business corresponding with said lower-level user.
5. the method for claim 1 is characterized in that, said external input device comprises telepilot, mouse, keyboard, touch-screen.
6. the browsing apparatus of a webpage is characterized in that, comprising:
Acquisition module is used for obtaining the incoming event of external input device at browser;
Judge module is used for the incoming event that said acquisition module gets access to is judged, obtains active user's class information;
Start module, be used for judging the active user's who obtains class information, the application of startup and said active user's class information corresponding level according to said judge module.
7. device as claimed in claim 6 is characterized in that, also comprises:
Second starts module, is used for starting monitoring browser event, to wait for the readjustment of said browser event message.
8. device as claimed in claim 6 is characterized in that, said judge module comprises:
Analytic unit is used for the incoming event that said acquisition module gets access to is analyzed, and draws the type and the typonym of current input equipment;
Judging unit, the type and the typonym of the current input equipment that is used for drawing according to said analytic unit analysis are judged active user's class information.
9. device as claimed in claim 6 is characterized in that, said startup module comprises:
First start unit, the class information that is used for judging the active user according to said judge module start the higher-level user proprietary business corresponding with said higher-level user during for the higher-level user;
Second start unit when being used for judging that according to said judge module active user's class information is the rank user, starts and the said middle corresponding proprietary business of middle rank user of rank user;
The 3rd start unit, the class information that is used for judging the active user according to said judge module start the lower-level user proprietary business corresponding with said lower-level user during for the lower-level user.
CN201210149249.XA 2012-05-15 2012-05-15 A kind of browsing method of webpage and device Expired - Fee Related CN102707890B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210149249.XA CN102707890B (en) 2012-05-15 2012-05-15 A kind of browsing method of webpage and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210149249.XA CN102707890B (en) 2012-05-15 2012-05-15 A kind of browsing method of webpage and device

Publications (2)

Publication Number Publication Date
CN102707890A true CN102707890A (en) 2012-10-03
CN102707890B CN102707890B (en) 2016-02-17

Family

ID=46900735

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210149249.XA Expired - Fee Related CN102707890B (en) 2012-05-15 2012-05-15 A kind of browsing method of webpage and device

Country Status (1)

Country Link
CN (1) CN102707890B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104158660A (en) * 2014-07-22 2014-11-19 乐视网信息技术(北京)股份有限公司 User authority switching method and system
CN104520866A (en) * 2014-03-31 2015-04-15 华为技术有限公司 Privacy protection method and terminal equipment
CN110046229A (en) * 2019-04-18 2019-07-23 北京百度网讯科技有限公司 For obtaining the method and device of information
CN111090362A (en) * 2018-10-23 2020-05-01 鸿合科技股份有限公司 Scene processing method and device and electronic equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101140496A (en) * 2007-10-23 2008-03-12 深圳市迅雷网络技术有限公司 Method and device for regulating column frame
CN101436195A (en) * 2008-10-30 2009-05-20 东软集团股份有限公司 Method and system for generating resource access entrance in Web user interface
CN101567068A (en) * 2009-05-18 2009-10-28 北京方正春元科技发展有限公司 Data-processing system used for financial information management
CN101625696A (en) * 2009-08-03 2010-01-13 孟智平 Method and system for constructing and generating video elements in webpage
CN101794314A (en) * 2010-03-12 2010-08-04 同济大学 Allopatry collaborative design informatization platform based on Web

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101140496A (en) * 2007-10-23 2008-03-12 深圳市迅雷网络技术有限公司 Method and device for regulating column frame
CN101436195A (en) * 2008-10-30 2009-05-20 东软集团股份有限公司 Method and system for generating resource access entrance in Web user interface
CN101567068A (en) * 2009-05-18 2009-10-28 北京方正春元科技发展有限公司 Data-processing system used for financial information management
CN101625696A (en) * 2009-08-03 2010-01-13 孟智平 Method and system for constructing and generating video elements in webpage
CN101794314A (en) * 2010-03-12 2010-08-04 同济大学 Allopatry collaborative design informatization platform based on Web

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
庞恒志: "基于WebKit的嵌入式浏览器研究与移植", 《中国优秀硕士学位论文全文数据库》, 15 March 2011 (2011-03-15) *

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104520866A (en) * 2014-03-31 2015-04-15 华为技术有限公司 Privacy protection method and terminal equipment
US10885218B2 (en) 2014-03-31 2021-01-05 Huawei Technologies Co., Ltd. Privacy protection method and terminal device
CN104158660A (en) * 2014-07-22 2014-11-19 乐视网信息技术(北京)股份有限公司 User authority switching method and system
CN111090362A (en) * 2018-10-23 2020-05-01 鸿合科技股份有限公司 Scene processing method and device and electronic equipment
CN111090362B (en) * 2018-10-23 2021-12-28 鸿合科技股份有限公司 Scene processing method and device and electronic equipment
CN110046229A (en) * 2019-04-18 2019-07-23 北京百度网讯科技有限公司 For obtaining the method and device of information
CN110046229B (en) * 2019-04-18 2021-07-23 北京百度网讯科技有限公司 Method and device for acquiring information

Also Published As

Publication number Publication date
CN102707890B (en) 2016-02-17

Similar Documents

Publication Publication Date Title
CN105516820A (en) Barrage interaction method and device
CN102857579B (en) Information processing method, device, terminal and server
CN105100003B (en) A kind of web game preloading method and device of client
CN101493837B (en) Network video playing method in multi-page browser and processing device
CN103425794B (en) Web preview method and apparatus based on double WebView
KR100848319B1 (en) Harmful web site filtering method and apparatus using web structural information
CN102546905A (en) Mobile terminal, method for realizing screen capture in same and system
CN106293355A (en) The method and apparatus that instant messaging window shows
CN107257510B (en) Video unified playing method, terminal and computer readable storage medium
CN102707890A (en) Browsing method and device for webpages
CN103139292A (en) Method for processing pictures in hyper text transmission protocol (HTTP) proxy and proxy server and system
CN104965838A (en) Page element processing method and page element processing apparatus
CN105072465A (en) Video play control method and electronic equipment
CN103686289A (en) Intelligent television keyboard input control method and intelligent television
CN105488051B (en) Webpage processing method and device
CN102033942A (en) Mobile communication equipment terminal-based tag display management method and system
CN102364957A (en) Method, device and equipment for playing internet videos
CN105072496A (en) Video comment display method, related equipment and system
CN102665137A (en) Method for controlling media player and terminal thereof
CN102325225A (en) Method and device for playing video of mobile phone website
US20130138770A1 (en) Apparatus and method for sharing web contents using inspector script
CN102981902A (en) Intelligent mobile terminal and screen protection method based on same
CN111669799A (en) Network connection method and device and electronic equipment
CN104537005A (en) Data processing method and device for webpage crawling
CN102207967A (en) Method and system for automatically providing new browser plugin

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
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20160217