CN102110168B - Method and device for extending functions of mobile terminal browser - Google Patents

Method and device for extending functions of mobile terminal browser Download PDF

Info

Publication number
CN102110168B
CN102110168B CN 201110063107 CN201110063107A CN102110168B CN 102110168 B CN102110168 B CN 102110168B CN 201110063107 CN201110063107 CN 201110063107 CN 201110063107 A CN201110063107 A CN 201110063107A CN 102110168 B CN102110168 B CN 102110168B
Authority
CN
China
Prior art keywords
plug
label information
label
module
unit
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.)
Expired - Fee Related
Application number
CN 201110063107
Other languages
Chinese (zh)
Other versions
CN102110168A (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 Wuju Technology Co Ltd
Original Assignee
Shenzhen Wuju Technology 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 Wuju Technology Co Ltd filed Critical Shenzhen Wuju Technology Co Ltd
Priority to CN 201110063107 priority Critical patent/CN102110168B/en
Publication of CN102110168A publication Critical patent/CN102110168A/en
Application granted granted Critical
Publication of CN102110168B publication Critical patent/CN102110168B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The invention belongs to the technical field of browsers, and particularly relates to a method and a device for extending functions of a mobile terminal browser. The method for extending the functions of the mobile terminal browser comprises the following steps of: a, starting the mobile terminal browser, and registering plug-in files; b, resolving page data and resources acquired from a network to acquire label information; c, judging whether the label information is nonstandard label information, if so, executing a step d; and d, searching a plug-in management list according to the nonstandard label information, and calling the corresponding plug-in files in the plug-in management list to process the web page data. When labels supported by nonstandard protocols occur, the network data are processed by calling the preregistered plug-in, so the functions of the browser are extended, the response speed is quickened, and the experience of a user is greatly improved.

Description

A kind of browser of mobile terminal method for developing functions and device
Technical field
The invention belongs to the browser technology field, relate in particular to a kind of browser of mobile terminal method for developing functions and device.
Background technology
At present, mobile phone has become requisite communication tool and converter tools in people's daily life, carries out the communication except utilizing mobile phone, and people can also utilize the surfing Internet with cell phone browsing page, download software etc.People's online for convenience, mobile phone need a browser as platform, and existing mobile phone browser function is simple, can not support the expansion of the corresponding plug-in unit of browser automatically, therefore influence user's satisfaction; In addition, when the webpage label information that gets access to when the mobile phone browser accession page was non-standard label information, browser was searched the label event less than correspondence in the label event tabulation, thereby can not handle page data and resource.
Summary of the invention
The invention provides a kind of browser of mobile terminal method for developing functions and device, be intended to solve in the prior art because the mobile phone browser function is simple, can not support the expansion of the corresponding plug-in unit of browser automatically, and accession page is when getting access to non-standard label information, the problem that can not handle page data and resource.
The present invention is achieved in that a kind of browser of mobile terminal method for developing functions, comprising:
Step a: start browser of mobile terminal, the registered plug-ins file obtains the label information that add-on file is supported, and label information is added in the plug-in management tabulation;
Step b: page data and the resource obtained from network are resolved, obtain label information;
Step c: judge whether described label information is non-standard label information, if described label information is non-standard label information, execution in step d;
Steps d: search the plug-in management tabulation according to non-standard label information, bookmark name is mated, in the plug-in management tabulation, find the bookmark name of coupling, return the plug-in unit store path of this bookmark name correspondence, add the corresponding plugin information that stores in the plug-in unit store path to the plug-in unit task list, trigger the task events in the plug-in unit task list, send message for browser place task, wherein, transmission packet is drawn together the label information of plug-in unit, and browser receives the processing messages that the plug-in unit task list sends over, according to the label information of plug-in unit in this message, call corresponding entrance function, web data is handled.
Technical scheme of the present invention also comprises: described step a specifically comprises:
Search corresponding add-on file title according to the plug-in registration task;
According to the add-on file title, open corresponding add-on file;
Read the label information that the described plug-in unit of top of file information acquisition of add-on file is supported.
Technical scheme of the present invention also comprises: in described step c, if described label information is standard label information, then search the label event tabulation, according to the label event of searching Webpage data and resource are handled.
Technical scheme of the present invention also comprises: in described steps d, described plug-in management tabulation is the list structure body, and described structure comprises the pointer that bookmark name, label information, the corresponding task ID of plug-in unit, plug-in unit are deposited the path and pointed to next label.
Another technical scheme that the present invention takes is: a kind of browser of mobile terminal function expanding device, comprise data resolution module, the label lookup module, memory module, the plug-in registration module, the plug-in management module, the label information judge module, the tag match module, information is added module and information sending module, described data resolution module is used for resolving page data and the resource obtained from network and obtains label information, described label lookup module is used for searching the label event tabulation, according to the label event of searching Webpage data and resource are handled, described memory module is used for memory card file and plug-in management tabulation, described plug-in registration module is used for the registered plug-ins file, described plug-in management module is used for obtaining the label information that described plug-in unit is supported, and label information added in the plug-in management tabulation, described label information judge module is used for judging whether label information is non-standard label information, if label information is non-standard label information, then search the plug-in management tabulation, described tag match module is used for non-standard label and the corresponding bookmark name of plug-in management tabulation are mated, and returns the plug-in unit store path of this bookmark name correspondence; Described information is added module and is added the plug-in unit task list to for the plugin information that the plug-in unit store path is stored; Information sending module is used for triggering the task events of plug-in unit task list, send message for browser place task, wherein, transmission packet is drawn together the label information of plug-in unit, browser sends the label information of plug-in unit in the message according to the plug-in unit task list, call corresponding entrance function, web data is handled.
Technical scheme of the present invention also comprises: described browser of mobile terminal function expanding device also comprises the bookmark name judge module, described bookmark name judge module is used for judging whether the plug-in management tabulation has the bookmark name of non-standard label correspondence, if there is not the bookmark name of non-standard label correspondence in the plug-in management tabulation, then point out the user to re-register the add-on file of non-standard label correspondence by the plug-in registration module, if the bookmark name of non-standard label correspondence is arranged in the plug-in management tabulation, then by the tag match module described non-standard label and corresponding bookmark name are mated.
Technical scheme of the present invention has following advantage or beneficial effect: browser of mobile terminal method for developing functions of the present invention and device pass through at the local memory card file of portable terminal, when starting browser, plug-in unit is registered and managed, calling the plug-in unit of registered in advance when running into the label of nonstandard protocol support handles network data, function to browser expands, accelerate response speed, improved user's Experience Degree greatly.
Description of drawings
Accompanying drawing 1 is the process flow diagram of browser of mobile terminal method for developing functions of the present invention;
Accompanying drawing 2 is process flow diagrams of the plug-in registration of browser of mobile terminal method for developing functions of the present invention;
Accompanying drawing 3 is form synoptic diagram of the add-on file of browser of mobile terminal method for developing functions of the present invention;
Accompanying drawing 4 is structural representations of browser of mobile terminal function expanding device of the present invention.
Embodiment
In order to make purpose of the present invention, technical scheme and advantage clearer, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein only in order to explaining the present invention, and be not used in restriction the present invention.
Seeing also Fig. 1, is the process flow diagram of browser of mobile terminal method for developing functions of the present invention.Browser of mobile terminal method for developing functions of the present invention may further comprise the steps:
Step 100: start browser of mobile terminal, carry out plug-in registration;
Wherein, portable terminal this locality stores add-on file, when starting browser, plug-in unit is registered.
Seeing also Fig. 2, is the process flow diagram of the plug-in registration of browser of mobile terminal method for developing functions of the present invention.The plug-in registration of browser of mobile terminal method for developing functions of the present invention may further comprise the steps:
Step 101: search corresponding add-on file title according to the plug-in registration task;
Step 102: according to the add-on file title, open corresponding add-on file;
See also Fig. 3, in step 102, add-on file comprises top of file information, label information, pictorial information and application file (APP file), and top of file information comprises plug-in unit ID (sign) number, plugin name, package types and plug-in version etc.; Label information comprises label skew, number of labels etc.; Pictorial information comprises picture skew, picture size etc.; Application file comprises application file skew, application file size, reserved field etc., and wherein, application file is the executable file of plug-in unit, has comprised processing to all event behaviors of plug-in unit etc.Move by the executable code in this APP file is loaded in the internal memory, make plug-in unit be moved.
Step 103: read the label information that this plug-in unit of top of file information acquisition of add-on file is supported, and this label information is added in the plug-in management tabulation;
Wherein, the plug-in management tabulation is a kind of list structure body, and this structure comprises the pointer that bookmark name, label information, the corresponding task ID of plug-in unit, plug-in unit are deposited the path and pointed to next label.
Step 110: browser is resolved page data and the resource obtained from network, obtains label information;
Step 120: judge whether this label information is non-standard label information, if this label information is standard label information, execution in step 130; If this label information is non-standard label information, execution in step 140;
Wherein, non-standard label is the label that nonstandard protocol is supported, label information is the label that standard agreement is supported.
Step 130: search the label event tabulation, according to the label event of searching Webpage data and resource are handled;
Step 140: according to the information searching plug-in management tabulation of this non-standard label, bookmark name is mated;
Step 150: in the plug-in management tabulation, find the bookmark name of coupling, return the plug-in unit store path of this bookmark name correspondence;
Step 160: add the corresponding plugin information that stores in the plug-in unit store path to the plug-in unit task list;
Step 170: trigger the task events in the plug-in unit task list, send message for browser place task;
Wherein, transmission packet is drawn together the contents such as label information of plug-in unit.
Step 180: browser receives the processing messages that the plug-in unit task list sends over, and according to the label information of plug-in unit in this message, calls entrance functions such as corresponding parsing, composing, demonstration, and web data is handled.
Seeing also Fig. 3, is the structural representation of browser of mobile terminal function expanding device of the present invention.Browser of mobile terminal function expanding device of the present invention comprises memory module, plug-in registration module, plug-in management module, data resolution module, label information judge module, label lookup module, bookmark name judge module, tag match module, information interpolation module and information sending module.Browser of mobile terminal function expanding device of the present invention is portable terminal.
Memory module is used for memory card file and plug-in management tabulation, and wherein, the plug-in management tabulation is a kind of list structure body, and this structure comprises the pointer that bookmark name, label information, the corresponding task ID of plug-in unit, plug-in unit are deposited the path and pointed to next label.
The plug-in registration module is used for the registered plug-ins file, the concrete grammar of registered plug-ins file is: determine the plug-in registration task, search corresponding add-on file title according to the plug-in registration task, according to the add-on file title, open corresponding add-on file, wherein, add-on file comprises top of file information, label information, pictorial information and application file, and top of file information comprises plug-in unit ID (sign) number, plugin name, package types and plug-in version etc.; Label information comprises label skew, number of labels etc.; Pictorial information comprises picture skew, picture size etc.; Application file comprises application file skew, application file size, reserved field etc.Application file is the executable file of plug-in unit, has comprised processing to all event behaviors of plug-in unit etc.Move by the executable code in this application file is loaded in the internal memory, make plug-in unit be moved.
The plug-in management module is used for reading the label information that this plug-in unit of top of file information acquisition of add-on file is supported, and this label information is added in the plug-in management tabulation.
Data resolution module is used for resolving page data and the resource of obtaining from network, obtains label information;
The label information judge module is used for judging whether label information is non-standard label information, if label information is standard label information, then by the tabulation of label lookup module searches label event; If label information is non-standard label information, then search the plug-in management tabulation by the bookmark name judge module; Wherein, non-standard label is the label that nonstandard protocol is supported, label information is the label that standard agreement is supported.
The label lookup module is used for searching the label event tabulation, according to the label event of searching Webpage data and resource is handled;
The bookmark name judge module is used for the information searching plug-in management tabulation according to non-standard label, judge in the plug-in management tabulation whether corresponding bookmark name is arranged, if do not have corresponding bookmark name in the plug-in management tabulation, then point out the user to re-register corresponding add-on file by the plug-in registration module, if in the plug-in management tabulation corresponding bookmark name is arranged, then by the tag match module this non-standard label and corresponding bookmark name are mated;
The tag match module is used for non-standard label and corresponding bookmark name are mated, and returns the plug-in unit store path of this bookmark name correspondence;
Information is added module and is added the plug-in unit task list to for the plugin information that the plug-in unit store path is stored;
Information sending module is used for triggering the task events of plug-in unit task list, send message for browser place task, the label information of plug-in unit in the processing messages that browser sends over according to the plug-in unit task list, call entrance functions such as corresponding parsing, composing, demonstration, web data is handled.Wherein, transmission packet is drawn together the contents such as label information of plug-in unit.
Browser of mobile terminal method for developing functions of the present invention and device pass through at the local memory card file of portable terminal, when starting browser, plug-in unit is registered and managed, calling the plug-in unit of registered in advance when running into the label of nonstandard protocol support handles network data, function to browser expands, accelerate response speed, improved user's Experience Degree greatly.
The above only is preferred embodiment of the present invention, not in order to limiting the present invention, all any modifications of doing within the spirit and principles in the present invention, is equal to and replaces and improvement etc., all should be included within protection scope of the present invention.

Claims (6)

1. browser of mobile terminal method for developing functions comprises:
Step a: start browser of mobile terminal, the registered plug-ins file; Obtain the label information that add-on file is supported, and label information is added in the plug-in management tabulation;
Step b: page data and the resource obtained from network are resolved, obtain label information;
Step c: judge whether described label information is non-standard label information, if described label information is non-standard label information, execution in step d;
Steps d: search the plug-in management tabulation according to non-standard label information, bookmark name is mated, in the plug-in management tabulation, find the bookmark name of coupling, return the plug-in unit store path of this bookmark name correspondence, add the corresponding plugin information that stores in the plug-in unit store path to the plug-in unit task list, trigger the task events in the plug-in unit task list, send message for browser place task, wherein, transmission packet is drawn together the label information of plug-in unit, and browser receives the processing messages that the plug-in unit task list sends over, according to the label information of plug-in unit in this message, call corresponding entrance function, web data is handled.
2. browser of mobile terminal method for developing functions according to claim 1 is characterized in that, described step a specifically comprises:
Search corresponding add-on file title according to the plug-in registration task;
According to the add-on file title, open corresponding add-on file;
Read the label information that the described plug-in unit of top of file information acquisition of add-on file is supported.
3. browser of mobile terminal method for developing functions according to claim 1 and 2, it is characterized in that, in described step c, if described label information is standard label information, then search the label event tabulation, according to the label event of searching Webpage data and resource are handled.
4. browser of mobile terminal method for developing functions according to claim 1 and 2, it is characterized in that, in described steps d, described plug-in management tabulation is the list structure body, and described structure comprises the pointer that bookmark name, label information, the corresponding task ID of plug-in unit, plug-in unit are deposited the path and pointed to next label.
5. browser of mobile terminal function expanding device, comprise data resolution module and label lookup module, described data resolution module is used for resolving page data and the resource obtained from network and obtains label information, described label lookup module is used for searching the label event tabulation, according to the label event of searching Webpage data and resource are handled, it is characterized in that, also comprise memory module, the plug-in registration module, the plug-in management module, the label information judge module, the tag match module, information is added module and information sending module, described memory module is used for memory card file and plug-in management tabulation, described plug-in registration module is used for the registered plug-ins file, described plug-in management module is used for obtaining the label information that described plug-in unit is supported, and label information added in the plug-in management tabulation, described label information judge module is used for judging whether label information is non-standard label information, if label information is non-standard label information, then search the plug-in management tabulation, described tag match module is used for non-standard label and the corresponding bookmark name of plug-in management tabulation are mated, and returns the plug-in unit store path of this bookmark name correspondence; Described information is added module and is added the plug-in unit task list to for the plugin information that the plug-in unit store path is stored; Information sending module is used for triggering the task events of plug-in unit task list, send message for browser place task, wherein, transmission packet is drawn together the label information of plug-in unit, browser sends the label information of plug-in unit in the message according to the plug-in unit task list, call corresponding entrance function, web data is handled.
6. browser of mobile terminal function expanding device according to claim 5, it is characterized in that, also comprise the bookmark name judge module, described bookmark name judge module is used for judging whether the plug-in management tabulation has the bookmark name of non-standard label correspondence, if there is not the bookmark name of non-standard label correspondence in the plug-in management tabulation, then point out the user to re-register the add-on file of non-standard label correspondence by the plug-in registration module, if the bookmark name of non-standard label correspondence is arranged in the plug-in management tabulation, then by the tag match module described non-standard label and corresponding bookmark name are mated.
CN 201110063107 2011-03-16 2011-03-16 Method and device for extending functions of mobile terminal browser Expired - Fee Related CN102110168B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201110063107 CN102110168B (en) 2011-03-16 2011-03-16 Method and device for extending functions of mobile terminal browser

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201110063107 CN102110168B (en) 2011-03-16 2011-03-16 Method and device for extending functions of mobile terminal browser

Publications (2)

Publication Number Publication Date
CN102110168A CN102110168A (en) 2011-06-29
CN102110168B true CN102110168B (en) 2013-09-25

Family

ID=44174329

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201110063107 Expired - Fee Related CN102110168B (en) 2011-03-16 2011-03-16 Method and device for extending functions of mobile terminal browser

Country Status (1)

Country Link
CN (1) CN102110168B (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103136034B (en) * 2011-11-25 2016-04-06 腾讯科技(深圳)有限公司 A kind of method of process information and browser
CN102495890A (en) * 2011-12-09 2012-06-13 上海全景数字技术有限公司 Embedded browser application extension system and method
CN102609267B (en) * 2012-02-16 2015-02-18 深圳市酷开网络科技有限公司 Plug-in unit management method based on Android browser and system therefor
CN102662737B (en) * 2012-03-14 2014-06-11 优视科技有限公司 Calling method and device of extension program
CN102685220A (en) * 2012-04-28 2012-09-19 苏州阔地网络科技有限公司 Method and system for data interaction based on WEB page
CN103618707B (en) * 2013-11-21 2016-08-24 福州市勘测院 WEB front-end quick calling system for managing numeralization city system
CN104391900A (en) * 2014-11-11 2015-03-04 百度在线网络技术(北京)有限公司 Method and device for searching plugin
IL237986A0 (en) * 2015-03-26 2015-11-30 Yaron Peretz Method and system for broadcasting browsing sessions
CN105516750B (en) * 2015-12-03 2019-04-30 深圳市茁壮网络股份有限公司 A kind of plug-in unit unloading and deletion and update method based on object label

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6857124B1 (en) * 1999-01-11 2005-02-15 Eolas Technologies, Inc. Method and system for hypermedia browser API simulation to enable use of browser plug-ins and applets as embedded widgets in script-language-based interactive programs
CN1808439A (en) * 2006-02-21 2006-07-26 西安迪戈科技有限责任公司 Method of adding searchable deep labels in web pages in conjunction with browser plug-ins and scripts
CN1959675A (en) * 2005-11-02 2007-05-09 国际商业机器公司 Method and browser for extending marking
CN101872348A (en) * 2009-04-22 2010-10-27 宏碁股份有限公司 Method for presenting plug-in program page frame in webpage browser as well as recording medium and product

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7171614B2 (en) * 2002-05-30 2007-01-30 Microsoft Corporation Displaying plug-in derived content in an application's browser-embedded window with callbacks

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6857124B1 (en) * 1999-01-11 2005-02-15 Eolas Technologies, Inc. Method and system for hypermedia browser API simulation to enable use of browser plug-ins and applets as embedded widgets in script-language-based interactive programs
CN1959675A (en) * 2005-11-02 2007-05-09 国际商业机器公司 Method and browser for extending marking
CN1808439A (en) * 2006-02-21 2006-07-26 西安迪戈科技有限责任公司 Method of adding searchable deep labels in web pages in conjunction with browser plug-ins and scripts
CN101872348A (en) * 2009-04-22 2010-10-27 宏碁股份有限公司 Method for presenting plug-in program page frame in webpage browser as well as recording medium and product

Also Published As

Publication number Publication date
CN102110168A (en) 2011-06-29

Similar Documents

Publication Publication Date Title
CN102110168B (en) Method and device for extending functions of mobile terminal browser
CN103873918B (en) Image processing method, device and terminal
CN104572843B (en) The loading method and device of a kind of page
CN102325185A (en) Android system mobile phone software-downloading method based on two-dimensional code recognition
CN107818046B (en) A/B test method and device for application program page
US20150288776A1 (en) Pushing Messages for Web Applications
CN102118736A (en) Mobile terminal and self-adaptive method and system thereof
CN105468707A (en) Cache-based data processing method and device
CN102323937A (en) Method and equipment for providing search result
US20130305131A1 (en) Method, system and computer storage medium for pre-reading network data
CN105122760A (en) Page operation processing method, device and terminal
CN103237088A (en) Corresponding relation library-based browsing method and system and cloud server
CN102117188A (en) Printing system and printing method
CN103023870A (en) Method, device and equipment for outputting data in message
CN104182429A (en) Web page processing method and terminal
CN101710921A (en) Method and system for updating numbering book of mobile terminal
CN107463657A (en) File operation method and terminal
CN112835809A (en) Test data setting method, device, equipment and medium based on browser
CN103593233A (en) Method and system for pushing software information
CN103294717A (en) Web page opening method and device based on double-kernel browser
CN109740014B (en) Screenshot management method, terminal device and storage medium
KR100876958B1 (en) A Middleware for Data Communication Between Various Terminals and Application Server and An Operating Method thereof
CN102222095A (en) Equipment for converting webpage to be displayed and method thereof
CN103440281A (en) Method, device and equipment for acquiring download file
CN102831179A (en) Webpage processing method and device

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

Granted publication date: 20130925

Termination date: 20140316