CN107306308B - Page response method and device - Google Patents

Page response method and device Download PDF

Info

Publication number
CN107306308B
CN107306308B CN201610247570.XA CN201610247570A CN107306308B CN 107306308 B CN107306308 B CN 107306308B CN 201610247570 A CN201610247570 A CN 201610247570A CN 107306308 B CN107306308 B CN 107306308B
Authority
CN
China
Prior art keywords
event
registration
touch screen
key
focusable
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201610247570.XA
Other languages
Chinese (zh)
Other versions
CN107306308A (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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN201610247570.XA priority Critical patent/CN107306308B/en
Priority to PCT/CN2016/101686 priority patent/WO2017181619A1/en
Publication of CN107306308A publication Critical patent/CN107306308A/en
Application granted granted Critical
Publication of CN107306308B publication Critical patent/CN107306308B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/725Cordless telephones
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/72445User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality for supporting Internet browser applications

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • User Interface Of Digital Computer (AREA)
  • Input From Keyboards Or The Like (AREA)
  • Telephone Function (AREA)

Abstract

The invention provides a page response method and a page response device, wherein the method comprises the following steps: in the page loading process, converting the registration of a touch screen event in a page into the registration of a key event; after the page is loaded, acquiring a first focusable element applied to a touch screen in a webpage, and converting the first focusable element into a second focusable element applied to a key; by triggering the response operation of the second focusable element through the key event, the technical scheme is adopted to solve the problem that the key event of the physical key cannot be used for browsing the webpage based on the touch screen for the mobile phone with the physical key in the related technology, so that the user still can respond to most of the pages based on the touch screen in the current market even if the user uses the low-end mobile phone with only the physical key, and the user experience is greatly improved.

Description

Page response method and device
Technical Field
The invention relates to the field of communication, in particular to a page response method and a page response device.
Background
Although the current mobile phone based on the touch screen is dominant in the market, the key press machine based on the keyboard operation still occupies a wide user market. However, the biggest problem in using the key press machine is that it is very difficult to perform internet access operation in the ordinary browser of the mobile phone, because various touch screen-based web pages (such as website address containing "\\ touch", etc.) are often received when browsing websites on the keyboard machine. Because the attributes and events related to each element in the web pages are designed based on the current touch screen gesture trigger, the conventional browser key focusing navigation method cannot normally browse the web pages, for example, the conventional browser key focusing navigation method cannot focus on a link to open a new web page, cannot focus on an input box to perform input and submit operation, and the like.
In early browsers supporting keyboard machines, navigation browsing in web pages by means of keyboard operations was mainly performed by the following methods: marking an A label containing a website link, an INPUT label capable of being INPUT, and other labels (such as DIV, BUTTON and the like) which are registered with a keyboard confirmation event (such as an OK key event or an ENTER key event) response transaction as focusable elements; when a user navigates on a webpage by using a keyboard direction key, focusing display is carried out on the focusable elements in sequence; when a key confirmation event occurs on the focusing element, event transaction processing registered by the element can be responded, such as opening a new link, submitting input and the like;
the key webpage navigation method of the common browser generally has no problem for the early simple mobile phone webpage browsing. However, with the development of Hypertext Markup Language (HTML) 5, mobile phone web pages become more complex and diversified. Especially, a large number of web pages designed for the touch screen terminal completely abandon the design of supporting keyboard navigation in the past: firstly, the transaction registration of the event is not performed on each element which needs to respond to the event specifically, but the touch event is managed uniformly through the JS framework of the element, and secondly, the keyboard is not used for confirming the event, and only the touch event (such as touch START and touch END) is focused. Thus, elements with focus attributes cannot be captured by using the traditional method, and even if the elements can be focused, key events cannot be responded, so that the keys cannot be used for navigation browsing on the web pages of the touch screens.
Aiming at the problem that the mobile phone with the physical keys cannot browse the webpage based on the touch screen by using the key events of the physical keys in the related technology, an effective solution is not provided.
Disclosure of Invention
The embodiment of the invention provides a page response method and a page response device, which at least solve the problem that in the related art, for a mobile phone with a physical key, a webpage based on a touch screen cannot be browsed by using a key event of the physical key.
According to an aspect of the present invention, there is provided a page response method, including:
in the page loading process, converting the registration of a touch screen event in a page into the registration of a key event; after the page is loaded, acquiring a first focusable element applied to a touch screen in a webpage, and converting the first focusable element into a second focusable element applied to a key; triggering a response operation on the second focusable element through the key event.
Optionally, converting the registration of the touch screen event in the page into the registration of the key event includes:
when it is monitored that the page is subjected to event transaction registration, judging whether the event transaction registration is the registration of a touch screen event;
if yes, stopping the current event transaction registration process, and loading the registration of the key event into the event transaction registration.
Optionally, the determining whether the event transaction registration is a registration of a touch screen event includes:
judging whether the event transaction registration exists in a preset feature set or not;
if so, judging that the event transaction is registered as the registration of the touch screen event;
if not, the event transaction is judged to be registered as the key event.
Optionally, before the first focusable element applied to the touch screen in the web page is acquired, the method further includes:
screening focusable elements in a preset feature set from focusable elements of all labels of the webpage;
and taking the screened focusable element as a first focusable element of the touch screen.
Optionally, the feature set includes at least: a gesture event indicated by a touch screen event, a property feature of the first focusable element, wherein the property feature comprises: key information of the response event.
Optionally, the feature set is updated when a predetermined time comes.
According to another aspect of the present invention, there is also provided a page response apparatus, including:
the conversion module is used for converting the registration of the touch screen event in the page into the registration of the key event in the page loading process; the device comprises an acquisition module, a display module and a control module, wherein the acquisition module is used for acquiring a first focusable element applied to a touch screen in a webpage after the webpage is loaded, and converting the first focusable element into a second focusable element applied to a key; and the triggering module is used for triggering response operation on the second focusable element through the key event.
Optionally, the conversion module includes: the judging unit is used for judging whether the event transaction registration is the registration of the touch screen event or not when the situation that the event transaction registration is carried out on the page is monitored; the stopping unit is used for stopping the current event transaction registration process when the event transaction is registered as the registration of the touch screen event; and the loading unit is used for loading the registration of the key event into the event transaction registration.
Optionally, the determining unit is further configured to determine whether the event transaction registration exists in a preset feature set; if so, judging that the event transaction is registered as the registration of the touch screen event; if not, the event transaction is judged to be registered as the key event.
Optionally, the apparatus further comprises: the screening module is used for screening out focusable elements in a preset feature set from focusable elements of all labels of the webpage; and the determining module is used for taking the screened focusable elements as first focusable elements of the touch screen.
By the method, the registration of the touch screen event in the page is converted into the registration of the key event; after the page is loaded, a first focusable element applied to a touch screen in a webpage is obtained, the first focusable element is converted into a second focusable element applied to a key, and then response operation to the second focusable element is triggered through the key event.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
FIG. 1 is a flow diagram of a page response method according to an embodiment of the invention;
fig. 2 is a block diagram of a structure of a page response apparatus according to an embodiment of the present invention;
fig. 3 is a block diagram of the structure of the conversion module 20 of the page response apparatus according to the embodiment of the present invention;
FIG. 4 is another block diagram of the page response apparatus according to the embodiment of the present invention;
FIG. 5 is a block diagram showing the overall construction of the preferred embodiment 1 according to the present invention;
FIG. 6 is a flowchart of the main processing flow of touch screen event registration conversion according to the preferred embodiment 1 of the present invention;
fig. 7 is a flowchart of a main process of capturing a focusable element when a direction key navigates in a web page according to the preferred embodiment 1 of the present invention.
Detailed Description
The invention will be described in detail hereinafter with reference to the accompanying drawings in conjunction with embodiments. It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order.
In this embodiment, a page response method is provided, and fig. 1 is a flowchart of a page response method according to an embodiment of the present invention, as shown in fig. 1, the flowchart includes the following steps:
step S102, in the page loading process, the registration of the touch screen event in the page is converted into the registration of the key event;
step S104, after the page is loaded, acquiring a first focusable element applied to the touch screen in the webpage, and converting the first focusable element into a second focusable element applied to the key;
and step S106, triggering response operation on the second focusable element through a key event.
Through the steps, the registration of the touch screen event in the page is converted into the registration of the key event; after the page is loaded, a first focusable element applied to the touch screen in the webpage is obtained, the first focusable element is converted into a second focusable element applied to the key, and then response operation on the second focusable element is triggered through a key event.
There are many implementation manners for step S102, and in an optional example of the embodiment of the present invention, the conversion of the registration of the touch screen event in the page into the registration of the key event may be implemented by: when it is monitored that the page is subjected to event transaction registration, judging whether the event transaction registration is the registration of the touch screen event; if so, stopping the current event transaction registration process, and uniformly converting the registration of the key event into the registration of the key event by loading the registration of the key event into the event transaction registration, namely the registration of the touch screen event in the page loading process, so that the subsequent key event can be responded.
In the embodiment of the invention, whether the event transaction registration is the registration of the touch screen event is judged by the following modes:
a feature set is preset, and the feature set includes all possible touch screen events, although the content of the feature set may be updated in real time as needed, if an event transaction registration that is certainly being executed exists in the preset feature set, it is determined that the event transaction registration is a touch screen event registration, and if the event transaction registration does not exist in the preset feature set, it is determined that the event transaction registration is a key event registration.
Optionally, before obtaining the first focusable element applied to the touch screen in the web page, the method further includes: screening focusable elements in a preset feature set from focusable elements of all labels of the webpage; and taking the screened focusable elements as the first focusable elements of the touch screen, namely screening the focusable elements positioned in the feature set from the focusable elements of all labels in the webpage according to the preset feature set.
The feature set at least includes: a gesture event indicated by the touch screen event, attribute characteristics of the first focusable element, wherein the attribute characteristics include: key information of the response event.
Further, the feature set is updated when a predetermined time comes.
In summary, the key to the browser supporting key navigation and browsing in the web page is to capture the focusable elements in the web page, but the conventional method can only detect the conventional focusable elements (such as an a tag of a website link, an inputtable INPUT tag, other tags with a response to a registered keyboard click event, and the like), but cannot detect the focusable elements in a large number of current touch screen web pages. According to the technical scheme of the embodiment of the invention, the elements of the touch screen webpage are focused and processed by a method based on the element touch event and the attribute feature set according to the features of the focusable elements in the touch screen, so that the key can be normally used for browsing various webpages, the bottleneck problem that the traditional key machine cannot access the touch screen webpage is broken through, and the technical value and the commercial value are very high.
The touch screen test webpage containing the touch gesture events and the attribute features of the embodiment of the invention is placed on a server and accessed by a contrast browser, and if normal navigation operation can be performed on the webpage through a keyboard, the invention is within the protection scope.
Through the above description of the embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but the former is a better implementation mode in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (such as a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
Example 2
In this embodiment, a page response apparatus is further provided, and the apparatus is used to implement the foregoing embodiments and preferred embodiments, and the description already made is omitted. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. Although the means described in the embodiments below are preferably implemented in software, an implementation in hardware, or a combination of software and hardware is also possible and contemplated.
Fig. 2 is a block diagram of a structure of a page response apparatus according to an embodiment of the present invention, as shown in fig. 2, the apparatus includes:
a conversion module 20, configured to convert registration of a touch screen event in a page into registration of a key event in a page loading process;
the acquiring module 22 is configured to acquire, after the page loading is completed, a first focusable element applied to the touch screen in the web page, and convert the first focusable element into a second focusable element applied to the key;
and a triggering module 24, configured to trigger a response operation on the second focusable element through a key event.
Through the comprehensive action of the modules, the registration of the touch screen event in the page is converted into the registration of the key event; after the page is loaded, a first focusable element applied to the touch screen in the webpage is obtained, the first focusable element is converted into a second focusable element applied to the key, and then response operation on the second focusable element is triggered through a key event.
Fig. 3 is a block diagram illustrating a structure of a conversion module 20 of the page response apparatus according to the embodiment of the present invention, and as shown in fig. 3, the conversion module 20 includes: the judging unit 200 is configured to, when it is monitored that the page performs event transaction registration, judge whether the event transaction registration is registration of a touch screen event; a stopping unit 202, configured to stop a current event transaction registration process when the event transaction registration is a registration of a touch screen event; the loading unit 204 is configured to load the registration of the key event into the event transaction registration.
Optionally, the determining unit 200 is further configured to determine whether there is event transaction registration in a preset feature set; if so, judging that the event transaction is registered as the registration of the touch screen event; if not, the event transaction is determined to be registered as a keystroke event.
Fig. 4 is another structural block diagram of the page response apparatus according to the embodiment of the present invention, as shown in fig. 4: the above-mentioned device still includes: a screening module 26, configured to screen out focusable elements in a preset feature set from focusable elements in all tags of a web page; and a determining module 28, configured to use the screened focusable element as a first focusable element of the touch screen.
The page response method in the above technical solutions is described below with reference to the preferred embodiments, but is not limited to the embodiments of the present invention.
Preferred embodiment 1
The apparatus for improving in accordance with preferred embodiment 1 of the present invention may be understood to be mainly composed of six parts, and fig. 5 is a block diagram of an overall structure of preferred embodiment 1 according to the present invention, as shown in fig. 5, including: a main control module 50, a focused element capture module 52, a touch screen event conversion module 54, a focus navigation module 56, a feature set query module 58, and a feature set update module 60. The role of each core module is described generally as follows:
the focused element capturing module 52 (corresponding to the obtaining module 22 of the above embodiment) needs to capture the focusable elements determined on the touch screen according to the feature set query system, in addition to capturing elements of the conventional focus attributes (such as an a tag of a website link, an inputtable INPUT tag, other tags with a response to a registered keyboard click event, etc.);
the touch screen event conversion module 54 (corresponding to the conversion module 20 of the above embodiment) also converts the touch event registration of the touch screen webpage into the keyboard event registration according to the feature set query system, so that only the response triggered by the touch event can be replaced by the keyboard event in the past;
the focusing navigation module 56 is a focusable element which is closest to a focusing element in the current webpage and is focused next along the direction when the direction key of the mobile phone is triggered;
the feature set query module 58 contains a query for touch screen events and a query for attribute features of the focusable elements of the touch screen. The touch screen event mainly refers to a gesture event which can be triggered only on the touch screen, and whether the event registered by the webpage belongs to the touch screen event or not is inquired so as to determine the registration converted into the key event. The attribute characteristics of the focusable element of the touch screen mean that although some elements do not have conventional focusing characteristics (A tags, INPUT tags and registered keyboard confirmation event responses), some attribute fields of the elements contain key information for responding to event processing, and the attribute fields form attribute characteristic sets (such as data-src, data-href, data-url, data-target and the like) of the focusable element of the touch screen. Although these elements do not directly register for event processing, when an event occurs on the touch screen webpage, the webpage dynamically constructs the transaction required to be processed by the element according to the attribute of the element corresponding to the event occurrence. Therefore, the elements which can be focused on the touch screen can be judged by the attribute feature set;
the feature set update module 60 primarily takes into account that in addition to the attribute fields associated with event processing that are included in the preset most common touchscreen focusable elements, other attribute fields associated with event processing may appear on some web pages. Therefore, the feature set needs to be automatically updated at any time so as to contain attribute fields related to event processing on all the touch screen web pages as much as possible;
the preferred embodiment 1 of the invention provides a method for navigating and browsing a webpage on a touch screen through keys based on a focusable element feature set of the webpage on the touch screen in a browser. Fig. 5 is a schematic diagram of an overall structure of the key-press web page navigation method provided in this embodiment, and the structure includes a main control module 50, a focused element capturing module 52, a touch screen event conversion module 54, a focused navigation module 56, a feature set query module 58, and a feature set update module 60. As can be seen in fig. 5, the main control module 50 may activate the touch screen event conversion module 54 to convert the registration of the web page touch screen event into the registration of the key confirmation event during the web page loading process. When the user presses the direction key, the main control module 50 will start the focus navigation module 56 to navigate in the web page, and the most critical focus element detection step in the navigation process is mainly that the module captures an element with a focus attribute in the web page through another focus element capture module 52. Both the touch screen event conversion module 54 and the focus element capture module 52 rely on the feature set query module 58 to find corresponding features for touch screen event conversion and touch screen focus element detection, respectively. The feature data in the feature set query module 58 is updated online by the main control module 50 via the feature set update module 60. The updating of the feature set and the capturing of focusable elements followed by focusing is conventional in the preferred embodiment of the present invention and will not be described in detail herein. Two key technical processing steps, namely touch screen event registration conversion and touch screen focusing element detection, are described in detail below.
Fig. 6 is a flowchart of a main process of registering and converting touch screen events according to a preferred embodiment 1 of the present invention, as shown in fig. 6, including the following steps:
step S602: monitoring the webpage to register event affairs in a webpage loading stage or other interaction stages;
step S604: and judging whether the event belongs to the touch screen event or not in the characteristic set query module. The feature set mainly comprises touchstart, touchend, mousedown, mouseup and the like, which can be continuously updated and supplemented by an updating module. If the event does not belong to the touch screen event, the processing of the step S608 is carried out, otherwise, the processing of the next step S606 is carried out;
step S606: acquiring a registration transaction corresponding to the event, and registering the key confirmation event in the transaction, namely processing the transaction when the key confirmation event occurs on the webpage;
step S608: the event is registered according to the original registration process;
besides the processing flow which does not influence the original touch event, the processing by the steps can mainly obtain two benefits: firstly, the elements which only register the touch event and do not register the key confirmation event can be regarded as focusable elements so as to be focused in key navigation, and secondly, when the key confirmation event occurs, the transaction which is expected to be triggered by the original touch event can also occur.
Fig. 7 is a flowchart of the main process of capturing focusable elements when the arrow keys navigate in the web page according to the preferred embodiment 1 of the present invention, as shown in fig. 7, the main steps are as follows:
step S702: when a user presses a direction key to start navigation in a webpage, firstly traversing each element node in a webpage DOM tree;
judging S704: and judging whether the element node belongs to a conventional focusable node, if so, performing the processing of step S712, and otherwise, performing the processing of the next step S706. The main condition for determining whether it is a regular focusable node is that the element is an a-tag or an INPUT tag or a transaction registration with a registration keyboard confirm event on the element;
judging S706: and judging whether the ancestor node of the element node has the transaction registration for registering the keyboard confirmation event, if not, entering the step S710 for processing, and if not, entering the next step S708 for processing. The judgment of the step is mainly to consider that the event responses of a plurality of elements are uniformly registered on an ancestor node in the touch screen webpage;
step S708: and sequentially taking the attribute feature field of each focusable element of the touch screen in the feature set query module as the attribute field of the element for searching, if the attribute of the corresponding element is not empty, performing the processing in the step S712, and otherwise, performing the processing in the next step S710. Attribute characteristic fields of elements which can be focused on the touch screen mainly comprise href, url, data-src, data-href, data-ur, data-target and the like, and the characteristic fields can be continuously updated and supplemented through an updating module;
step S710: the next element node is obtained from the DOM tree and the processing in step S702 is resumed;
step S712: and listing the element node into a focusable element for processing, namely judging whether to focus on the element in a navigation processing module according to the position of the element away from the current focus element. The process is ended.
Through the processing of the step, only the focusing requirement of the element without the conventional focusing attribute on the webpage of the touch screen can be detected in the key navigation so as to complete the focusing processing of the element.
In summary, the embodiments of the present invention achieve the following technical effects: the problem that a webpage based on a touch screen cannot be browsed by key events of physical keys of a mobile phone with the physical keys in the related technology is solved, so that the effect that most of the pages based on the touch screen in the current market can be responded even if a user uses a low-end mobile phone with only the physical keys is achieved, and user experience is greatly improved.
The embodiment of the invention also provides a storage medium. Alternatively, in the present embodiment, the storage medium may be configured to store program codes for performing the following steps:
s1, in the page loading process, the registration of the touch screen event in the page is converted into the registration of the key event;
s2, after the page loading is completed, acquiring a first focusable element applied to the touch screen in the webpage, and converting the first focusable element into a second focusable element applied to the key;
s3, triggering a response operation to the second focusable element by a key event.
Optionally, in this embodiment, the storage medium may include, but is not limited to: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments and optional implementation manners, and this embodiment is not described herein again.
It will be apparent to those skilled in the art that the modules or steps of the present invention described above may be implemented by a general purpose computing device, they may be centralized on a single computing device or distributed across a network of multiple computing devices, and alternatively, they may be implemented by program code executable by a computing device, such that they may be stored in a storage device and executed by a computing device, and in some cases, the steps shown or described may be performed in an order different than that described herein, or they may be separately fabricated into individual integrated circuit modules, or multiple ones of them may be fabricated into a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (6)

1. A page response method, comprising:
in the page loading process, converting the registration of a touch screen event in a page into the registration of a key event;
after the page is loaded, acquiring a first focusable element applied to a touch screen in a webpage, and converting the first focusable element into a second focusable element applied to a key;
triggering a response operation on the second focusable element through the key event;
wherein, converting the registration of the touch screen event in the page into the registration of the key event comprises:
when it is monitored that the page is subjected to event transaction registration, judging whether the event transaction registration is the registration of a touch screen event;
if yes, stopping the current event transaction registration process, and loading the registration of the key event into the event transaction registration;
judging whether the event transaction registration is the registration of the touch screen event or not, comprising the following steps:
judging whether the event transaction registration exists in a preset feature set or not;
if so, judging that the event transaction is registered as the registration of the touch screen event;
if not, the event transaction is judged to be registered as the key event.
2. The method of claim 1, wherein prior to obtaining the first focusable element of the web page for application to the touch screen, the method further comprises:
screening focusable elements in a preset feature set from focusable elements of all labels of the webpage;
and taking the screened focusable element as a first focusable element of the touch screen.
3. The method according to claim 1 or 2,
the feature set includes at least: a gesture event indicated by a touch screen event, a property feature of the first focusable element, wherein the property feature comprises: key information of the response event.
4. The method of claim 1 or 2, wherein the feature set is updated when a predetermined time arrives.
5. A page response apparatus, comprising:
the conversion module is used for converting the registration of the touch screen event in the page into the registration of the key event in the page loading process;
the device comprises an acquisition module, a display module and a control module, wherein the acquisition module is used for acquiring a first focusable element applied to a touch screen in a webpage after the webpage is loaded, and converting the first focusable element into a second focusable element applied to a key;
the triggering module is used for triggering response operation on the second focusable element through the key event;
wherein the conversion module comprises:
the judging unit is used for judging whether the event transaction registration is the registration of the touch screen event or not when the situation that the event transaction registration is carried out on the page is monitored;
the stopping unit is used for stopping the current event transaction registration process when the event transaction is registered as the registration of the touch screen event;
a loading unit, configured to load the registration of the key event into the event transaction registration;
the judging unit is further configured to judge whether the event transaction registration exists in a preset feature set; if so, judging that the event transaction is registered as the registration of the touch screen event; if not, the event transaction is judged to be registered as the key event.
6. The apparatus of claim 5, further comprising:
the screening module is used for screening out focusable elements in a preset feature set from focusable elements of all labels of the webpage;
and the determining module is used for taking the screened focusable elements as first focusable elements of the touch screen.
CN201610247570.XA 2016-04-20 2016-04-20 Page response method and device Active CN107306308B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201610247570.XA CN107306308B (en) 2016-04-20 2016-04-20 Page response method and device
PCT/CN2016/101686 WO2017181619A1 (en) 2016-04-20 2016-10-10 Page response method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610247570.XA CN107306308B (en) 2016-04-20 2016-04-20 Page response method and device

Publications (2)

Publication Number Publication Date
CN107306308A CN107306308A (en) 2017-10-31
CN107306308B true CN107306308B (en) 2021-01-26

Family

ID=60115551

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610247570.XA Active CN107306308B (en) 2016-04-20 2016-04-20 Page response method and device

Country Status (2)

Country Link
CN (1) CN107306308B (en)
WO (1) WO2017181619A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111625169B (en) * 2020-05-28 2022-04-15 海信电子科技(深圳)有限公司 Method for browsing webpage by remote controller and display equipment
CN114153536B (en) * 2021-11-12 2024-04-09 华东计算技术研究所(中国电子科技集团公司第三十二研究所) Web page focus control method and system compatible with physical keys of touch screen

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101980191B (en) * 2010-10-14 2014-03-05 优视科技有限公司 Method and device for locking focus element in webpage browsing process
CN103309483B (en) * 2012-03-12 2017-03-01 联想(北京)有限公司 A kind of electronic equipment and touch information input method
CN103049193A (en) * 2012-12-26 2013-04-17 广东欧珀移动通信有限公司 Method and device for implementing webpage turning by keys

Also Published As

Publication number Publication date
CN107306308A (en) 2017-10-31
WO2017181619A1 (en) 2017-10-26

Similar Documents

Publication Publication Date Title
US9330179B2 (en) Configuring web crawler to extract web page information
CN102663062B (en) Method and device for processing invalid links in search result
CN101042694B (en) Method for accessing father page in the time of brewing web page
CN102591874B (en) Prompt method, terminal and server
US8909765B2 (en) Analyzing webpage users' web access actions by using a defined focal region
CN101651707A (en) Method for automatically acquiring user behavior log of network
US10572566B2 (en) Image quality independent searching of screenshots of web content
CN103034716A (en) Subscribing method and device for page content
CN103858121B (en) Web applications are made to obtain the method and system of database change
CN104765746B (en) Data processing method and device for mobile communication terminal browser
CN103036970A (en) Method and system for page frame content subscription
CN102117314A (en) Document information transmission method and apparatus
CN106874271A (en) A kind of method and system that PC webpages are converted to mobile terminal webpage
CN100504877C (en) Method and device for collecting web page action
CN107306308B (en) Page response method and device
CN111125485A (en) Website URL crawling method based on Scapy
CN107145494A (en) A kind of method and device for browsing thumbnail in webpage
US20160117392A1 (en) Information search method and apparatus
US20140337709A1 (en) Method and apparatus for displaying web page
JP5423149B2 (en) Browsing information collection system, browsing information collection method, server, and program
CN105338091A (en) High-transmission-efficiency personalized information interface display method and apparatus
CN106126538B (en) Page conversion processing method and device
KR101175168B1 (en) Apparatus and method for searching a plurality of web-sites through a web-site in the terminal device
CN107528896A (en) A kind of access information processing method, device and computer-readable storage medium
CN108920525B (en) Target user screening method and device based on webpage

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant