CN102281277A - Method and system for realizing safety synchronization of scroll bar information on webpage - Google Patents

Method and system for realizing safety synchronization of scroll bar information on webpage Download PDF

Info

Publication number
CN102281277A
CN102281277A CN2011100851467A CN201110085146A CN102281277A CN 102281277 A CN102281277 A CN 102281277A CN 2011100851467 A CN2011100851467 A CN 2011100851467A CN 201110085146 A CN201110085146 A CN 201110085146A CN 102281277 A CN102281277 A CN 102281277A
Authority
CN
China
Prior art keywords
scroll bar
operation information
bar operation
communication server
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.)
Pending
Application number
CN2011100851467A
Other languages
Chinese (zh)
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.)
Suzhou Codyy Network Technology Co Ltd
Original Assignee
Suzhou Codyy Network Technology 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 Suzhou Codyy Network Technology Co Ltd filed Critical Suzhou Codyy Network Technology Co Ltd
Priority to CN2011100851467A priority Critical patent/CN102281277A/en
Publication of CN102281277A publication Critical patent/CN102281277A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention provides a method and system for realizing safety synchronization of scroll bar information on a webpage. In a technical scheme provided by the invention, a communication server authenticates the authority limits of a received scroll bar operation information instruction sent by a source user and authenticates the authority limits of the scroll bar operation information instruction received by a synchronized user after the authentication is passed; the communication server transmits acquired scroll bar operation information to a synchronizing storage server after the authentication to the authority limits of the scroll bar operation information instruction received by the synchronized user is passed; the synchronizing storage server stores and updates the scroll bar data information and transmits the updated scroll bar data information to the synchronized user. According the invention, the scroll bar synchronization and information safety can be realized without downloading and installing of software.

Description

