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

Method and device for realizing control replacement during transcoding

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

Active Publication Date:
View PDF2 Cites 10 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 realizing control replacement during transcoding
  • Method and device for realizing control replacement during transcoding
  • Method and device for realizing control replacement during transcoding

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0022] Embodiments of the present invention are described in detail below, examples of which are shown in the drawings, wherein the same or similar reference numerals designate the same or similar elements or elements having the same or similar functions throughout. The embodiments described below by referring to the figures are exemplary and are intended to explain the present invention and should not be construed as limiting the present invention.

[0023] In the present invention, unless otherwise clearly specified and limited, terms such as "installation", "connection", "connection" and "fixation" should be understood in a broad sense, for example, it can be a fixed connection or a detachable connection , or integrally connected; it may be mechanically connected or electrically connected; it may be directly connected or indirectly connected through an intermediary, and it may be the internal communication of two components. Those of ordinary skill in the art can understand...

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 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 of the webpages on the current Internet are designed for PC (Personal Computer, personal computer) browsing, and usually do not consider the traffic, performance and compatibility of mobile terminals such as mobile phones and tablet computers. In order to facilitate the webpage originally designed for PC browsing to run better on mobile terminals such as mobile phones and tablet computers, mobile terminals usually provide users with webpage transcoding services. [0003] However, when a web page 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 normally after transcodin...

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 Applications(China)
IPC IPC(8): G06F9/44G06F17/30
Inventor 王智杰刘承诚王倩
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