Method, system for communication among webpage, and application in music searching

A web page and music playback technology, applied in the network field, can solve the problems of wasting bandwidth and untimely response.

Active Publication Date: 2008-10-22
网易有道信息技术(北京)有限公司
View PDF0 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0008] The technical problem to be solved by the present invention is to provide a method and system for communication between webpages and i

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, system for communication among webpage, and application in music searching
  • Method, system for communication among webpage, and application in music searching
  • Method, system for communication among webpage, and application in music searching

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0044] refer to figure 1 , is a flow chart of the method for communicating between web pages according to Embodiment 1 of the present invention.

[0045] S101, after a web page A of the client sends an operation request, it waits for a reply from the server;

[0046] S102, the server receives the operation request and pretends to be processing it, so that the client waits;

[0047] S103, another webpage B of the client sends a trigger request to the server;

[0048] S104, after receiving the trigger request from the client, the server returns a reply corresponding to the operation request of the webpage A to the waiting client;

[0049] S105, the client performs a corresponding operation on the web page A according to the reply.

[0050] The above process realizes the real-time communication between web page A and web page B, which is different from the traditional mode of "the client requests and the server responds immediately". In the present invention, the server does n...

Embodiment 2

[0053] refer to figure 2 , is a flowchart of the method for communication between webpages according to Embodiment 2 of the present invention. Still taking Listening to Music as an example, a user logs in to an online listening to music website on a certain client, opens the song search result page of the website, and a list of songs is displayed on the page. After the user selects the song to listen to, a new page is opened. Play page, this play page is called Music Box.

[0054]S201, when the music box is opened for the first time, it will automatically send a request to the website server indicating that it wants to obtain the song information added by the user.

[0055] The request is the aforementioned operation request, and the request is accompanied by a client ID and a request ID. Wherein, the client ID is used to uniquely identify a client, and may be an account of a registered user, or an ID temporarily generated.

[0056] Preferably, the client's cookie can be u...

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 discloses a method and a system for communication between web pages and application of the method and the system in music search. The invention is to solve the problems of interruption of play of the current page, bandwidth waste and untimely response of the prior means adopted of refreshing the pages or polling a server. The method comprises the following steps that: a web page A of a client sends out an operation request and then waits for reply of the server; when the server receives a trigger request sent out by another web page B of the client, the reply of the operation request of the corresponding web page A is returned to the client; and the client performs corresponding operation on the web page A according to the reply. As for the client, the method does not need polling the server and only needs connection for once, thereby the bandwidth and server resources are greatly saved. Simultaneously, when the server obtains another trigger request, the server can reply to the client, thereby the real-time communication ability is guaranteed to the maximum degree and simultaneously refreshing of the pages is avoided. Moreover, the method and the system are also suitable for communication between two unrelated web pages.

Description

technical field [0001] The invention relates to the field of network technology, in particular to a method and system for communicating between webpages and its application in music search. Background technique [0002] Usually, the user's online behavior is based on the client-browser mode, that is, the client browser sends a request, and the website server immediately responds to the request and makes a reply. For example, when a user posts a post through the Web (World Wide Web, World Wide Web) version of the BBS (Bulletin Board System, electronic bulletin board), the user submits the written text to the server, and the server returns a new page after receiving it. If the user's post is included, it means that the user's post has been published successfully. [0003] Based on this communication mode, a network application is listening to music online: a user listens to a song on a webpage (this webpage is called a music box), and then on another webpage, assuming it is a...

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): H04L12/28H04L12/54G06F17/30H04L29/08
Inventor 江峰李新娟吴迎晖周枫
Owner 网易有道信息技术(北京)有限公司
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