CN102868590B - It is a kind of to call the method and system of client by embedding webpage - Google Patents

It is a kind of to call the method and system of client by embedding webpage Download PDF

Info

Publication number
CN102868590B
CN102868590B CN201110192257.8A CN201110192257A CN102868590B CN 102868590 B CN102868590 B CN 102868590B CN 201110192257 A CN201110192257 A CN 201110192257A CN 102868590 B CN102868590 B CN 102868590B
Authority
CN
China
Prior art keywords
operation object
client
content
module
user
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201110192257.8A
Other languages
Chinese (zh)
Other versions
CN102868590A (en
Inventor
库宇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Beijing Co Ltd
Original Assignee
Tencent Technology Beijing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Beijing Co Ltd filed Critical Tencent Technology Beijing Co Ltd
Priority to CN201110192257.8A priority Critical patent/CN102868590B/en
Publication of CN102868590A publication Critical patent/CN102868590A/en
Application granted granted Critical
Publication of CN102868590B publication Critical patent/CN102868590B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a kind of method for calling client by embedded webpage, including:User sends agreement string by embedded webpage to client;Client is parsed to the agreement string received, obtains operation object information;Client judges the local cache content of the operation object, then directly shows corresponding interface to user;Client is judged after the local content for not caching the operation object, the then content for downloading the operation object, and corresponding interface is shown to user.The present invention also accordingly discloses a kind of by embedding the system that webpage calls client.Pass through the present invention, client can show default fresh information by embedding the form of webpage to user, in the web page, user can be by clicking on certain message the operation button such as relay, dialogue, the relay of client Twitter message, conversation message frame are easily adjusted, so as to simplify user's operation, it is easy to user to obtain fresh information in time, improves Consumer's Experience.

Description

Method and system for calling client through embedded webpage
Technical Field
The invention relates to a computer technology, in particular to a method and a system for calling a client through an embedded webpage.
Background
The development of the Instant Messaging (IM) over internet has been accepted by most netizens today, and the IM is an indispensable software tool for users, and is widely used not only in leisure entertainment at ordinary times but also in the work of users. IM is conversational, the most primitive and natural way of interacting, but with low efficiency, and usually requires many conversations to represent a complete meaning.
With the continuous development of internet application, microblog application similar to twitter is continuously developed, such micro blogs that users express themselves through about 140 words, can quickly carry out message propagation and transmission in such a way, and realize that the message chat mode of users spans from one-to-one, one-to-N to one-to-infinity, and the one-to-infinity mode means that one person can propagate messages to infinite persons, and simultaneously one person can listen to more than ten thousand users. The microblog has no definite object, so the meaning is relatively complete, the writing threshold is very low, which can be a sentence or an exclamation, and the information transmission efficiency is higher.
Because the instant messaging and the microblog are widely applied, users often need to keep an instant messaging window and a microblog webpage at the same time, and the latest information is obtained by switching between the instant messaging window and the microblog webpage through manual operation, the operation is complicated, and cannot acquire the updated information in time, no related scheme combining network instant messaging and micro-blog is provided in the prior art, although in the existing client software, there is a special operating area in the upper right corner of the group chat window, which is used to show some relevant information in the group in the form of web page, such as group announcements, group albums, group dynamics, etc., but the user's actions in this area will actually trigger the action of opening a web page, and the experience is relatively poor because of no interaction with the client, and the problem also exists in the combination of other webpages and microblogs.
Disclosure of Invention
In view of this, the main objective of the present invention is to provide a method and a system for calling a client through an embedded web page, which can simplify user operations and facilitate users to obtain updated information in time, thereby improving user experience.
In order to achieve the purpose, the technical scheme of the invention is realized as follows:
a method for calling a client through an embedded web page, comprising:
a user sends a protocol string to a client through an embedded webpage;
the client analyzes the received protocol string to obtain operation object information;
the client side judges that the content of the operation object is cached locally, and then a corresponding interface is directly displayed to a user; and the client side judges that the content of the operation object is not cached locally, and displays a corresponding interface to the user after downloading the content of the operation object.
Displaying the microblog updating condition of the group members in the group chat window operation area, setting an operation button, and sending a protocol string to a client by clicking the operation button by a user, wherein the protocol string at least carries: operation type and operation object information.
The content of the client downloading operation object is as follows:
a. the client adds an operation object to be downloaded into an information queue to be downloaded, and the default downloading identification is non-downloadable;
b. when the download identification of the operation object is judged to be downloadable, a client starts a download process, downloads the content of the operation object and deletes the operation object from the information queue to be downloaded;
c. and d, after the interval is set for time, modifying the downloading identification of the next operation object in the downloading information queue into downloadable, and returning to the step a.
The operation buttons include a relay button and a dialogue button,
the operation object information is a microblog message ID of a microblog original text.
The content of the client downloading operation object is as follows: and the client downloads the content of the operation object from the microblog server.
A system for calling a client through an embedded webpage comprises the embedded webpage and the client; the client further comprises: the system comprises a protocol string receiving module, a protocol string analyzing module, a judging module, a downloading module and an interface display module; wherein,
the protocol string receiving module is used for receiving the protocol string from the embedded webpage;
the protocol string analysis module is used for analyzing the protocol string received by the protocol string receiving module to obtain the information of the operation object;
the judging module is used for judging whether the content of the operation object is locally cached or not according to the operation object information analyzed by the protocol string analyzing module, judging that the content of the operation object is locally cached, and directly informing the interface display module to display a corresponding interface for a user;
the downloading module is used for downloading the content of the operation object when the judging module judges that the content of the operation object is not cached locally, and then informing the interface display module to display a corresponding interface for a user;
and the interface display module is used for displaying a corresponding interface to a user.
The protocol string received by the protocol string receiving module at least carries: operation type and operation object information.
The downloading module downloads the content of the operation object as follows:
a', the client adds an operation object to be downloaded into an information queue to be downloaded, and the default downloading identification is not downloadable;
b', when the download identification of the operation object is judged to be downloadable, the client starts a download process, downloads the content of the operation object and deletes the operation object from the information queue to be downloaded;
c ', after the interval setting time, the download identification of the next operation object in the download information queue is modified to be downloadable, and the step a' is returned.
The operation object information acquired by the protocol string analysis module is MsgID.
The system also comprises a microblog server, and the downloading module downloads the contents of the operation objects as follows: and downloading the content of the operation object from the microblog server.
According to the method and the system for calling the client through the embedded webpage, a user sends a protocol string to the client through the embedded webpage; the client analyzes the received protocol string to obtain operation object information; the client side judges that the content of the operation object is cached locally, and then a corresponding interface is directly displayed to a user; and the client side judges that the content of the operation object is not cached locally, and displays a corresponding interface to the user after downloading the content of the operation object. According to the invention, the client can display the preset updating information to the user in the form of the embedded webpage, and the user can conveniently call the microblog message rebroadcasting and conversation message box of the client by clicking the operation buttons of rebroadcasting, conversation and the like of a certain message in the webpage, so that the user operation is simplified, the user can conveniently obtain the updating information in time, and the user experience is improved.
Drawings
FIG. 1 is a schematic flow chart of a method for calling a client through an embedded web page according to the present invention;
FIG. 2 is a schematic diagram illustrating an implementation effect of displaying a microblog updating condition of the group member in an operation area of a group chat window;
FIG. 3 is a schematic flow chart illustrating a process of downloading the content of the operation object by the client according to the present invention;
fig. 4 is a schematic structural diagram of a system for calling a client through an embedded web page according to the present invention.
Detailed Description
The basic idea of the invention is: the microblog updating condition of the preset object is displayed on a webpage (such as a group chat window operation area) in an embedded webpage form (if the microblog updating condition is in the group chat window operation area, the microblog updating condition of the group member can be displayed by default), and when a user pays attention to a certain message and wants to continue to operate, the user can directly call up an operation message box of the client for the message by clicking operation buttons of rebroadcasting, conversation and the like of the message, so that the use of the user is facilitated.
Fig. 1 is a schematic flow chart of a method for calling a client through an embedded web page according to the present invention, as shown in fig. 1, the method includes:
step 101: the user initiates a protocol call to the client through the embedded webpage, namely, the protocol string is sent to the client.
An implementation effect diagram showing the microblog updating condition of the group member in the group chat window operation area can be as shown in fig. 2, an operation button such as a relay button, a conversation button and the like is further generally arranged in the microblog updating condition display area of the group member, and a user can initiate protocol calling to a client by clicking the relay button, the conversation button and the like.
In the invention, the protocol string used for initiating the protocol call at least carries: the operation type and the operation object information (for example, MsgID of the microblog message refers to microblog message ID, which is a unique key value of the microblog message), for example, a protocol string corresponding to the rebroadcasting operation may be:
tencent://WblogApply?subcmd=Rebroad&MsgID=17048109839638&fuin=178842092
the protocol string corresponding to the dialog operation may be:
tencent://WblogApply?subcmd=Reply&MsgID=17048109839638&fuin=178842092
the rebroadcasting and the conversation are two types of operations supported currently, are identified through a subcommand subcmd in a protocol string, and can be convenient for expanding the microblog application of the newly added type subsequently, wherein in the protocol string, the MsgID is a microblog original text MsgID of the rebroadcasting or the conversation operation and the type UInt 64; and the uin is the uin number of the current operator.
Step 102: and the client analyzes the received protocol string to acquire the operation object information.
Step 103: the client judges whether the content of the operation object is cached locally, if so, the step 105 is carried out; otherwise, step 104 is performed.
Specifically, the client judges whether the content of the corresponding operation object is cached locally or not according to the MsgID.
Step 104: and the client downloads the content of the operation object.
For example, the client pulls the microblog message content to the microblog server.
Step 105: and the client displays a corresponding interface to the user according to the operation type and the content of the operation object.
For example, after the user clicks the rebroadcasting or dialog prompt, the client pops up a rebroadcasting and dialog operation box corresponding to the message.
It should be noted that, because the protocol string is simple and convenient, there will also be a certain potential safety hazard, and the protocol string of the client is currently transmitted in a plaintext manner, so it is possible to be forged; and after receiving the protocol call, the client uses the fuin parameters to filter and judges whether the message is the current login uin, and the forged license string judged by the layer may trigger the behavior of pulling the specific content of the message according to the MsgID. In order to reduce parameter information transmitted in a protocol as much as possible, the specific content of the microblog message is not actually transmitted through the protocol, but the client triggers a pulling process of the complete information through the ID of the message, and if no limitation is imposed, certain traffic pressure may be brought to the microblog server. To address this problem, the client can be solved by two ways:
1) the client establishes MsgID, namely local cache of message content, so as to ensure that the same message is pulled to the microblog server only once.
2) The client controls the pulling frequency, and if the minimum interval time of two pulling is set to be 3 seconds (3 seconds is the experience time of slow perception operation of a user, and the time can be adjusted), the load brought to the microblog server after the protocol string is forged is reduced.
Specifically, the process of downloading the content of the operation object by the client according to the present invention may be as shown in fig. 3, and includes:
step 301: the client adds the operation object to be downloaded into the information queue to be downloaded, and the default downloading identification is not downloadable.
Step 302: and when the download identification of the operation object is judged to be downloadable, the client starts a download process, downloads the content of the operation object and deletes the operation object from the information queue to be downloaded.
Step 303: after the interval is set, the download identifier of the next operation object in the download information queue is modified to be downloadable, and the process returns to step 302.
The invention also correspondingly provides a system for calling the client through the embedded webpage, which comprises the embedded webpage and the client as shown in figure 4; the client further comprises: the system comprises a protocol string receiving module, a protocol string analyzing module, a judging module, a downloading module and an interface display module; wherein,
the protocol string receiving module is used for receiving the protocol string from the embedded webpage;
the protocol string analysis module is used for analyzing the protocol string received by the protocol string receiving module to obtain the information of the operation object;
the judging module is used for judging whether the content of the operation object is locally cached or not according to the operation object information analyzed by the protocol string analyzing module, judging that the content of the operation object is locally cached, and directly informing the interface display module to display a corresponding interface for a user;
the downloading module is used for downloading the content of the operation object when the judging module judges that the content of the operation object is not cached locally, and then informing the interface display module to display a corresponding interface for a user;
and the interface display module is used for displaying a corresponding interface to a user.
The protocol string received by the protocol string receiving module at least carries: operation type and operation object information.
The downloading module downloads the content of the operation object as follows:
a', the client adds an operation object to be downloaded into an information queue to be downloaded, and the default downloading identification is not downloadable;
b', when the download identification of the operation object is judged to be downloadable, the client starts a download process, downloads the content of the operation object and deletes the operation object from the information queue to be downloaded;
c ', after the interval setting time, the download identification of the next operation object in the download information queue is modified to be downloadable, and the step a' is returned.
The operation object information acquired by the protocol string analysis module is MsgID.
The system also comprises a microblog server, and the downloading module downloads the contents of the operation objects as follows: and downloading the content of the operation object from the microblog server.
By applying the technical implementation scheme provided by the invention, the user can display the microblog updating information of the group members in the form of an embedded webpage in the upper right corner area of the group chat window, and the user can conveniently call the microblog information rebroadcasting and conversation dialog box of the client by clicking the rebroadcasting and conversation operation button of a certain message in the webpage, so that the user can use the microblog updating information more conveniently.
The above description is only a preferred embodiment of the present invention, and is not intended to limit the scope of the present invention.

