CN102193789A - Method and equipment for realizing configurable skip link - Google Patents

Method and equipment for realizing configurable skip link Download PDF

Info

Publication number
CN102193789A
CN102193789A CN2010101261227A CN201010126122A CN102193789A CN 102193789 A CN102193789 A CN 102193789A CN 2010101261227 A CN2010101261227 A CN 2010101261227A CN 201010126122 A CN201010126122 A CN 201010126122A CN 102193789 A CN102193789 A CN 102193789A
Authority
CN
China
Prior art keywords
skin
configuration file
information
link
configurable
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
CN2010101261227A
Other languages
Chinese (zh)
Other versions
CN102193789B (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.)
Tencent Technology Shenzhen 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 CN201010126122.7A priority Critical patent/CN102193789B/en
Publication of CN102193789A publication Critical patent/CN102193789A/en
Application granted granted Critical
Publication of CN102193789B publication Critical patent/CN102193789B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses a method and equipment for realizing a configurable skip link. The method comprises the following steps of: creating a skin file supporting the configurable skip link; generating an input method interface of the configurable skip link according to the skin file; and when a specific page needs to be browsed, skipping to the specific page according to the input method interface of the configurable skip link. In the invention, the skippable link is configured in the input method interface, so that skip of the link can be finished by a user via simple operation, and the user experience is improved. Moreover, the interface resource of an input method is used in the realization process of the skippable link, a novel platform is provided for the transmission of network information, and the using efficiency of the input method interface is increased. Furthermore, due to the adoption of the skippable link, the user can skip to a safe link, and the network access security is enhanced.

Description