Realize the synchronous method and system of scroll bar information security on a kind of webpage
Technical field
The invention belongs to networking technology area, relate in particular to and realize the synchronous method and system of scroll bar information security on a kind of webpage.
Background technology
The development of Internet technology can be stayed indoors us and has just been realized instant messaging, with good friend's chat, with affiliate's negotiation or the like.At present, the immediate communication tool that downloads and installs based on needs is as MSN, QQ, POPO has been subjected to everybody liking deeply, and it provides new approach for people's communication, information interchange, is another the important information interchange mode except mobile phone, fixed line, Email.By these instruments, the user can realize single or many people video, can hold the network teleconference, can carry out network remote education, can also allow the interchange cost between people and the people reduce greatly, and improve efficient.
Text communication, voice communication, video communication are instant messaging most important three big functions.Develop rapidly along with business informationization, people utilize the Internet to carry out the commercial affairs interchange and also progressively popularize, as demonstrate paper achievement, enterprise plan book, difficult problem solution book etc., often can not intactly represent by the electronic whiteboard demonstration document and to watch, all will show in full basically by scroll bar to other people.
The existing product that possesses the content demonstration function is many, and the demonstration document content all can be synchronously to other users, but when the demonstrator spurred scroll bar, other participants' scroll bar can't be synchronous, and the file content zone that is presented is also different; Even existing software realizes synchronously, but can not guarantee there is not error when multiterminal are synchronous, the deviation that will cause information to obtain like this, the effect of the interchange of influence; These softwares all need download and install, and hardware, expense etc. is all had certain requirement; And the synchronizing information in the existing solution is passive acceptance, can not authenticate control subjective, and it is operated with true inconsistent phenomenon to cause occurring the user.
Summary of the invention
The invention provides and realize the synchronous method and system of scroll bar information security on a kind of webpage, realized need not down loading mounting software and can realize that scroll bar reaches information security synchronously.
Technical scheme of the present invention is as follows:
The authority that communication server sends the scroll bar operation information command to the source user that receives authenticates and after authentication is passed through, the authority that is received described scroll bar operation information command by the simultaneous user is authenticated and after authentication was passed through, described communication server was sent to the stores synchronized server with the scroll bar operation information of obtaining;
Described stores synchronized server stores and upgrade rolling data information and will upgrade after described rolling data information, be sent to by the simultaneous user.
The invention provides and realize the synchronous method and system of scroll bar information security on a kind of webpage, realized need not down loading mounting software and can realize that scroll bar reaches information security synchronously.
Description of drawings
Accompanying drawing described herein is used to provide further understanding of the present invention, constitutes the application's a part, and illustrative examples of the present invention and explanation thereof are used to explain the present invention, do not constitute improper qualification of the present invention.In the accompanying drawings:
Fig. 1 is a flow chart of the present invention;
Fig. 2 is a realization schematic diagram of the present invention.
Embodiment
Hereinafter will describe the present invention with reference to the accompanying drawings and in conjunction with the embodiments in detail.Need to prove that under the situation of not conflicting, embodiment and the feature among the embodiment among the application can make up mutually.
Technical scheme of the present invention may further comprise the steps:
1) source user is operated at web page area, and described scroll bar operation information is recorded in the aray variable, and wherein, described scroll bar operation information includes but not limited to: the scroll bar height of scroll zones, width; Detailed process is: source user is operated at web page area, pins scroll bar and begins when mobile when mouse, and the scroll bar height of record institute scroll zones stops record when mouse is upspring in aray variable
2) in record, program timing is obtained n bar record from aray variable, send a message to communication server by the Socket interface that calls Flash, and removes this n bar record from array;
3) after communication server receives message, message data is authenticated, authentication includes but not limited to: the source user authentication, data command purview certification (whether source user has the authority that sends this instruction), can source user instruct operated target purview certification (source user instruction access destination user authority), the targeted customer instructs purview certification (whether the targeted customer has the authority of accepting source user instruction) to source user, after all authentications are passed through, communication server sends a message to the stores synchronized server, at synchronization, the stores synchronized server is only safeguarded up-to-date information, the stores synchronized server sends to communication server with up-to-date information, and it is the targeted customer that communication server sends to information by the simultaneous user;
4) received message by simultaneous user Flash after, resolve the scroll bar height value that message obtains passing over by program, and will be arranged to this height value by the scroll bar height of retaining zone, just realize rolling synchronously.
Realization principle of the present invention is as follows:
When the user opens webpage, load the Flash plug-in unit, the Flash plug-in unit uses automatic foundation of XMLSocket class to be connected with server, is used for sending and receiving the scroll bar synchronization message;
The user operates at web page area, pins scroll bar and begins when mobile when mouse, and the scroll bar height of record institute scroll zones stops record when mouse is upspring in webpage JavaScript aray variable;
In the process of record, webpage regularly uses JavaScript to obtain n bar record from aray variable, and uses JavaScript to call the Flash interface and import this n bar record into; Flash uses the XMLSocket class that the n bar record that passes over is assembled into message and sends to communication server; And use JavaScript from aray variable, to remove this n bar record;
After communication server receives message, message data is authenticated, authentication includes but not limited to: source user authentication, data command purview certification, source user instruct operated target purview certification, targeted customer that source user is instructed purview certification, after all authentications were passed through, communication server forwarded information to the stores synchronized server; The stores synchronized server stores is also upgraded rolling data information, synchronous behavior can be initiated at one time by source user in many ways owing to roll, so the stores synchronized server is only preserved a rolling data information, when receiving rolling data information at every turn, all current rolling data information is upgraded, to guarantee the causing property of rolling data information; The stores synchronized server sends to communication server with up-to-date rolling data information;
Communication server sends to the rolling data information that the stores synchronized server sends over by the simultaneous user;
When being opened by the simultaneous user, load the Flash plug-in unit, the automatic foundation of Flash plug-in unit use XMLSocket class is connected with server, is used for sending and receiving the scroll bar synchronizing information; After synchronous end sends the message success, just can be received this message by the simultaneous user, by XML class and the character string processing function of Flash the message of receiving is handled, obtain the scroll bar height that passes over; Flash uses the call function call JavaScript function of ExternalInterface class, import the scroll bar height that parses into, JavaScript changes the ticker position of scroll zones again by the scrollTop value that changes scroll zones, realize the synchronous of scroll bar.
Fig. 1 is a flow chart of the present invention, is described in detail as follows:
Step 101: source user is operated at web page area, pins scroll bar and begins when mobile when mouse, and the scroll bar height of record institute scroll zones stops record when mouse is upspring in aray variable;
In the technique scheme, wherein step comprises following process:
When 1a) user opens webpage, load the Flash plug-in unit, the Flash plug-in unit uses automatic foundation of XMLSocket class to be connected with communication server, is used for sending and receiving the scroll bar synchronization message;
1b) user operates at web page area, pins scroll bar and begins when mobile when mouse, and the scroll bar height of record institute scroll zones stops record when mouse is upspring in webpage JavaScript aray variable.
Step 102: in record, program timing is obtained n bar record from aray variable, sends the message communication server by the Socket interface that calls Flash, and remove this n bar record from array;
In the technique scheme, wherein step comprises following process:
2a) in the process of record, webpage regularly uses JavaScript to obtain n bar record from aray variable, and uses JavaScript to call the Flash interface and import this n bar record into;
2b) Flash uses the XMLSocket class that the n bar record that passes over is assembled into message and sends to communication server.
2c) and use JavaScript from aray variable, to remove this n bar record.
Step 103: communication server is to after receiving message and authenticating, forwards is arrived the stores synchronized server, at synchronization, the stores synchronized server is only safeguarded up-to-date information, the stores synchronized server sends to communication server with up-to-date information, and communication server sends to information by the simultaneous user;
In the technique scheme, wherein step comprises following process:
After 3a) communication server receives message, message data is authenticated, authentication includes but not limited to: source user authentication, data command purview certification, source user instruct operated target purview certification, targeted customer that source user is instructed purview certification, communication server is to after receiving message and authenticating, with forwards to the stores synchronized server;
3b) stores synchronized server stores and upgrade rolling data information, synchronous behavior can be initiated at one time by source user in many ways owing to roll, so the stores synchronized server is only preserved a rolling data information, when receiving rolling data information at every turn, all current rolling data information is upgraded, to guarantee the consistency of rolling data information;
3c) the stores synchronized server sends to communication server with up-to-date rolling data information;
3d) communication server sends to the rolling data information that the stores synchronized server sends over by the simultaneous user.
Step 104: after being received message by simultaneous user Flash, resolve the scroll bar height value that message obtains passing over by program, and will be arranged to this height value, just realize rolling synchronously by the scroll bar height of retaining zone.
In the technique scheme, wherein step comprises following process:
When 4a) being opened by the simultaneous user, load the Flash plug-in unit, the automatic foundation of Flash plug-in unit use XMLSocket class is connected with communication server, is used for sending and receiving the scroll bar synchronizing information;
4b) after synchronous end sends the message success, just can be received this message, the message of receiving be handled, obtain the scroll bar height that passes over by XML class and the character string processing function of Flash by the simultaneous user;
4c) Flash uses the call function call JavaScript function of ExternalInterface class, import the scroll bar height that parses into, JavaScript changes the ticker position of scroll zones again by the scrollTop value that changes scroll zones, realize the synchronous of scroll bar.
Fig. 2 is realization of the present invention and schematic diagram, is described in detail as follows:
User A, user B, user C opens webpage, and webpage loads the Flash plug-in unit automatically, and the permalink of foundation of Flash plug-in unit and communication server and stores synchronized server begins to monitor the transmission of stores synchronized server data;
User A operates at web page area, and described scroll bar operation information is recorded in the aray variable, and wherein, described scroll bar operation information includes but not limited to: the scroll bar height of scroll zones; Detailed process is: user A operates at web page area, pins scroll bar and begins when mobile when mouse, and the scroll bar height of record institute scroll zones stops record when mouse is upspring in aray variable;
In record, program timing is obtained n bar record from aray variable, send a message to communication server by the Socket interface that calls Flash, and removes this n bar record from array;
Communication server is to all user A information that receives, after authenticating, forwards is arrived the stores synchronized server, at synchronization, the stores synchronized server is only safeguarded up-to-date information, the stores synchronized server sends to communication server with up-to-date information, and it is user B that communication server sends to information by the simultaneous user, user C.
After being received message by simultaneous user Flash, resolve the scroll bar height value that message obtains passing over by program, and will be arranged to this height value, just realize rolling synchronously by the scroll bar height of retaining zone.
Annotate: user B, C, and user A, B, any two or three of C upgrades scroll bar operation information simultaneously, and the synchronous process of scroll bar is all the same.
The above is the preferred embodiments of the present invention only, is not limited to the present invention, and for a person skilled in the art, the present invention can have various changes and variation.Within the spirit and principles in the present invention all, any modification of being done, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (10)

