Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method and device for implementing control replacement during transcoding

A control and transcoding technology, used in program control devices, special data processing applications, instruments, etc., can solve problems such as controls not working properly, scripts such as javascript not running, and DOM tree structure changes.

Active Publication Date: 2016-03-16
BAIDU ONLINE NETWORK TECH (BEIJIBG) CO LTD
View PDF2 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] However, when the webpage is transcoded, the DOM tree structure will change, and scripts such as javascript cannot run
If some important information in the original webpage is implemented using javascript script controls, these controls will not work properly after transcoding, resulting in the loss of important information in the webpage
For example, the tab tab in the website can display multiple tabs when browsing on a PC, and the user clicks or moves to a tab with the mouse to automatically display the tab content corresponding to the tab, such as http: / / www. In 55bbs.com / , the user clicks "shopping" and the content of the shopping tab appears correspondingly. If the user clicks "beauty", the content of the tab corresponding to the beauty appears. However, only one tab can be displayed on the mobile terminal, and the contents of other tabs are all Eliminated or hidden, users cannot switch between different tabs through interaction to browse the corresponding content

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and device for implementing control replacement during transcoding
  • Method and device for implementing control replacement during transcoding
  • Method and device for implementing control replacement during transcoding

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0022] The embodiments of the present invention are described in detail below. Examples of the embodiments are shown in the accompanying drawings, in which the same or similar reference numerals indicate the same or similar elements or elements with the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary, and are intended to explain the present invention, but should not be construed as limiting the present invention.

[0023] In the present invention, unless otherwise clearly specified and limited, the terms "installed", "connected", "connected", "fixed" and other terms should be understood in a broad sense, for example, it may be a fixed connection or a detachable connection , Or integrally connected; it can be a mechanical connection or an electrical connection; it can be directly connected or indirectly connected through an intermediate medium, and it can be the internal communication between two components. For ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention provides a method for realizing control replacement during transcoding. The method comprises the following steps: acquiring the first control and a first content node controlled by the first control on the webpage in an offline mode; outputting the first content node to a template file in a pattern and xpath form; loading the template file on line; identifying and marking the first control of the webpage and the first content node controlled by the first control when the webpage accessed by the user comprises the pattern and xpath in the template file; and generating the second control to replace the first control through the rewritten script. The invention also provides a device for realizing control replacement during transcoding. The control and node which cannot normally work in the original webpage are replaced by using the script, so that the user can normally browse the webpage by using the mobile terminal, and convenience is brought to the user.

Description

Technical field [0001] The present invention relates to the technical field of mobile terminal Internet applications, in particular to a method and device for realizing control replacement during transcoding. Background technique [0002] Most web pages on the current Internet are designed for PC (Personal Computer) browsing, and usually do not take into account the traffic, performance, and compatibility issues of mobile terminals such as mobile phones and tablet computers. In order to facilitate web pages originally designed for PC browsing to run well on mobile terminals such as mobile phones and tablet computers, mobile terminals usually provide users with web page transcoding services. [0003] However, when the web page is transcoded, the DOM tree structure will change, and scripts such as javascript cannot run. If some important information in the original web page is implemented using javascript script controls, these controls will not work properly after transcoding, resu...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): G06F9/44G06F17/30
Inventor 王智杰刘承诚王倩
Owner BAIDU ONLINE NETWORK TECH (BEIJIBG) CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products