A kind of method and apparatus of realizing configurable redirect link
Technical field
The present invention relates to networking technology area, particularly a kind of method and apparatus of realizing configurable redirect link.
Background technology
Fast development along with network technology, utilize traditional input technology, can carry out the input of literal or symbol, for example, can in specific document, import corresponding literal and symbol by using input equipment (for example, keyboard, mouse, scanner, speech recognition tools etc.).
And in the process of input; usually can use the interface of an input method status display strip; as shown in Figure 1; synoptic diagram for spelling input method status display strip in the prior art; in Fig. 1; when input characters or symbol; then input method all can provide the interface of the status display strip of a corresponding input method usually; can provide the status information of some inputs in the interface of this input method status display strip, for example: currently be input as literal or be locked as capitalization, input method type, input state etc.
But, because traditional input technology its objective is input characters, therefore, in the interface of input method status display strip, just show the status information of current input, for example, whether full-shape/the half-angle of literal opens soft keyboard etc.
Be understandable that in the use of input method, a characteristic of the interface of input method status display strip (being the interface of input method) is the foremost that always appears at all windows, the interface of this input method is the most directly perceived and ready-to-use window of user; And because the interface of input method only is used to show the status information of input, and the window of input only is used to show and the letter of input or the literal or the word of character associative, thus the waste of the interface resources of input method caused.
Summary of the invention
The invention provides a kind of method and apparatus of realizing configurable redirect link, the redirect link is configured in the interface of input method, thereby for the redirect link provides a brand-new display platform, and improve the service efficiency of interface of input method.
For achieving the above object, the invention provides a kind of method that realizes configurable redirect link, may further comprise the steps:
Create the skin file of supporting configurable redirect link; And generate the interface of input method of configurable redirect link according to described skin file;
When needs were browsed specified page, the interface of input method that links according to described configurable redirect jumped to described specified page.
Wherein, described skin file comprises: skin configuration file and picture configuration file;
The skin file of configurable redirect link is supported in described establishment, specifically comprises:
Obtain the information of described skin configuration file and the information of described picture configuration file, and according to the described skin configuration file of the information creating of described skin configuration file, and according to the described picture configuration file of the information creating of described picture configuration file;
Wherein, comprise in the following information one or more in the information of described skin configuration file, skin constitutes the type information of element, and skin constitutes attribute of an element information, and skin constitutes the action message of element; Comprise in the information of described picture configuration file that described skin constitutes the required pictorial information of element.
Wherein, generate the interface of input method that configurable redirect links, specifically comprise according to described skin file:
Resolve the information of the described skin configuration file in the described skin configuration file, and obtain described skin configuration file corresponding controls element;
Resolve the information of the described picture configuration file in the described picture configuration file, and obtain the picture element of described picture configuration file correspondence;
Generate complete control according to described control element, and generate the interface of input method that described configurable redirect links according to described complete control and picture element.
Wherein,
Generate complete control according to described control element, be specially: in internal memory, generate corresponding complete control according to described control element; Further comprise:
According to type and the mapping relations of type of memory and the type of described each control element of each control element, in internal memory, obtain the type of described complete control correspondence; The attribute of described complete control is set according to the attribute of described each control element; And in the described complete control of memory setting the logical relation between each control element and the flow direction of information between each control element, in internal memory, to generate described complete control.
Wherein, when needs were browsed specified page, the interface of input method that links according to described configurable redirect jumped to described specified page, specifically comprises:
Judge whether to trigger the complete control in the described interface of input method; If then the ID of the described link of carrying in the skin file according to described configurable redirect link connects corresponding server; Wherein, the ID of described link is kept in the described data in server storehouse in advance, is used to identify the legitimacy of described link;
And judge the ID that whether preserves described link in the database of described corresponding server; If, the link of then opening described specified page correspondence.
A kind of equipment of realizing configurable redirect link comprises:
Set up module, be used to create the skin file of supporting configurable redirect link;
Generation module is used for generating the interface of input method that configurable redirect links according to the described described skin file of setting up module creation;
Processing module is used for when needs are browsed specified page, and the interface of input method that the configurable redirect that generates according to described generation module links jumps to described specified page.
Wherein, described skin file comprises: skin configuration file and picture configuration file;
The described module of setting up specifically is used for, obtain the information of described skin configuration file and the information of described picture configuration file, and according to the described skin configuration file of the information creating of described skin configuration file, and according to the described picture configuration file of the information creating of described picture configuration file;
Wherein, comprise in the following information one or more in the information of described skin configuration file, skin constitutes the type information of element, and skin constitutes attribute of an element information, and skin constitutes the action message of element; Comprise in the information of described picture configuration file that described skin constitutes the required pictorial information of element.
Wherein, described generation module specifically comprises:
First obtains submodule, is used for resolving the information of the described skin configuration file of described skin configuration file, and obtains described skin configuration file corresponding controls element;
Second obtains submodule, is used for resolving the information of the described picture configuration file of described picture configuration file, and obtains the picture element of described picture configuration file correspondence;
Generate submodule, be used for obtaining the control element that submodule obtains and generate complete control, and obtain the interface of input method that picture element that submodule obtains generates described configurable redirect link according to described complete control and described second according to described first.
Wherein,
Described generation submodule also is used for, and generates corresponding complete control according to described control element in internal memory; Specifically be used for:
According to type and the mapping relations of type of memory and the type of described each control element of each control element, in internal memory, obtain the type of described complete control correspondence; The attribute of described complete control is set according to the attribute of described each control element; And in the described complete control of memory setting the logical relation between each control element and the flow direction of information between each control element, in internal memory, to generate described complete control.
Wherein, described processing module specifically comprises:
First judges submodule, is used for judging whether to trigger the complete control of described interface of input method;
The connexon module, be used for when described first judged result of judging submodule when being, the ID connection corresponding server of the described link of carrying in the skin file according to described configurable redirect link; Wherein, the ID of described link is kept in the described data in server storehouse in advance, is used to identify the legitimacy of described link;
Second judges submodule, and whether the database of the corresponding server that is used for judging that described connexon module connects preserves the ID of described link;
Processing sub, be used for when described second judged result of judging submodule when being, the link of then opening described specified page correspondence.
Compared with prior art, the present invention has the following advantages: but by configuration redirect link in interface of input method, make the user only just can finish the redirect of link by shirtsleeve operation, improved user's use experience.But and should redirect the implementation procedure of link utilized the interface resources of input method, for the transmission of the network information provides a brand-new platform, and improved the service efficiency of interface of input method.In addition, but should redirect link, can guarantee that the user jumps to safe chaining, and has improved the security of accesses network by using.
Description of drawings
Fig. 1 is an interface of input method synoptic diagram of the prior art;
A kind of method flow diagram of realizing configurable redirect link that Fig. 2 proposes for the present invention;
The method flow diagram that the configurable redirect of realization that Fig. 3 proposes down for a kind of concrete application scenarios of the present invention links;
Fig. 4 is the xml file content synoptic diagram of the description button of the present invention's proposition;
The design sketch of the interface of input method that the concrete application scenarios that Fig. 5 proposes for the present invention generates down;
The concrete application scenarios that Fig. 6 proposes for the present invention triggers the design sketch that jumps to specified page behind the button control in the interface of input method down;
A kind of device structure synoptic diagram of realizing configurable redirect link that Fig. 7 proposes for the present invention;
A kind of device structure synoptic diagram of realizing configurable redirect link under the concrete application scenarios of Fig. 8 for the present invention's proposition.
Embodiment
In prior art, the interface of input method form is single, and function is identical, and interface of input method effectively do not utilized as the necessary platform of man-machine interaction, has caused the problem of the waste of resource.The present invention proposes a kind of method and apparatus of realizing configurable redirect link interface of input method.And,, brought brand-new experience to the user simultaneously for the redirect link provides a brand-new display platform by realizing technical scheme provided by the invention.
Based on above-mentioned thought, the invention provides a kind of method that realizes configurable redirect link, as shown in Figure 2, this method may further comprise the steps:
Step 201 is created the skin file of supporting configurable redirect link.Wherein, described skin file comprises: skin configuration file and picture configuration file; The skin file of configurable redirect link is supported in described establishment, specifically comprise: obtain the information of described skin configuration file and the information of described picture configuration file, and according to the described skin configuration file of the information creating of described skin configuration file, and according to the described picture configuration file of the information creating of described picture configuration file; Wherein, comprise in the following information one or more in the information of described skin configuration file, skin constitutes the type information of element, and skin constitutes attribute of an element information, and skin constitutes the action message of element; Comprise in the information of described picture configuration file that described skin constitutes the required pictorial information of element.
Step 202 generates the interface of input method that configurable redirect links according to described skin file.
In this step, generate the interface of input method that configurable redirect links, specifically comprise: resolve the information of the described skin configuration file in the described skin configuration file, and obtain described skin configuration file corresponding controls element according to described skin file; Resolve the information of the described picture configuration file in the described picture configuration file, and obtain the picture element of described picture configuration file correspondence; Generate complete control according to described control element, and generate the interface of input method that described configurable redirect links according to described complete control and picture element.
Further, generate complete control according to described control element and be specially the complete control that in internal memory, generates correspondence according to described control element; Generating corresponding complete control according to described control element in internal memory further comprises: according to type and the mapping relations of type of memory and the type of described each control element of each control element, obtain the type of described complete control correspondence in internal memory; The attribute of described complete control is set according to the attribute of described each control element; And in the described complete control of memory setting the logical relation between each control element and the flow direction of information between each control element, in internal memory, to generate described complete control.
Step 203, when needs were browsed specified page, the interface of input method that links according to described configurable redirect jumped to described specified page.
Among the present invention, when needs were browsed specified page, the interface of input method that links according to described configurable redirect jumped to described specified page, specifically comprises: judge whether to trigger described complete control; If then the ID of the described link of carrying in the skin file according to described configurable redirect link connects corresponding server; Wherein, the ID of described link is kept in the described data in server storehouse in advance, is used to identify the legitimacy of described link; And judge the ID that whether preserves described link in the database of described corresponding server; If, the link of then opening described specified page correspondence.What need be illustrated is herein; in actual applications; employed information is not limited to the ID of this link when linking the legitimacy check; also can be other similar data; all can identify the information of link legitimacy all within protection domain of the present invention, give unnecessary details no longer in detail among the present invention.
As seen, the method that the application of the invention provides, but by configuration redirect link in interface of input method, make the user only just can finish the redirect of link by shirtsleeve operation, improved user's use experience.But and should redirect the implementation procedure of link utilized the interface resources of input method, for the transmission of the network information provides a brand-new platform, and improved the service efficiency of interface of input method.In addition, but should redirect link, can guarantee that the user jumps to safe chaining, and has improved the security of accesses network by using.
For technical scheme provided by the invention more clearly is described,, technical scheme of the present invention is elaborated below in conjunction with a kind of concrete application scenarios.As shown in Figure 3, for describing the method flow diagram of this configurable redirect link in the embodiment of the invention, this method may further comprise the steps:
Step 301 is created the skin file of supporting configurable redirect link, and wherein, this skin file includes but not limited to skin configuration file and picture configuration file.
Concrete, this skin configuration file has been described the configuration information of skin, and the information of this skin configuration file comprises one or more in the following information, and skin constitutes element information, and skin constitutes attribute of an element information, and skin constitutes the action message of element etc.; Comprise in the information of this picture configuration file that skin constitutes the required pictorial information of element.Certainly, in actual applications, the information of the information of this skin configuration file and picture configuration file can also comprise other information, gives unnecessary details no longer in detail among the present invention.
In this step, in the process of creating the skin file of supporting configurable redirect link, need obtain the information of skin configuration file and the information of picture configuration file earlier, and according to this skin configuration file of information creating of skin configuration file, and according to this picture configuration file of information creating of picture configuration file; Thereby create the skin file of supporting configurable redirect link according to this skin configuration file and picture configuration file.
In the present invention, based on extendability and simplicity, be that example describes this skin configuration file and picture configuration file in detail with xml (Extensible Markup Language, extend markup language) file.Certainly, in actual applications, can also use other file type that this skin configuration file and picture configuration file are described, the implementation of corresponding implementation and xml file is similar, gives unnecessary details no longer in detail among the present invention.
Concrete, xml file among the present invention mainly is the information that is used to describe the configuration information and the picture configuration file of this skin, for example, the skin of input method which element is made of, and which kind of attribute these yuan have and which kind of action etc. is arranged when moving these elements, wherein, the information of this skin configuration file can be the button (Button) of skin correspondence, window, interface elements such as picture box, and this button element, window elements, picture box element etc. are control element.
For the configuration information of this skin more clearly is described, is that example is further detailed with the button element among the present invention, and, repeats no more among the present invention for other information in the skin configuration information (window, interface elements such as picture box).
Concrete, at the xml file of this button element as shown in Figure 4, this xml file structure has been described the information of button element, and wherein, this button is a button control.In Fig. 4, this xml file description form the pictorial information of this button, and click event information that this button carries out etc.Certainly, in actual applications, can also use other information of this this button of xml file description, for example, describe the positional information of this button, the size information of this button etc. are given unnecessary details among the present invention no longer in detail.
In addition, it should be noted that, also need corresponding picture configuration file for a complete skin file.As can be seen from Figure 4, in description, comprise the field contents of MEMBERname=" PY_BTN_BKGROUND " remark=" picture " to button.Foregoing has been described and has specifically been represented the required information with picture of this button, has promptly described the picture that this button uses.
Concrete, in the field of the title of picture file being inserted configuration xml file, when the picture file that name need be called 123.png adds this xml file, only " " that the title of picture file need be written among the value=" " is that value=" 123.png " gets final product, thereby finished the description of the picture that this button is used.Being understandable that this picture file can be selected voluntarily by the user, can be the picture file that subscriber's local is preserved, and also can be the picture file in the Internet resources of user's appointment, and the present invention does not limit this.Wherein, when picture file was the picture file of subscriber's local preservation, the user need provide the storing path of this picture file, and when picture file was the picture file of Internet resources, the user need provide the link information of this picture file.What need be illustrated is herein, this picture file can be the png form, also can be BMP (Windows bitmap) form, PCX (PC paintbrush) form, PNG (portable network graphic) form, JPEG (Joint Photographic Experts Group) form, GIF (GIF(Graphic Interchange format)) form, TIFF (tagged image file format) form etc.
In sum, by using this xml file the skin configuration file and the picture configuration file of this button correspondence can be described promptly, and skin file is made up of skin configuration file and picture configuration file two parts, after generating skin configuration file and picture configuration file respectively, by with certain data structure (for example with both, compound document similar techniques such as the link of Microsoft Object Linking and Ebedding (OLE) object and embedding) pack, thereby can form the skin file of this button correspondence.And, also can use similar xml file for other control element, and promptly can use the xml file group to become corresponding skin file, promptly can create the skin file of supporting configurable redirect link according to each control element.
Step 302 when starting input method, loads skin file.Wherein, after having created the skin file of supporting configurable redirect link,, then can directly load this skin file if when having started input method.
Step 303 generates the interface of input method that configurable redirect links according to skin file.Wherein, the main body of carrying out this step can be the skin engine, certainly, can also be other functional entity in actual applications, is that example describes with the skin engine among the present invention.
Concrete, after having loaded skin file, this skin engine need be resolved this skin file, and this skin file is the xml configuration file among the present invention, and promptly this skin engine need generate the interface of input method of configurable redirect link according to the xml configuration file.
In the interface of input method process that generates configurable redirect link, at first, the skin engine need be resolved the information of the skin configuration file in the skin configuration file, and obtain described skin configuration file corresponding controls element, for example, resolve the skin configuration file when having described a button control information when the skin engine is resolved to, it is a button control element that the skin engine can get access to this control element according to this button control information.Secondly, the skin engine also needs to resolve the information of the picture configuration file in the picture configuration file, and the picture element of acquisition picture configuration file correspondence, for example, when the skin engine was resolved to the information of having described a picture element in the picture configuration file, then the skin engine can get access to the picture element of the information correspondence of this picture element according to this information.Once more, the skin engine can generate complete control according to control element, and generates the interface of input method that configurable redirect links according to this complete control and picture element.
Xml file at button element shown in Figure 4, when the skin engine when being resolved to above-mentioned xml file, can be according to the type declaration of control:<CONTROL class=" Button "〉judge current to create to as if a button, this button comprises all properties of xml file description among Fig. 4.Wherein, as can be seen from Figure 4, in description to button, comprise<MEMBER name=" EventScript " remark=" event scripts "〉field contents, according to this field contents, the skin engine can be known the descriptor of the interface of input method that generates configurable redirect link, generates the interface of input method of configurable redirect link then.The corresponding field description of foregoing click this button execution script incident, wherein, PCE_BN_CLICKED specifically represents the operation of this button required execution when clicked, can write concrete action in " " behind value=" " according to actual needs, for example, can write concrete link that needs redirect or the executable program that certain is concrete.
Further, skin engine type corresponding complete control in internal memory that need obtain control element according to the type of control element and the mapping relations of type of memory; Generate according to control element in the process of complete control, the skin engine need obtain the type of complete control correspondence according to type and the mapping relations of type of memory and the type of each control element of each control element in internal memory; And the attribute of complete control is set according to the attribute of each control element; And in the complete control of memory setting the logical relation between each control element and the flow direction of information between each control element, in internal memory, to generate described complete control.
Need to prove, owing to skin file is made up of skin configuration file and picture configuration file, when having skin file, also need a skin resolver to resolve corresponding data, and correctly use and manage these data, therefore, introduced the skin automotive engine system among the present invention.Wherein, this skin engine comprises control resolution system, control management system, graphic plotting system and script system at least, below respectively each system is elaborated.
(1) control resolution system.Wherein, this control resolution system is used for creating out the control element that meets description according to the internal memory that is described in of skin xml configuration file, for example, and a button control element, or a window control element etc.Wherein, the control resolution system attribute of mainly describing the establishment part of mapping part, control of type and type of memory and control by control is provided with part and forms.
Concrete, the mapping part of type and type of memory is described at control, stored a map listing, this map listing is represented a kind of mapping relations that exist of the type of control element and type of memory, and these mapping relations have been represented the corresponding relation of practical object in the type of a control element and the internal memory.For example, in the xml file<and CONTROL class=" Button "〉what represented current description is a button, when the control resolution system in the skin engine is resolved to this information, then can be by this mapping relationship searching to being described in the internal memory of the xml file object of a button that has been corresponding, this object is the control of corresponding button.
Establishment part at control, when the control resolution system in the skin engine is resolved to<CONTROLclass=" Button "〉the interface and found the type of button of mapping by mapping table after, then the creator of object will begin to create this object, promptly create the button corresponding controls.After establishment is finished, then generated the object of a button, and the object of this button can arrive in the control management system and accepts management.
Attribute at control is provided with part, after the control resolution system in the skin engine creates the button corresponding controls according to the control type that is resolved to, then the attribute of control is provided with part and can continues to be provided with according to the attribute description content of control, after setting was finished, the establishment of a control had also just been finished.
Be understandable that for other control type, processing procedure is similar with the processing procedure of the corresponding control of this button, gives unnecessary details no longer in detail among the present invention; Promptly the xml configuration file of a skin can be created out a lot of control element by the parsing of control skin engine, and the control management system that these control element that parse can be given in the skin engine manages.Wherein, the output of control resolution system may be to have created a window, also may be the control element of having created a button or the support of other its engines.
(2) control management system, this control management system is used to manage the control element that the control resolution system parses, and the window system of simulation windows manages and the flow direction and the processing of maintenance system message between intrinsic control the control set membership.Wherein, the xml configuration file of a skin can be created out a lot of interface elements by the control resolution system, manage and resolve these interface elements can give the control management system, be the similar window system of simulating windows of control management system, the control set membership is managed and the flow direction and the processing of maintenance system message between intrinsic control.For example, when having created a window A and also had a button B, button B is the child control of window A, then B can be in the front of A when drawing, and message should be to be routed to window earlier when accepting message, and A can receive message prior to B so, after being routed to A, at first be to attempt giving B to handle, B returns to A with result, and A as required logic again proceeds to handle.
(3) graphic plotting system, after the control management system was finished management to control element, the graphic plotting system was used for described control element combined with picture element and generates complete control, and draws the interface of input method that generates this configurable redirect link.
Concrete, control resolution system in the skin engine is finished the parsing of complete control, control management system in the skin engine is finished after the management of complete control, graphic plotting system in the skin engine combines control element and generates complete control with picture element, each control all can have own corresponding the displaying, it may only be the drafting (for example static text frame control) of text, also may be figure (for example, the simple button control, the button of a standard has four kinds of states: normal, mouse streaks, and presses, and is unavailable.All show in the general realization, also may contain the picture of state in 4 and show by one by four pictures) and draw the interface of input method that generates described configurable redirect link.Wherein, remove to describe a control howsoever and represent a control and give the user, finally all need graphing to output to display.
Among the present invention, can at first utilize the graphical analysis storehouse to load different picture files, in internal memory, create a memory bitmap then, all controls all are plotted on this memory bitmap, at last this memory bitmap is plotted to screen to internal memory.
(4) script system.This script system is used for resolving and carrying out the script event that the skin configuration file comprises.Wherein, the language of describing script event can have a variety of, for example, vbs, python, luna etc., these language all have distinctive resolver, and what should be illustrated is that the resolver of using in the script system includes but not limited to the resolver of above-mentioned language herein, this script system both can be placed on the skin engine internal simultaneously, also can be placed on the logical process part of application program.
Concrete, script is actually one section code, and promptly character string is described an operation by using script.This script can simply be realized by defining some key words and grammer, also can use script system (vbs, the python of specialty, luna etc.), for example, a button can trigger a certain incident or carry out a certain operation when pressing, just can realize by configuration script.And can make engine more powerful and configurability is higher, and need not revise code and recompilate program by the implementation of using script.Based on this script, this script system can be accepted one section script character string, resolves and carry out this section character string.
Step 304 judges whether to trigger the complete control that this establishment is finished; If then execution in step 305, otherwise execution in step 311.Wherein, on the interface of input method of configurable redirect link, have the information of this complete control, in this step, then need to judge whether to trigger the request of the complete control on this interface of input method.
Concrete, in the present embodiment, whether trigger that to create the control of finishing be to create whether clicked finishing of the button finished by judging.
Step 305 has judged whether that script event needs to carry out; If then execution in step 306, otherwise finish.
Concrete, when having triggered complete control, the skin engine can judge in the skin configuration file of the correspondence that parses whether include script event according to this complete control, if do not include script event, then finishes.
Step 306 is carried out script event.
Concrete, if comprise script event in the xml file that the skin engine parses, then need to carry out this script event.Wherein, the content of this script event is pre-set, for example, jumps to the link of appointment, and perhaps an application program etc. is touched in operation, is the link that jumps to appointment in the present embodiment.
Step 307, the ID of the link of carrying in the skin file according to configurable redirect link connects corresponding server.Wherein, the ID of this link is kept in the data in server storehouse in advance, is used to identify the legitimacy of link.What need be illustrated is herein; in actual applications; employed information is not limited to the ID of this link when linking the legitimacy check; also can be other similar data; all can identify the information of link legitimacy all within protection domain of the present invention, give unnecessary details no longer in detail among the present invention.
Concrete, the ID of this link is that for example, the ID of http://py.XXX.com is set at 100 to the predefined ID of the link of the page of wanting redirect, and this ID is kept in the database of server maintenance.When setting script event, be openurl::http no longer just: //py.XXX.com, but openurl::100.Set server URL (Uniform Resoure Locator uniform resource locator), for example, http://www.ABCD.com, the ID that preserves in then every database is pairing to be linked as legal link, the ID correspondence within all ID scopes of in database, not preserving be linked as illegal link.
Be openurl::http no longer just when further, setting script event: //py.XXX.com but openurl::100.Define a server URL (Uniform Resoure Locator uniform resource locator), for example http://www.ABCD.com; (URL is http://www.ABCD.com﹠amp at first can be with ID to jump to this server when button click; ID=100), after server receives request, be 100 by the ID that resolves the back, be redirected browser to http://py.XXX.com.
Step 308 is judged the ID that whether preserves link in the database of corresponding server; Be execution in step 309 then, otherwise execution in step 310.
Step 309 jumps to designated links, and carries out follow-up step 311.
Concrete, when having the ID of designated links in the database, ID=100 in the present embodiment, and when page or leaf is preserved the record of this ID=100 in the database of server maintenance, assert then that this ID is pairing is linked as legal link, and redirected browser is to http://py.XXX.com.
Step 310 jumps to the acquiescence link, and carries out follow-up step 311.
Concrete, in the present embodiment, when not preserving the information of this ID=100 in the database of server maintenance, assert then that this ID is pairing is linked as illegal link, be redirected browser this moment to the acquiescence link, this acquiescence is linked as predefined, as the http://www.ABCD.com in the present embodiment.
Step 311, script executing finishes.
For technical scheme provided by the invention more clearly is described,, technical scheme of the present invention is elaborated below in conjunction with a kind of concrete application scenarios.
Should use in the scene, the xml file description button control, the attribute information that comprises this button control (for example, the size of button, the position of button), (for example, jump to the page link of appointment, the link of appointment is an example with http://py.qq.com in the present embodiment to click the information of carrying out action behind this button control, but being not limited only to http://py.qq.com, can also be other any links).
The skin engine loads and resolves this xml file, generate a button control according to this xml file, after the attribute to this button control is provided with and manages, judge whether to trigger this button control (whether button control is clicked), if this button control is triggered and by after the safety inspection, then jump to the page of appointment, i.e. http://py.qq.com.
Just be linked as example in the present embodiment, can finish more operation by the configuration script incident in fact, for example define an execexe::explorer.exe, can realize that the button click control opens the operation of a program with one of redirect.If when configuration skin configuration file, use the script of specialty, then can carry out more complicated operations, for example, logical operation, graphics process, Network Transmission etc.
Need to prove, for a domestic consumer, want to set as required the attribute of control, then in the xml file, carry out writing and revising of code, this has increased user's burden undoubtedly, and among the present invention, by a kind of skin editing machine is provided, in order to simplify the user skin is configured process, this skin editing machine will pass through concrete visual window to the attribute setting of control in the xml file, dialog box and similar form are presented in face of the user, to make skin, the association attributes of configuration skin becomes visual, oversimplifies, for example when the user will dispose a redirect link for skin, the user only needed to import this link and gets final product in edit box.
As seen, the technical scheme that the application of the invention provides, but by configuration redirect link in interface of input method, make the user only just can finish the redirect of link by shirtsleeve operation, improved user's use experience.But and should redirect the implementation procedure of link utilized the interface resources of input method, for the transmission of the network information provides a brand-new platform, and improved the service efficiency of interface of input method.In addition, but should redirect link, can guarantee that the user jumps to safe chaining, and has improved the security of accesses network by using.In Fig. 5, be that interface of input method has disposed a button control by using method of the present invention, click this button control, browser will jump to the page of setting in the skin configuration file, in the present embodiment, be to jump to the http://py.qq.com page, the effect after the redirect is as shown in Figure 6, in Fig. 6, showed the full content of setting the page in the skin configuration file.
As can be seen,, make the user need not start the redirect that browser just can be finished the page, made full use of the interface resources of input method, simplified operation steps of user, improved operating efficiency by being interface of input method configuration button control.
Based on above-mentioned inventive concept, the invention allows for a kind of equipment of realizing configurable redirect link, as shown in Figure 7, comprising:
Set up module 10, be used to create the skin file of supporting configurable redirect link.
Generation module 20 is used for generating the interface of input method that configurable redirect links according to the described described skin file of setting up module 10 establishments.
Processing module 30 is used for when needs are browsed specified page, and the interface of input method that the configurable redirect that generates according to described generation module 20 links jumps to described specified page.
Concrete, based on above-mentioned inventive concept, the invention allows for a kind of equipment of realizing configurable redirect link, as shown in Figure 8, comprising:
Set up module 10, be used to create the skin file of supporting configurable redirect link.Wherein, described skin file comprises: skin configuration file and picture configuration file;
The described module 10 of setting up specifically is used for, obtain the information of described skin configuration file and the information of described picture configuration file, and according to the described skin configuration file of the information creating of described skin configuration file, and according to the described picture configuration file of the information creating of described picture configuration file; Wherein, comprise in the following information one or more in the information of described skin configuration file, skin constitutes the type information of element, and skin constitutes attribute of an element information, and skin constitutes the action message of element; Comprise in the information of described picture configuration file that described skin constitutes the required pictorial information of element.
Generation module 20 is used for generating the interface of input method that configurable redirect links according to the described described skin file of setting up module 10 establishments.
Wherein, described generation module 20 specifically comprises:
First obtains submodule 21, is used for resolving the information of the described skin configuration file of described skin configuration file, and obtains described skin configuration file corresponding controls element;
Second obtains submodule 22, is used for resolving the information of the described picture configuration file of described picture configuration file, and obtains the picture element of described picture configuration file correspondence;
Generate submodule 23, be used for obtaining the control element that submodule 21 obtains and generate complete control, and obtain the interface of input method that picture element that submodule 22 obtains generates described configurable redirect link according to described complete control and described second according to described first.
Further, described generation submodule 23 also is used for, and generates corresponding complete control according to described control element in internal memory; Specifically be used for:, in internal memory, obtain the type of described complete control correspondence according to type and the mapping relations of type of memory and the type of described each control element of each control element; The attribute of described complete control is set according to the attribute of described each control element; And in the described complete control of memory setting the logical relation between each control element and the flow direction of information between each control element, in internal memory, to generate described complete control.
Processing module 30 is used for when needs are browsed specified page, and the interface of input method that the configurable redirect that generates according to described generation module 20 links jumps to described specified page.
Wherein, described processing module 30 specifically comprises:
First judges submodule 31, is used for judging whether to trigger the complete control of described interface of input method;
Connexon module 32, be used for when described first judged result of judging submodule 31 when being, the ID connection corresponding server of the described link of carrying in the skin file according to described configurable redirect link; Wherein, the ID of described link is kept in the described data in server storehouse in advance, is used to identify the legitimacy of described link;
Second judges submodule 33, and whether the database of the corresponding server that is used for judging that described connexon module 32 connects preserves the ID of described link;
Processing sub 34, be used for when described second judged result of judging submodule 33 when being, the link of then opening described specified page correspondence.
As seen, the method that the application of the invention provides can allow the user only by shirtsleeve operation, does not need to move other software, just can finish the redirect of link, has improved efficient.
Through the above description of the embodiments, those skilled in the art can be well understood to the present invention and can realize by hardware, also can realize by the mode of software and necessary general hardware platform.Based on such understanding, technical scheme of the present invention can embody with the form of software product, it (can be CD-ROM that this software product can be stored in a non-volatile memory medium, USB flash disk, portable hard drive etc.) in, comprise some instructions with so that computer equipment (can be personal computer, server, the perhaps network equipment etc.) each implements the described method of scene to carry out the present invention.
It will be appreciated by those skilled in the art that accompanying drawing is a preferred synoptic diagram of implementing scene, module in the accompanying drawing or flow process might not be that enforcement the present invention is necessary.
It will be appreciated by those skilled in the art that the module in the device of implementing in the scene can be distributed in the device of implementing scene according to implementing scene description, also can carry out respective change and be arranged in the one or more devices that are different from this enforcement scene.The module of above-mentioned enforcement scene can be merged into a module, also can further split into a plurality of submodules.
The invention described above sequence number is not represented the quality of implementing scene just to description.
More than disclosed only be several concrete enforcement scene of the present invention, still, the present invention is not limited thereto, any those skilled in the art can think variation all should fall into protection scope of the present invention.

Claims (10)

1. a method that realizes configurable redirect link is characterized in that, may further comprise the steps:
Create the skin file of supporting configurable redirect link; And generate the interface of input method of configurable redirect link according to described skin file;
When needs were browsed specified page, the interface of input method that links according to described configurable redirect jumped to described specified page.
2. the method for claim 1 is characterized in that, described skin file comprises: skin configuration file and picture configuration file;
The skin file of configurable redirect link is supported in described establishment, specifically comprises:
Obtain the information of described skin configuration file and the information of described picture configuration file, and according to the described skin configuration file of the information creating of described skin configuration file, and according to the described picture configuration file of the information creating of described picture configuration file;
Wherein, comprise in the following information one or more in the information of described skin configuration file, skin constitutes the type information of element, and skin constitutes attribute of an element information, and skin constitutes the action message of element; Comprise in the information of described picture configuration file that described skin constitutes the required pictorial information of element.
3. method as claimed in claim 2 is characterized in that, generates the interface of input method that configurable redirect links according to described skin file, specifically comprises:
Resolve the information of the described skin configuration file in the described skin configuration file, and obtain described skin configuration file corresponding controls element;
Resolve the information of the described picture configuration file in the described picture configuration file, and obtain the picture element of described picture configuration file correspondence;
Generate complete control according to described control element, and generate the interface of input method that described configurable redirect links according to described complete control and picture element.
4. method as claimed in claim 3 is characterized in that,
Generate complete control according to described control element, be specially: in internal memory, generate corresponding complete control according to described control element; Further comprise:
According to type and the mapping relations of type of memory and the type of described each control element of each control element, in internal memory, obtain the type of described complete control correspondence; The attribute of described complete control is set according to the attribute of described each control element; And in the described complete control of memory setting the logical relation between each control element and the flow direction of information between each control element, in internal memory, to generate described complete control.
5. as claim 3 or 4 described methods, it is characterized in that when needs were browsed specified page, the interface of input method that links according to described configurable redirect jumped to described specified page, specifically comprises:
Judge whether to trigger the complete control in the described interface of input method; If then the ID of the described link of carrying in the skin file according to described configurable redirect link connects corresponding server; Wherein, the ID of described link is kept in the described data in server storehouse in advance, is used to identify the legitimacy of described link;
And judge the ID that whether preserves described link in the database of described corresponding server; If, the link of then opening described specified page correspondence.
6. an equipment of realizing configurable redirect link is characterized in that, comprising:
Set up module, be used to create the skin file of supporting configurable redirect link;
Generation module is used for generating the interface of input method that configurable redirect links according to the described described skin file of setting up module creation;
Processing module is used for when needs are browsed specified page, and the interface of input method that the configurable redirect that generates according to described generation module links jumps to described specified page.
7. equipment as claimed in claim 6 is characterized in that, described skin file comprises: skin configuration file and picture configuration file;
The described module of setting up specifically is used for, obtain the information of described skin configuration file and the information of described picture configuration file, and according to the described skin configuration file of the information creating of described skin configuration file, and according to the described picture configuration file of the information creating of described picture configuration file;
Wherein, comprise in the following information one or more in the information of described skin configuration file, skin constitutes the type information of element, and skin constitutes attribute of an element information, and skin constitutes the action message of element; Comprise in the information of described picture configuration file that described skin constitutes the required pictorial information of element.
8. equipment as claimed in claim 7 is characterized in that, described generation module specifically comprises:
First obtains submodule, is used for resolving the information of the described skin configuration file of described skin configuration file, and obtains described skin configuration file corresponding controls element;
Second obtains submodule, is used for resolving the information of the described picture configuration file of described picture configuration file, and obtains the picture element of described picture configuration file correspondence;
Generate submodule, be used for obtaining the control element that submodule obtains and generate complete control, and obtain the interface of input method that picture element that submodule obtains generates described configurable redirect link according to described complete control and described second according to described first.
9. equipment as claimed in claim 8 is characterized in that,
Described generation submodule also is used for, and generates corresponding complete control according to described control element in internal memory; Specifically be used for:
According to type and the mapping relations of type of memory and the type of described each control element of each control element, in internal memory, obtain the type of described complete control correspondence; The attribute of described complete control is set according to the attribute of described each control element; And in the described complete control of memory setting the logical relation between each control element and the flow direction of information between each control element, in internal memory, to generate described complete control.
10. equipment as claimed in claim 8 or 9 is characterized in that described processing module specifically comprises:
First judges submodule, is used for judging whether to trigger the complete control of described interface of input method;
The connexon module, be used for when described first judged result of judging submodule when being, the ID connection corresponding server of the described link of carrying in the skin file according to described configurable redirect link; Wherein, the ID of described link is kept in the described data in server storehouse in advance, is used to identify the legitimacy of described link;
Second judges submodule, and whether the database of the corresponding server that is used for judging that described connexon module connects preserves the ID of described link;
Processing sub, be used for when described second judged result of judging submodule when being, the link of then opening described specified page correspondence.
CN201010126122.7A 2010-03-17 2010-03-17 Method and equipment for realizing configurable skip link Active CN102193789B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201010126122.7A CN102193789B (en) 2010-03-17 2010-03-17 Method and equipment for realizing configurable skip link

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201010126122.7A CN102193789B (en) 2010-03-17 2010-03-17 Method and equipment for realizing configurable skip link

Publications (2)

Publication Number Publication Date
CN102193789A true CN102193789A (en) 2011-09-21
CN102193789B CN102193789B (en) 2015-05-13

Family

ID=44601911

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201010126122.7A Active CN102193789B (en) 2010-03-17 2010-03-17 Method and equipment for realizing configurable skip link

Country Status (1)

Country Link
CN (1) CN102193789B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105094547A (en) * 2015-07-17 2015-11-25 百度在线网络技术(北京)有限公司 Information interaction method and device based on background information of input method
CN105183281A (en) * 2015-08-28 2015-12-23 百度在线网络技术(北京)有限公司 Information processing method and apparatus
CN105245572A (en) * 2015-08-31 2016-01-13 百度在线网络技术(北京)有限公司 Method of realizing service through network and apparatus
CN106326396A (en) * 2016-08-19 2017-01-11 武汉斗鱼网络科技有限公司 Method and system for realizing page hopping by means of customized URL (Uniform Resource Locator) in mobile client
CN108563477A (en) * 2018-03-02 2018-09-21 北京奇艺世纪科技有限公司 A kind of page events response method and device

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101256490A (en) * 2008-03-18 2008-09-03 腾讯科技(深圳)有限公司 Expandable skin system and implementing method

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101256490A (en) * 2008-03-18 2008-09-03 腾讯科技(深圳)有限公司 Expandable skin system and implementing method

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105094547A (en) * 2015-07-17 2015-11-25 百度在线网络技术(北京)有限公司 Information interaction method and device based on background information of input method
CN105094547B (en) * 2015-07-17 2018-06-19 百度在线网络技术(北京)有限公司 Information interacting method and device based on input method background information
CN105183281A (en) * 2015-08-28 2015-12-23 百度在线网络技术(北京)有限公司 Information processing method and apparatus
CN105183281B (en) * 2015-08-28 2019-01-22 百度在线网络技术(北京)有限公司 Information processing method and device
CN105245572A (en) * 2015-08-31 2016-01-13 百度在线网络技术(北京)有限公司 Method of realizing service through network and apparatus
CN106326396A (en) * 2016-08-19 2017-01-11 武汉斗鱼网络科技有限公司 Method and system for realizing page hopping by means of customized URL (Uniform Resource Locator) in mobile client
CN106326396B (en) * 2016-08-19 2019-08-23 武汉斗鱼网络科技有限公司 The method and system of page jump are realized in mobile client using customized URL
CN108563477A (en) * 2018-03-02 2018-09-21 北京奇艺世纪科技有限公司 A kind of page events response method and device

Also Published As

Publication number Publication date
CN102193789B (en) 2015-05-13

Similar Documents

Publication Publication Date Title
Asakawa et al. Transcoding
US7860815B1 (en) Computer knowledge representation format, system, methods, and applications
US20110264705A1 (en) Method and system for interactive generation of presentations
KR100907671B1 (en) How to Edit Recording Media and Character Input
US8181104B1 (en) Automatic creation of cascading style sheets
US9122762B2 (en) Method and system to maintain a web page
US20150309993A1 (en) Agile Enterprise Globalization
US20080120596A1 (en) Cross domain presence of web user interface and logic
WO2009007181A1 (en) A method, system and computer program for intelligent text annotation
CN104412212A (en) Input method editor
US20040268256A1 (en) Program, character inputting and editing method, apparatus and storage medium
Bellucci et al. Automatic reverse engineering of interactive dynamic web applications to support adaptation across platforms
CN102193789B (en) Method and equipment for realizing configurable skip link
CN105955759A (en) Template engine realization method used for Web development
Paganelli et al. A tool for creating design models from web site code
JP6723976B2 (en) Test execution device and program
Fischer et al. Brassau: automatic generation of graphical user interfaces for virtual assistants
CN106991144B (en) Method and system for customizing data crawling workflow
JP2001125855A (en) Dynamic web page generation program
Akpınar et al. Heuristic role detection of visual elements of web pages
CN114968220A (en) Dynamic portal design method and device
Li et al. A Web application framework for end-user-initiative development with a visual tool
CN107463690B (en) Method and system for realizing quick link
Lauriat Advanced Ajax: architecture and best practices
CN112068826A (en) Text input control method, system, electronic device and storage medium

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