1. realize the synchronous method of scroll bar information security on a webpage, it is characterized in that:
The authority that communication server sends the scroll bar operation information command to the source user that receives authenticates and after authentication is passed through, the authority that is received described scroll bar operation information command by the simultaneous user is authenticated and after authentication was passed through, described communication server was sent to the stores synchronized server with the scroll bar operation information of obtaining;
Described stores synchronized server stores and upgrade rolling data information and will upgrade after described rolling data information, be sent to by the simultaneous user.
2. method according to claim 1 is characterized in that: communication server obtains before the scroll bar operation information, also comprises:
Source user is operated at web page area, and described scroll bar operation information is recorded in the aray variable, and wherein, described scroll bar operation information includes but not limited to: the scroll bar height of scroll zones.
3. method according to claim 2, it is characterized in that: the described scroll bar operation information that source user will obtain from described aray variable, send a message to described communication server by the Socket interface that calls F1ash, and from array, remove described scroll bar operation information.
4. method according to claim 3, it is characterized in that: the described scroll bar operation information that described communication server will receive, be forwarded to described stores synchronized server, described stores synchronized server stores and upgrade rolling data information and will upgrade after described rolling data information, be sent to by the simultaneous user by described communication server.
5. method according to claim 4, it is characterized in that: after being received message by simultaneous user Flash, resolve the scroll bar height value that message obtains passing over by program, and will be arranged to the described scroll bar height value that passes over by the scroll bar height of retaining zone, realize that scroll bar is synchronous.
6. method according to claim 1 is characterized in that: before the authority that communication server sends the scroll bar operation information command to the source user that receives authenticates, comprise that also the identity to source user authenticates.
7. method according to claim 1, it is characterized in that: the authority that communication server sends the scroll bar operation information command to the source user that receives authenticates and after authentication is passed through, also the operated target of source user scroll bar operation information command is carried out purview certification, promptly whether source user has the scroll bar operation information command is sent to other by simultaneous user's authority.
8. realize the synchronous system of scroll bar information security on the webpage, it is characterized in that: this system comprises: source user, communication server, stores synchronized server, by the simultaneous user, wherein:
The authority that communication server sends the scroll bar operation information command to the source user that receives authenticates and after authentication is passed through, the authority that is received described scroll bar operation information command by the simultaneous user is authenticated and after authentication was passed through, described communication server was sent to the stores synchronized server with the scroll bar operation information of obtaining;
Described stores synchronized server stores and upgrade rolling data information and will upgrade after described rolling data information, be sent to by the simultaneous user.
9. system according to claim 8, it is characterized in that: communication server obtains before the scroll bar operation information, also comprise: source user is operated at web page area, described scroll bar operation information is recorded in the aray variable, wherein, described scroll bar operation information includes but not limited to: the scroll bar height of scroll zones.
10. system according to claim 9, it is characterized in that: the described scroll bar operation information that source user will obtain from described aray variable, send a message to described communication server by the Socket interface that calls Flash, and from array, remove described scroll bar operation information.
CN2011100851467A 2011-04-06 2011-04-06 Method and system for realizing safety synchronization of scroll bar information on webpage Pending CN102281277A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2011100851467A CN102281277A (en) 2011-04-06 2011-04-06 Method and system for realizing safety synchronization of scroll bar information on webpage

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2011100851467A CN102281277A (en) 2011-04-06 2011-04-06 Method and system for realizing safety synchronization of scroll bar information on webpage