Claims (8)

1. A method for calling a client through an embedded webpage is characterized by comprising the following steps:
according to the clicking operation of an operation button acting on an embedded webpage, the embedded webpage sends a protocol string to a client;
the client analyzes the received protocol string to obtain operation object information;
the client side judges that the content of the operation object is cached locally, and then a corresponding interface is directly displayed to a user; the client side judges that the content of the operation object is not cached locally, and displays a corresponding interface to a user after downloading the content of the operation object;
wherein, the content of the client downloading operation object is as follows:
a. the client adds an operation object to be downloaded into an information queue to be downloaded, and the default downloading identification is non-downloadable;
b. when the download identification of the operation object is judged to be downloadable, a client starts a download process, downloads the content of the operation object and deletes the operation object from the information queue to be downloaded;
c. and d, after the interval is set for time, modifying the downloading identification of the next operation object in the downloading information queue into downloadable, and returning to the step a.
2. The method of claim 1, wherein microblog updating conditions of group members are displayed in an operating area of a group chat window, an operation button is set, a user sends a protocol string to a client by clicking the operation button, and the protocol string at least carries: operation type and operation object information.
3. The method of claim 2,
the operation buttons include a relay button and a dialogue button,
the operation object information is a microblog message ID of a microblog original text.
4. The method according to claim 3, wherein the client downloads the content of the operation object as: and the client downloads the content of the operation object from the microblog server.
5. A system for calling a client through an embedded webpage is characterized by comprising the embedded webpage and the client; the client further comprises: the system comprises a protocol string receiving module, a protocol string analyzing module, a judging module, a downloading module and an interface display module; wherein,
the protocol string receiving module is used for receiving the protocol string from the embedded webpage; the protocol string is sent according to click operation acting on an operation button in the embedded webpage;
the protocol string analysis module is used for analyzing the protocol string received by the protocol string receiving module to obtain the information of the operation object;
the judging module is used for judging whether the content of the operation object is locally cached or not according to the operation object information analyzed by the protocol string analyzing module, judging that the content of the operation object is locally cached, and directly informing the interface display module to display a corresponding interface for a user;
the downloading module is used for downloading the content of the operation object when the judging module judges that the content of the operation object is not cached locally, and then informing the interface display module to display a corresponding interface for a user;
the interface display module is used for displaying a corresponding interface to a user;
the downloading module downloads the content of the operation object as follows:
a', the client adds an operation object to be downloaded into an information queue to be downloaded, and the default downloading identification is not downloadable;
b', when the download identification of the operation object is judged to be downloadable, the client starts a download process, downloads the content of the operation object and deletes the operation object from the information queue to be downloaded;
c ', after the interval setting time, the download identification of the next operation object in the download information queue is modified to be downloadable, and the step a' is returned.
6. The system of claim 5, wherein the protocol string received by the protocol string receiving module carries at least: operation type and operation object information.
7. The system according to claim 5, wherein the operation object information obtained by the protocol string parsing module is MsgID.
8. The system of claim 7, further comprising a microblog server, wherein the downloading module downloads the content of the operation object as: and downloading the content of the operation object from the microblog server.
CN201110192257.8A 2011-07-08 2011-07-08 It is a kind of to call the method and system of client by embedding webpage Active CN102868590B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110192257.8A CN102868590B (en) 2011-07-08 2011-07-08 It is a kind of to call the method and system of client by embedding webpage

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110192257.8A CN102868590B (en) 2011-07-08 2011-07-08 It is a kind of to call the method and system of client by embedding webpage

