Data interaction method and apparatus between server and client

A data interaction and client-side technology, applied in the Internet field, can solve the problems of wasting network bandwidth, increasing server load pressure, increasing servers, etc., to achieve the effect of reducing network processing delay, reducing security risks, and reducing the number of times.

Active Publication Date: 2013-10-30
ALIBABA GRP HLDG LTD
View PDF4 Cites 38 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

For example, if you want to register as a new user of a certain website, you need to fill in the relevant registration information on the new user registration page of the client of the website. If there are 35 registration information input items and selection boxes on the page, then The client will send at least 35 HTTP requests to the server; in addition, the quality rating processing of the input information (such as password strength, information completeness, etc.) also needs to be completed by the server. Large and complex data real-time processing requests may lead to the following two problems: one is wasting network bandwidth and increasing the load on the server; Fast...

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
  • Data interaction method and apparatus between server and client
  • Data interaction method and apparatus between server and client
  • Data interaction method and apparatus between server and client

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0010] Specific embodiments of the present application will be described in detail below. It should be noted that the embodiments described here are for illustration only, and are not intended to limit the present application.

[0011] At present, there are many data transmission formats between the server and the client (such as XML, JSON, string, etc.), but in order to facilitate data transmission in various information input scenarios, more popular public standards are usually adopted Format - XML. However, related technologies cannot well solve the problem of lossless conversion and transmission between the server and the client; in addition, in order to follow the public standard, the server and the client all adopt unified XML to transfer data, but due to the comparison of XML encoding It is complex and redundant, which increases the capacity of the transmitted file, which leads to problems such as occupying a large amount of network bandwidth, slow analysis speed, and ...

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 application relates to a data interaction method and apparatus between a server and a client. The method comprises the steps of S11. presetting an XML (Extensive Makeup Language) data file and a JavaScript file in a server and creating a webpage page to be requested; S12. when a page access request is originated at a client, converting the preset XML data file into a JSON (JavaScript Object Notation) character string by the server, inserting the converted JSON character string and a preset javaScript file address link into the webpage page and sending the webpage page to the client; and S13. when the javaScript file monitors input information inputted by the client, processing the JSON character string and displaying processing results corresponding with the input information on the webpage page. According to the application, server data processing logic can be transferred to a client for operation, thereby effectively minimizing times of real time server interaction between a server and a client, reducing network treatment time-delay, minimizing potential safety hazard caused by frequent requests and guaranteeing consistency of data processing logic.

Description

technical field [0001] The present application relates to the Internet field, and in particular to a data interaction method and device between a server and a client. Background technique [0002] Generally speaking, when a user visits a website through a client, a large amount of information may be entered in the webpage. At this time, the client is only used to receive the user's input information, and a large amount of real-time data processing needs to be processed by the server. To be done. For example, if you want to register as a new user of a certain website, you need to fill in the relevant registration information on the new user registration page of the client of the website. If there are 35 registration information input items and selection boxes on the page, then The client will send at least 35 HTTP requests to the server; in addition, the quality rating processing of the input information (such as password strength, information completeness, etc.) also needs ...

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
IPC IPC(8): H04L29/08G06F17/30
Inventor 程小飞陈兀
Owner ALIBABA GRP HLDG LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products