Publications (1)

Publication Number Publication Date
CN102281277A true CN102281277A (en) 2011-12-14

Family

ID=45106455

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2011100851467A Pending CN102281277A (en) 2011-04-06 2011-04-06 Method and system for realizing safety synchronization of scroll bar information on webpage

Country Status (1)

Country Link
CN (1) CN102281277A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103853319A (en) * 2012-11-30 2014-06-11 英业达科技有限公司 System, server and method for controlling different devices according to input operation
CN108269208A (en) * 2016-12-30 2018-07-10 亿度慧达教育科技(北京)有限公司 Control method, device and the online course live broadcast system of classroom interaction real-time
CN115079891A (en) * 2021-03-01 2022-09-20 北京字跳网络技术有限公司 Document content display method and device and electronic equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050234883A1 (en) * 2004-04-19 2005-10-20 Yahoo!, Inc. Techniques for inline searching in an instant messenger environment
CN1705299A (en) * 2004-05-27 2005-12-07 腾讯科技(深圳)有限公司 Method for controlling instant messages in instant messaging system
CN101989997A (en) * 2009-08-06 2011-03-23 中国电信股份有限公司 Schedule synchronization method, server and system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050234883A1 (en) * 2004-04-19 2005-10-20 Yahoo!, Inc. Techniques for inline searching in an instant messenger environment
CN1705299A (en) * 2004-05-27 2005-12-07 腾讯科技(深圳)有限公司 Method for controlling instant messages in instant messaging system
CN101989997A (en) * 2009-08-06 2011-03-23 中国电信股份有限公司 Schedule synchronization method, server and system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
陈景岩等: "视频会议软件中文档共享的实现方案及比较", 《吉林大学学报(信息科学版)》 *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103853319A (en) * 2012-11-30 2014-06-11 英业达科技有限公司 System, server and method for controlling different devices according to input operation
CN108269208A (en) * 2016-12-30 2018-07-10 亿度慧达教育科技(北京)有限公司 Control method, device and the online course live broadcast system of classroom interaction real-time
CN108269208B (en) * 2016-12-30 2020-12-01 亿度慧达教育科技(北京)有限公司 Classroom interaction real-time control method and device and online course live broadcast system
CN115079891A (en) * 2021-03-01 2022-09-20 北京字跳网络技术有限公司 Document content display method and device and electronic equipment
CN115079891B (en) * 2021-03-01 2024-03-15 北京字跳网络技术有限公司 Document content display method and device and electronic equipment