Publications (2)

Publication Number Publication Date
CN102868590A CN102868590A (en) 2013-01-09
CN102868590B true CN102868590B (en) 2017-09-12

Family

ID=47447194

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110192257.8A Active CN102868590B (en) 2011-07-08 2011-07-08 It is a kind of to call the method and system of client by embedding webpage

Country Status (1)

Country Link
CN (1) CN102868590B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104113464B (en) * 2013-04-16 2017-11-10 腾讯科技(深圳)有限公司 Exchange method, device and system based on instant messaging prompting
CN103729425B (en) * 2013-12-24 2018-11-16 腾讯科技(深圳)有限公司 Operate response method, client, browser and system
CN105302590B (en) * 2014-07-22 2020-03-17 腾讯科技(北京)有限公司 Information processing method and device
CN105471953B (en) * 2014-09-10 2019-10-15 腾讯科技(深圳)有限公司 Customer terminal webpage dynamic display method, device and system
CN107920010B (en) * 2016-10-09 2021-04-20 腾讯科技(深圳)有限公司 Method and system for realizing temporary session

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101710327A (en) * 2009-12-04 2010-05-19 深圳创维数字技术股份有限公司 Method for caching local temporary files into embedded browser
CN102088466A (en) * 2009-12-07 2011-06-08 腾讯科技(深圳)有限公司 Micro-blog browsing method and relevant equipment

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100246570A1 (en) * 2009-03-24 2010-09-30 Avaya Inc. Communications session preparation method and apparatus
CN101938492B (en) * 2010-09-19 2014-09-17 陈剑勇 Service agent method and self-service intelligent agent platform

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101710327A (en) * 2009-12-04 2010-05-19 深圳创维数字技术股份有限公司 Method for caching local temporary files into embedded browser
CN102088466A (en) * 2009-12-07 2011-06-08 腾讯科技(深圳)有限公司 Micro-blog browsing method and relevant equipment

