CN105373548A - Mobile device and event self-definition method for browser of mobile device - Google Patents

Mobile device and event self-definition method for browser of mobile device Download PDF

Info

Publication number
CN105373548A
CN105373548A CN201410421989.3A CN201410421989A CN105373548A CN 105373548 A CN105373548 A CN 105373548A CN 201410421989 A CN201410421989 A CN 201410421989A CN 105373548 A CN105373548 A CN 105373548A
Authority
CN
China
Prior art keywords
event
function
mobile device
customized
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
CN201410421989.3A
Other languages
Chinese (zh)
Other versions
CN105373548B (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 Yayue Technology Co ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201410421989.3A priority Critical patent/CN105373548B/en
Publication of CN105373548A publication Critical patent/CN105373548A/en
Application granted granted Critical
Publication of CN105373548B publication Critical patent/CN105373548B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses an event self-definition method for a browser. The method is applied between a mobile device and a webpage server. The method comprises the following steps: the mobile device provides an interface format for the webpage server; the mobile device receives behavior functions of self-defined events accordant with the interface format from the webpage server, wherein the behavior function of each self-defined event at least comprises an event type and a processing function; and the mobile device calls the corresponding processing function according to the event type to realize the setting of a system. The invention furthermore discloses the mobile device. According to the event self-definition method for the browser and the mobile device, the interface format is provided for the webpage server, and the behavior functions corresponding to different event types are received and called, so that self-defined events of various browsers are flexibility realized.

Description

The method of mobile device and browser customized event thereof
Technical field
The invention belongs to browser technology field, particularly relate to a kind of method of mobile device and browser customized event thereof.
Background technology
World Wide Web Consortium (WorldWideWebConsortium, W3C) elementary event of the javascript of tissue definition a lot of webpage (Web) front end, as mouse down event, double-click event, lose focus event etc., the appearance of these events, has enriched the ability of javascript greatly.Along with the arrival in mobile Internet epoch, webpage front end be in more and more consequence at mobile device.
Because the screen size difference of mobile device and PC (PersonalComputer, PC) is very large, this webpage design that directly results in can not directly be indiscriminately imitated mobile device from PC.In addition, mobile device also has a lot of special event, such as horizontal/vertical screen switching, wireless network switching etc., and defines beyond the critical field that W3C defines the process of these special events.
Therefore, need the framework of the customized event designing a set of browser based on mobile device, all kinds of special events realizing outside W3C standard to enable mobile device.
Summary of the invention
The object of the present invention is to provide a kind of method of mobile device and browser customized event thereof, the not exclusively applicable mobile device of script being intended to solve conventional web in prior art carries out the problem shown.
For solving the problems of the technologies described above, the embodiment of the present invention provides following technical scheme:
A method for browser customized event, is applied between mobile device and web page server, it is characterized in that, said method comprising the steps of:
Described mobile device provides interface format to described web page server;
Described mobile device receives the action-function meeting the customized event of described interface format from web page server, and the action-function of described customized event at least comprises event type and process function; And
Described mobile device calls corresponding process function according to described event type, realizes the setting to system.
For solving the problems of the technologies described above, the embodiment of the present invention provides following technical scheme:
A kind of mobile device, for communicating with web page server and supporting browser customized event, it is characterized in that, described mobile device comprises:
Browser module, for providing the interface format of browser customized event;
Communication module, for described interface format is sent to web page server, and receives the action-function meeting the customized event of interface format from web page server, and described action-function at least comprises event type and process function;
System setup module, for being called corresponding process function by described event type, realizes the setting to system;
Processor, for performing the function of described browser module, described communication module and described system setup module; And
Storer, for store described mobile device be in operation produce data.
Relative to prior art, the present invention is by providing interface format to web page server, and receive the action-function meeting the customized event of interface format, corresponding process function is called by event type, realize the setting to mobile device system, more flexible, promote user to the experience sense of browser.
Accompanying drawing explanation
Fig. 1 is the applied environment schematic diagram of the method for mobile device that in the present invention, an embodiment provides and browser customized event thereof;
Fig. 2 is the schematic flow sheet of the method for the browser customized event of the mobile device that one embodiment of the invention provides;
Fig. 3 is the registration of the browser customized event that one embodiment of the invention provides and the method refinement process flow diagram of un-register;
Fig. 4 is the refinement schematic flow sheet of the binding method of the browser customized event that one embodiment of the invention provides;
Fig. 5 is the refinement schematic flow sheet of the unbind method of the browser customized event that one embodiment of the invention provides;
Fig. 6 is the refinement schematic flow sheet of the disposal route from browser definition event that one embodiment of the invention provides;
Fig. 7 is the module diagram of the mobile device that one embodiment of the invention provides.
Embodiment
What please refer in accompanying drawing is graphic, and wherein identical element numbers represents identical assembly, and principle of the present invention implements to illustrate in a suitable computing environment.The following description is based on exemplified specific embodiments of the invention, and it should not be regarded as limiting the present invention not at other specific embodiment that this describes in detail.
In the following description, specific embodiments of the invention illustrate, unless otherwise stating clearly with reference to the step performed by or multi-section computing machine and symbol.Therefore, these steps and operation will have to mention for several times and performed by computing machine, and computing machine execution as referred to herein includes by representing with the operation of the computer processing unit of the electronic signal of the data in a structuring pattern.These data of this operation transformation or the position maintained in the memory system of this computing machine, its reconfigurable or other running changing this computing machine in the mode known by the tester of this area.The data structure that these data maintain is the provider location of this internal memory, and it has the particular characteristics defined by this data layout.But the principle of the invention illustrates with above-mentioned word, it is not represented as a kind of restriction, and this area tester can recognize that the plurality of step of the following stated and operation also may be implemented in the middle of hardware.
Principle of the present invention uses other wide usages many or specific purpose computing, communication environment or configuration to operate.The known example being suitable for arithmetic system of the present invention, environment and configuration can include, but is not limited to cell-phone, personal computer, server, multicomputer system, micro computer are system, body frame configuration computing machine and the distributed computing environment led, which includes any said system or device.
Term as used herein " module " can see the software object performed in this arithmetic system as.Different assembly as herein described, module, engine and service can see the objective for implementation in this arithmetic system as.And device and method as herein described is preferably implemented in the mode of software, certainly also can implement on hardware, all within scope.
Referring to Fig. 1, is the applied environment schematic diagram of the method for mobile device and browser customized event thereof in an embodiment in the present invention, comprises the mobile device 10 and PC 20, at least one web page server 40 and communication network 30 that are positioned at client.
Described web page server 40, for the web page contents that provides its type suitable to show for all types of clients (as mobile device 10 or PC 20) and form.
In the present invention, web page server 40 comprises an overall situation function in the page provided.Described overall situation function is used for calling to the browser of client, and generates the defined interface of the correspondence of each client.
Described communication network 30, typically refer to wireless network, comprise wireless wide area network (WirelessWideAreaNetwork, WWAN), WLAN (wireless local area network) (WirelessLocalAreaNetwork, WLAN), wireless MAN (WirelessMetropolitanAreaNetwork, and private wireless network (WirelessPersonalAreaNetwork, WPAN) WMAN).In the present invention, wireless wide area network is the most common, mainly comprises 3G system and 4G system etc.Certainly, do not get rid of yet and comprise other wired situations.
Described mobile device 10, not only comprise common smart mobile phone, personal digital assistant (PersonalDigitalAssistant, PDA), net book (Webpad) etc., also comprise other and storage element and microprocessor be installed and the terminating machine with arithmetic capability.
In the present invention, the browser of mobile device 10 provides interface (ApplicationProgrammingInterface, an API) form, carries out the process of browser customized event for web page server 40; Meanwhile, the webpage of web page server 40 provides an overall situation function, and when described customized event occurs, browser calls described overall situation function and processs and displays.
The interface provided by described browser and calling the overall situation function that webpage provides, realize browser customized event in mobile device 10, and the web page browsing for mobile device provides the operation of more property, promotes the experience sense of user when browsing webpage.
Please refer to following examples, wherein, embodiment 1 mainly sets forth core procedure of the present invention.The enforcement of customized event of the present invention can be refined into again three steps, comprises event registration and the event un-register of customized event, See Examples 2; The event binding of customized event and event unbind, See Examples 3 and embodiment 4; The triggering of customized event, See Examples 5; And possess the mobile device of browser customized event function, consult enforcement 6.
Embodiment 1
Refer to Fig. 2, be depicted as the method flow diagram of the browser customized event of mobile device provided by the invention, the method is applied between the mobile device 10 shown in Fig. 1 and web page server 40.
In step s 201, mobile device provides interface format to described web page server.
In one embodiment, mobile device provides a basic java script module, encapsulate the process having adjusted corresponding event handling function after above-mentioned event registration/event un-register, event binding/event unbind event and event trigger, namely, there is provided that encapsulate, a succinct interface to web page server, its form is as follows:
qb_bridge.addEventListener(type,handler);
Wherein type is event type, and handler is event handling function.
In another embodiment, also can provide interface for single incident type, its form is as follows:
qb_bridge.exec(null,null,service,action,{numHandlers:num});
Wherein, service is concrete event title, and action is behavior (registration/un-register), numHandlers mark binding number of times.The script javascript of web page server notifies browser registration or un-register customized event of specifying by calling this interface, and then the system of processor notice mobile device is registered or un-register described customized event.
In step S202, receive the action-function meeting the customized event of interface format from web page server.
In this step, described action-function at least comprises event type and process function, usually also comprises event title and event argument.
Described event type comprises: event registration, event un-register, event binding, event unbind, with event trigger in one or more.
In step S203, described mobile device calls corresponding process function by described event type, realizes the setting to system.
Being understandable that, if described type is registration, then by calling the process function of registration, system being realized to the setting of registration.If described type is un-register, then by calling the process function of un-register, system is realized to the setting of un-register.Specifically please refer to following examples.
Embodiment 2
Figure 3 shows that the event registration of the customized event that the embodiment of the present invention provides and the method refinement process flow diagram of event un-register.
In step S301, browser provides interface format, carries out registration and the un-register of customized event for web page server end.
In one embodiment, interface format is as follows:
qb_bridge.exec(null,null,service,action,{numHandlers:num});
Wherein, service is concrete event name, and action is behavior (registration/un-register), numHandlers mark binding number of times.Javascript is by calling this interface, and namely web page server notifies browser registration or un-register event of specifying, then the registration of browser notice mobile device system or this event of un-register.
In another embodiment, interface format is:
qb_bridge.addEventListener(type,handler);
Wherein type is event type, and handler is event handling function.
In step s 302, communication module receives the customized event type of the event registration that web page server sends.
Be understandable that: web page server according to the interface format of browser, can provide the customized event meeting its call format.
In step S303, processor writes the event title of described customized event in registration table.
Be understandable that: before step S303 performs, the step that one judges whether to have registered in registration table described event title can also be increased, if do not register described event title, then perform described step S302, if registered described event title, ignore or terminate the action-function of described registration.
Above, the event registration of customized event is just completed.
In step s 304, communication module receives the action-function of the event un-register that web page server sends.
In step S305, in registration table, delete the event title of described customized event.
Be understandable that: before step S305 performs, the step that one judges whether to exist in registration table described event registration information (i.e. event title) can also be increased, if there is described event registration information, perform described step S305, if there is no described event registration information, ignore the action-function of described event un-register.
Embodiment 3
Figure 4 shows that the refinement schematic flow sheet of the event binding method of the customized event that one embodiment of the invention provides.
In step S401, mobile device receives the event binding action-function of the browser customized event that web page server sends.
Be understandable that, described browser customized event comprises customized event title, event type, event argument, process function etc. that described event options is corresponding.
In step S402, mobile device judges whether described customized event is registered.
Be understandable that: the described judgement to event registration is performed by processor, and carry out inquiring about in the registration table of mobile device and judge.Wherein, as unregistered, then perform step S403; If registered, then perform step S404.
In step S403, in registration table, described customized event is registered.
In step s 404, judge whether there is the event argument that described customized event is corresponding in mapping block.
Be understandable that, the described judgement to corresponding event argument is performed by processor, and carries out inquiring about in mapping block and judge.
Described mapping block, also claims map container, for preserving the information of the customized event of binding, comprises the event type (key) of registration and corresponding event argument (value).Owing to allowing the multiple different process function of same event binding, in all value, maintain the queue of an event handling function.
Wherein, if the result judged is without corresponding option, then step S405 is performed; If there is corresponding option, then perform step S406.
In step S405, in mapping block, insert corresponding event argument.
In step S406, judge whether the process function that registered described event argument is corresponding.
Be understandable that, the described judgement to alignment processing function is performed by processor, and carries out inquiring about in mapping block and judge.
Wherein, if registered excessively corresponding process function, then performing step S407, without the need to changing, ignoring the action-function of described event binding.
If the process function of unregistered correspondence, then perform step S408, the process function of correspondence is added in the queue of mapping block.
Be understandable that: binding event handling function just inserts a record in this queue, just from this queue, deletes corresponding record during unbind.So how identify the function object in this queue? during the process function of each binding event, generate the attribute of a unique ID as process function, this ID uniquely can determine a function object.Above, the binding treating binding customized event is just completed.
Embodiment 4
Figure 5 shows that the refinement schematic flow sheet of the unbind method of the customized event that one embodiment of the invention provides.
In step S501, communication module receives the action-function of the event unbind that web page server sends.
In step S502, judge whether the event title of described event unbind is registered in registration table.
If described event title is unregistered, then in step S503, ignore or terminate the action-function of described event unbind.
If described event title is registered, then in step S504, judge the event argument of the whether registered correspondence of described event unbind.
If without the event argument of correspondence, then in step S503, the step of End Event unbind.
If there is corresponding event argument, then, in step S505, judge the process function of the whether registered correspondence of this event argument.
If unregistered excessively corresponding process function, then, in step S503, ignore or terminate the step of described event unbind.
Cross respective function if registered, then, in step S506, from the queue of mapping block, the process function of above-mentioned correspondence is deleted.
Above, the behavior to event unbind of customized event is just completed.
Be understandable that, in step S503, if the event of the customized event of unbind itself is unregistered, without the event argument of this customized event or without process function corresponding to this event argument, then without the need to event unbind, can directly ignore or terminate the step of described event unbind.
Embodiment 5
Fig. 6 is the refinement schematic flow sheet of the triggering method of the customized event that one embodiment of the invention provides.
In step s 601, communication module receives the action-function that web page server sends, and described action-function comprises event title, event object, event type, the event argument of customized event and processes function.
In one embodiment, the form of described action-function is as follows:
qb_bridge.fireEvent(type,option);
Wherein type is event type, and option is event argument.
In step S602, processor calls described action-function fireEvent (type, option), and generates an empty standard Event Event.
In step S603, event argument optition option is copied in standard Event Event.
In step s 604, from mapping block, corresponding process function queue is searched according to event type type.
In step s 605, perform process function, and execution result is passed to call back function.
Be understandable that: if directly event argument option option is passed to call back function, now there will be problem, because this is not a standard Event after all, the inside does not have the attribute of standard Event object, can report an error when operating these non-existent attributes in call back function.In order to head it off, before event argument option option is passed to call back function, an empty standard Event object Event is created by the self-defined process function document.createEvent calling browser, then in the Event of the copy content inside option, finally call back function is passed to.
Embodiment 6
Fig. 7 is the module diagram of the mobile device that one embodiment of the invention provides.Described mobile device 10 comprises processor 11, browser module 12, storer 13, communication module 14 and system setup module 15.Be understandable that, described mobile device 10 also comprises display, touch controlled key, speech input output device, and owing to designing without directly associating with of the present invention, therefore no longer this repeats.
Described processor 11, for performing the basic function of above-mentioned browser module 12, storer 13, communication module 14 and system setup module 15.In addition, processor 11, also for the treatment progress according to customized event, reads various information and judges from storer, and determines the execution step of above-mentioned basic function according to judged result.
Browser module 12, for providing the interface format of customized event, carries out the setting of customized event for web page server 40.
Wherein, the information of the customized event of browser, comprises event title, event type, event argument and event handling function.Corresponding relation is therebetween: event type can corresponding multiple event title; Event type can corresponding multiple event argument; An event argument can corresponding multiple process function.
In one embodiment, interface format is as follows:
qb_bridge.exec(null,null,service,action,{numHandlers:num});
Wherein, service is concrete event name, and action is behavior (registration/un-register), numHandlers mark binding number of times.Javascript is by calling this interface, and namely web page server notifies browser registration or un-register event of specifying, then the registration of browser notice mobile device system or this event of un-register.
In another embodiment, browser module 12 encapsulates above-mentioned registration/cancel register event by providing a basic java script module, the process of corresponding event handling function has been adjusted after binding/unbind event and event trigger, can be supplied to the API that web page server one is succinct, form is as follows:
qb_bridge.addEventListener(type,handler);
Wherein type is event type, and handler is event handling function.
Communication module 14, for carrying out wireless connections by communication network 30 and web page server 40.Be understandable that: described communication module, usually by wireless connections, as 3G, 4G etc.
In storer 13, the data of the generation that is in operation for storing mobile equipment.In a configuration embodiment, described storer comprises registration table and mapping block.
Wherein registration table, for preserving the registration of browser customized event.Be understandable that: after mobile device receives the registration of browser customized event, in registration table, increase a log-on message; After mobile device receives the un-register of browser customized event, processor judges whether there is corresponding log-on message in registration table, if had, then in registration table, carry out deletion action.
Mapping block, for preserving the event information of binding, wherein key is the event type of registration, and value is corresponding event information, owing to allowing the multiple different event handling function of same event binding, in all value, maintain the queue of an event handling function.Binding event handling function just inserts a record in this queue, just from this queue, deletes corresponding record during unbind.So how identify the function object in this queue? during the process function of each binding event, generate the attribute of a unique id as process function, this id uniquely can determine a function object.
System setup module, for when after reception event trigger information, is arranged the first floor system of mobile device, as horizontal/vertical screen switching, wireless network switching, volume adjusting etc.
Be understandable that: word used herein " preferably " means to be used as example, example or illustration.Any aspect that Feng Wen is described as " preferably " or design need not be interpreted as than other aspects or design more favourable.On the contrary, the use of word " preferably " is intended to propose concept in a concrete fashion.Term "or" as used in this application is intended to the "or" that means to comprise and the "or" of non-excluded.That is, unless otherwise or clear from the context, " X uses A or B " means any one that nature comprises arrangement.That is, if X uses A; X uses B; Or X uses both A and B, then " X uses A or B " is met in aforementioned arbitrary example.
And although illustrate and describe the disclosure relative to one or more implementation, those skilled in the art are based on to the reading of this instructions and accompanying drawing with understand and will expect equivalent variations and amendment.The disclosure comprises all such amendments and modification, and is only limited by the scope of claims.Especially about the various functions performed by said modules (such as element, resource etc.), term for describing such assembly is intended to the random component (unless otherwise instructed) corresponding to the appointed function (such as it is functionally of equal value) performing described assembly, even if be not structurally equal to the open structure of the function performed in exemplary implementations of the present disclosure shown in this article.In addition, although special characteristic of the present disclosure relative in some implementations only one be disclosed, this feature can with can be such as expect and other Feature Combinations one or more of other favourable implementations for given or application-specific.And, " comprise " with regard to term, " having ", " containing " or its distortion be used in embodiment or claim with regard to, such term is intended to comprise " to comprise " similar mode to term.
There is provided herein the various operations of embodiment.In one embodiment, described one or more operations can form the computer-readable instruction that one or more computer-readable medium stores, and it will make computing equipment perform described operation when serviced device performs.The order describing some or all of operation should not be interpreted as implying what these operations were necessarily sequentially correlated with.It will be appreciated by those skilled in the art that the alternative sequence of the benefit with this instructions.
In the above-described embodiments, the description of each embodiment is all emphasized particularly on different fields, in certain embodiment, there is no the part described in detail, see instructions detailed description in full, can repeat no more herein.
The method of a kind of mobile device that the embodiment of the present invention provides and browser customized event thereof belongs to same design, and its specific implementation process refers to instructions in full, repeats no more herein.
It should be noted that, for the method for a kind of mobile device of the present invention and browser customized event thereof, this area common test personnel are appreciated that all or part of flow process realizing application program operation method described in the embodiment of the present invention, that the hardware that can control to be correlated with by computer program has come, described computer program can be stored in a computer read/write memory medium, as being stored in the storer of client, and performed by least one processor in this terminal, can comprise in the process of implementation as described in the flow process of embodiment of operation method.Wherein, described storage medium can be magnetic disc, CD, read-only store-memory body (ROM) or random store-memory body (RAM) etc.
For the described games system of the embodiment of the present invention, its each functional module can be integrated in a process chip, also can be that the independent physics of modules exists, also can two or more module integrations in a module.Above-mentioned integrated module both can adopt the form of hardware to realize, and the form of software function module also can be adopted to realize.If described integrated module using the form of software function module realize and as independently production marketing or use time, also can be stored in a computer read/write memory medium, described storage medium such as be ROM (read-only memory), disk or CD etc.
In sum; although the present invention discloses as above with preferred embodiment; but above preferred embodiment is also not used to limit the present invention; the common test personnel of this area; without departing from the spirit and scope of the present invention; all can do various change and retouching, the scope that therefore protection scope of the present invention defines with claim is as the criterion.

Claims (15)

1. a method for browser customized event, is applied between mobile device and web page server, it is characterized in that, said method comprising the steps of:
Described mobile device provides interface format to described web page server;
Described mobile device receives the action-function meeting the customized event of described interface format from web page server, and the action-function of described customized event at least comprises event type and process function; And
Described mobile device calls corresponding process function according to described event type, realizes the setting to system.
2. the method for browser customized event as claimed in claim 1, it is characterized in that, described event type comprises: event registration, event un-register, event binding, event unbind, trigger with event in one or more.
3. the method for browser customized event as claimed in claim 2, it is characterized in that, described action-function also comprises: event title and event argument.
4. the method for browser customized event as claimed in claim 3, is characterized in that, when described event type is event registration, also comprise the steps:
Described event title write is positioned at the registration table of described mobile device.
5. the method for browser customized event as claimed in claim 3, is characterized in that, when described event type is event un-register, also comprise the steps:
Whether the registration table judging to be arranged in described mobile device has the event title of described customized event;
If there is no described event title in described registration table, then ignore the action-function that described event is cancelled; Or
If there is described event name to claim in described registration table, then described event title is deleted from described registration table.
6. the method for browser customized event as claimed in claim 3, is characterized in that, when described event type is event binding, also comprise the steps:
Whether the registration table judging to be arranged in described mobile device has the event title of described customized event;
If there is no described event title in described registration table, then by described event title write registration table;
If there is described event name to claim in described registration table, then to judge in mapping block whether described event argument;
If there is no described event argument, then in described mapping block, insert described event argument;
If there is described event argument, then to judge in described mapping block whether registered described process function;
If the described process function of registered mistake, then ignore the action-function of described event binding;
If the described process function of unregistered mistake, then join described process function in the function queue of described customized event.
7. the method for browser customized event as claimed in claim 3, is characterized in that, when described event type is event unbind, also comprise the steps:
Whether the registration table judging to be arranged in described mobile device has the event title of described customized event;
If there is described event name to claim in described registration table, then judge the event argument whether having described customized event in described mapping block;
If have described event argument in described registration table, then judge the process function whether having described customized event in described mapping block;
If whether there is the process function of described customized event in described mapping block, then from the queue of described mapping block, above-mentioned process function is deleted; Or
If the judged result in above-mentioned arbitrary step is not for having, then can ignore the action-function of described event unbind.
8. the method for browser customized event as claimed in claim 3, is characterized in that, when described event type is event triggering, also comprises the steps:
Receive the action-function that described web page server sends, described action-function comprises described event type, event argument and process function;
Call described action-function, and generate an empty standard Event;
Described event argument is write described standard Event;
The event type corresponding according to described event argument searches corresponding one or more process functions from mapping block; And
Perform described process function, and execution result is passed to call back function.
9. a mobile device, for communicating with web page server and supporting browser customized event, it is characterized in that, described mobile device comprises:
Browser module, for providing the interface format of browser customized event;
Communication module, for described interface format is sent to web page server, and receives the action-function meeting the customized event of interface format from web page server, and described action-function at least comprises event type and process function;
System setup module, for being called corresponding process function by described event type, realizes the setting to system;
Processor, for performing the function of described browser module, described communication module and described system setup module; And
Storer, for store described mobile device be in operation produce data.
10. mobile device as claimed in claim 9, it is characterized in that, described event type comprises: event registration, event un-register, event binding, event unbind, trigger with event in one or more.
11. mobile devices as claimed in claim 10, it is characterized in that, described customized event comprises: one or more in event title, event type, event argument and process function.
12. mobile devices as claimed in claim 11, it is characterized in that, described storer comprises registration table, cancels relevant event title for storing to described event registration or described event registration.
13. mobile devices as claimed in claim 11, device is characterised in that, described storer also comprises mapping block, for storing the corresponding relation of event title, event type, event argument and the process function relevant to described event binding or described event unbind.
14. mobile devices as claimed in claim 13, is characterized in that, event type at least one event argument corresponding in described mapping block, event argument at least one process function corresponding.
15. mobile devices as claimed in claim 14, is characterized in that, described process function is preserved with queue form in described mapping block, and each process function generates unique function ID when binding.
CN201410421989.3A 2014-08-25 2014-08-25 Mobile device and method for customizing event by browser thereof Active CN105373548B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410421989.3A CN105373548B (en) 2014-08-25 2014-08-25 Mobile device and method for customizing event by browser thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410421989.3A CN105373548B (en) 2014-08-25 2014-08-25 Mobile device and method for customizing event by browser thereof

Publications (2)

Publication Number Publication Date
CN105373548A true CN105373548A (en) 2016-03-02
CN105373548B CN105373548B (en) 2020-10-13

Family

ID=55375755

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410421989.3A Active CN105373548B (en) 2014-08-25 2014-08-25 Mobile device and method for customizing event by browser thereof

Country Status (1)

Country Link
CN (1) CN105373548B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105808259A (en) * 2016-03-09 2016-07-27 北京京东尚科信息技术有限公司 Method for view element to dynamically configure response event, mobile terminal and server
CN106126233A (en) * 2016-06-24 2016-11-16 武汉斗鱼网络科技有限公司 A kind of event scheduling method and device based on ejector
CN108958905A (en) * 2017-05-25 2018-12-07 北京忆恒创源科技有限公司 The lightweight operating system of embedded multi-core central processing unit
CN109246177A (en) * 2018-07-04 2019-01-18 武汉斗鱼网络科技有限公司 Asynchronous communication tool design method in Android
CN111781478A (en) * 2019-03-18 2020-10-16 北京北方华创微电子装备有限公司 Component service life monitoring method and system
CN112131500A (en) * 2020-09-25 2020-12-25 北京锐安科技有限公司 Event response device and method, electronic equipment and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102882982A (en) * 2012-10-19 2013-01-16 北京奇虎科技有限公司 Browser message sending equipment, browser message receiving equipment, communication method and communication system
CN103455405A (en) * 2012-06-04 2013-12-18 阿里巴巴集团控股有限公司 Method and system for preventing button from being clicked repeatedly and method and system for unlocking button

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103455405A (en) * 2012-06-04 2013-12-18 阿里巴巴集团控股有限公司 Method and system for preventing button from being clicked repeatedly and method and system for unlocking button
CN102882982A (en) * 2012-10-19 2013-01-16 北京奇虎科技有限公司 Browser message sending equipment, browser message receiving equipment, communication method and communication system

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
KUANGXIANG_PANPAN: "浏览器事件机制与自定义事件的实现", 《CSDN》 *
成富: "HTML5 服务器推送事件(Server-sent Events)实战开发", 《IBM》 *

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105808259A (en) * 2016-03-09 2016-07-27 北京京东尚科信息技术有限公司 Method for view element to dynamically configure response event, mobile terminal and server
CN106126233A (en) * 2016-06-24 2016-11-16 武汉斗鱼网络科技有限公司 A kind of event scheduling method and device based on ejector
CN108958905A (en) * 2017-05-25 2018-12-07 北京忆恒创源科技有限公司 The lightweight operating system of embedded multi-core central processing unit
CN108958905B (en) * 2017-05-25 2024-04-05 北京忆恒创源科技股份有限公司 Lightweight operating system of embedded multi-core central processing unit
CN109246177A (en) * 2018-07-04 2019-01-18 武汉斗鱼网络科技有限公司 Asynchronous communication tool design method in Android
CN109246177B (en) * 2018-07-04 2021-04-27 武汉斗鱼网络科技有限公司 Method for designing asynchronous communication tool in Android
CN111781478A (en) * 2019-03-18 2020-10-16 北京北方华创微电子装备有限公司 Component service life monitoring method and system
CN112131500A (en) * 2020-09-25 2020-12-25 北京锐安科技有限公司 Event response device and method, electronic equipment and storage medium
WO2022062835A1 (en) * 2020-09-25 2022-03-31 北京锐安科技有限公司 Event response apparatus and method, electronic device, and storage medium
CN112131500B (en) * 2020-09-25 2023-11-07 北京锐安科技有限公司 Event response device, method, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN105373548B (en) 2020-10-13

Similar Documents

Publication Publication Date Title
CN105373548A (en) Mobile device and event self-definition method for browser of mobile device
US10642904B2 (en) Infrastructure enabling intelligent execution and crawling of a web application
US9008693B2 (en) Method and apparatus for information aggregation around locations
CN104426925B (en) Web page resources acquisition methods and device
CN106547580B (en) Method and device for hooking function, mobile terminal and storage medium
CN110688600A (en) Online editing method, device and equipment based on HTML (Hypertext markup language) page and storage medium
CN110086877A (en) Application program sharing, sharing information display methods, device, equipment and medium
CN110187880B (en) Method and device for identifying similar elements and computing equipment
CN105528132B (en) Text Entry display methods and device applied to browser
CN107908442B (en) Spring-based resource loading method and device, terminal equipment and computer-readable storage medium
CN106569856A (en) Method and device of loading application view resource file
CN103559194B (en) A kind of searching method, server, system
CN104954894A (en) Video traffic guiding method and device as well as electronic equipment
CN105095220B (en) A kind of browser implementation method, terminal and virtualization agent device
CN114095567A (en) Data access request processing method and device, computer equipment and medium
CN105320662B (en) Webpage generating method and device
CN107678741B (en) List view implementation method and device, readable storage medium and equipment
CN103309695A (en) Icon loading method and terminal
CN114443024B (en) Method and system for realizing visualized UI (user interface) dragging layout without limitation of nested hierarchy
CN107741934A (en) page processing method and page processing system
CN109240756A (en) A kind of method and device of dynamically load JavaScript module
CN106682014B (en) Game display data generation method and device
CN105404672B (en) The system and method for web data storage and operation
CN106372158A (en) Method and device for processing user behavior data
CN111026945B (en) Multi-platform crawler scheduling method, device and storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20221114

Address after: 1402, Floor 14, Block A, Haina Baichuan Headquarters Building, No. 6, Baoxing Road, Haibin Community, Xin'an Street, Bao'an District, Shenzhen, Guangdong 518,101

Patentee after: Shenzhen Yayue Technology Co.,Ltd.

Address before: 2, 518000, East 403 room, SEG science and Technology Park, Zhenxing Road, Shenzhen, Guangdong, Futian District

Patentee before: TENCENT TECHNOLOGY (SHENZHEN) Co.,Ltd.