Similar Documents

Publication Publication Date Title
CN103491055A (en) Method for synchronizing information among clients, clients and server
CN102130853A (en) Group message interaction realization method and system
CN102307212A (en) Method for realizing page-turning synchronization
RU2007148280A (en) SYSTEM FOR WEB PUBLICATION
CN103051764A (en) Method for sharing information of contact persons in mobile phone
CN102307214A (en) Method for realizing list synchronization
CN102170442A (en) Safe synchronization method and system for electronic whiteboard based on community platform
CN102368848A (en) Wireless communication device and configuration method thereof
CN102185699A (en) Group information interaction method and system for community platform
CN102185701A (en) Method and system for realizing group information interaction
CN102281277A (en) Method and system for realizing safety synchronization of scroll bar information on webpage
CN102164099A (en) Webpage-based group information interaction realization method and system
CN102137045A (en) Method and system for implementing group information interaction on community platform
CN102137038A (en) Group information interaction method and system based on community platform
CN102137035A (en) Method and system for realizing group information interaction based on community platform
CN102158429A (en) Community platform based group communication method and system
CN102195980A (en) Webpage-based electronic whiteboard secure synchronization method and system
CN102314471A (en) Method for synchronizing scroll bars
CN102137044A (en) Method and system for safely interacting group information based on community platform
CN102279859A (en) Method and system for synchronizing scroll bar on webpage
CN102281265A (en) Method and system for realizing list authentication synchronization
CN102137120A (en) Method and system for group communication
CN102185795A (en) Method and system for realizing group communication on community platform
CN102185848A (en) Webpage-based audio and video communication method and system
CN102186050A (en) Webpage-based remote video conference method and system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20111214