Pseudo-Touch Event Encoding for Non-W3C Browser System Information Transmission
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Many browsers that do not support the W3C standard are unable to transmit system information obtained from terminal systems to web pages, limiting the execution of scripts.
Innovation Solution
The method involves calling a terminal system to obtain target system information, dividing it into data segments, and encoding these segments based on the positional relationship of touch points in a simulated pseudo-touch event in a touch plane to create encoded pseudo-touch event information, which can be transmitted to scripts regardless of W3C standard support.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Adaptability or versatility
If a browser uses the W3C standard interface to transmit system information, then the transmission is standardized and reliable, but browsers that do not support the W3C standard cannot transmit system information
Solution Approach 1:
The patent creates a copy of the touch event data structure to transmit system information. Instead of using the standard W3C interface directly, the system encodes system information into a format that mimics touch event data structures, which can be processed by browsers regardless of W3C support status.
Solution Approach 2:
The patent changes the parameters of data transmission by encoding system information into touch event-like data structures. The system information is transformed into a different parameter format (pseudo-touch event data) that can be universally accepted by various browser implementations.
2Adaptability or versatility
If system information is transmitted using non-W3C methods, then browser compatibility is improved, but the transmission mechanism becomes more complex
Solution Approach 1:
The patent makes the touch event data structure serve multiple functions: it acts as both a standard browser interface element and a container for system information transmission. This universal data structure can be processed by all browsers while simultaneously carrying encoded system information.
Solution Approach 2:
The patent introduces an encoding/decoding intermediary layer that converts system information into pseudo-touch event data and vice versa. This intermediary mechanism enables compatibility across different browser types without requiring changes to the browsers themselves.
3Adaptability or versatility
If system information is encoded as pseudo-touch event data, then transmission to non-W3C browsers is enabled, but data processing complexity increases
Solution Approach 1:
The patent segments system information into multiple data fields that correspond to different aspects of touch event data (such as position, pressure, timestamp). This segmentation allows the information to be distributed across multiple parameters, making the encoding and decoding processes more manageable and systematic.
Data Source
Figure 1~2
Figure 3
Figure 4~5
AI summary
The present disclosure provides a system information transmitting method and apparatus, and a computer-readable storage medium, and belongs to the field of browser technology. The method includes: receiving (201) a system call instruction sent by a browser, wherein the system call instruction is generated when the browser executes a target script of a web page; acquiring (202) target system information according to the system call instruction; dividing (203) the target system information into at least one data set, wherein each of the data set(s) includes at least one data segment; encoding (204) each of the data segment(s) in the target system information according to a positional relationship of respective touch points in a simulated pseudo-touch event in a touch plane to obtain encoded pseudo-touch event information; and transmitting (205) the encoded pseudo-touch event information as an input parameter of the target script to the target script through the browser.