Also Published As

Publication number Publication date
CN102868590A (en) 2013-01-09

Similar Documents

Publication Publication Date Title
CN102868590B (en) It is a kind of to call the method and system of client by embedding webpage
US7133895B1 (en) System and method of integrating collaboration systems with browser based application systems
JP2019530033A5 (en)
CN106293355B (en) Method and device for displaying instant messaging window
CN106933839B (en) Page jump method and device
EP3120231A1 (en) Dismissing notifications in response to a presented notification
CN105580325A (en) Voice communications with real-time status notifications
RU2009128516A (en) DEVICE AND METHOD FOR SECURING AND DISPLAYING ANIMATED SMS MESSAGES
CN103064732A (en) Method for taking over third-party application messages through message manager
CN102184212A (en) Customized flow content presentation
CN108400925A (en) The based reminding method and instant communication client of instant communication information
CN102375865B (en) The message updating method of a kind of information client side and information client side
CN104159203A (en) Method and device of carrying out mixed arrangement on multimedia information in chat dialog box
KR20070009880A (en) System, apparatus and method for providing a flashcon in a instant messenger of a mobile device
CN113094143A (en) Cross-application message sending method and device, electronic equipment and readable storage medium
EP2604028B1 (en) Web-telco convergence comprising downloading script commands to user terminals
KR102390939B1 (en) Improving interaction with electronic chat interfaces
CN108429667A (en) A kind of method for information display and device
CN109214895A (en) A kind of game resource promotion method, apparatus and system
KR101570041B1 (en) Method and system for replying to website update event
KR101542776B1 (en) Controlling Method of Instant Messenger Service for Mobile Communication Terminal
KR20200073497A (en) Method for providing chatting service in user treminal, and the program stored in medium for executing the method
CN112653747A (en) Communication method, system and storage medium based on B/S architecture
KR100862728B1 (en) Mobile Terminal for Providing Vibration Imoticon in Mobile Messenger and Method Thereof
KR20190134049A (en) User treminal for providing chatting service

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant