CN106844316A - Process the method and system of office documents online on a web browser - Google Patents

Process the method and system of office documents online on a web browser Download PDF

Info

Publication number
CN106844316A
CN106844316A CN201611145288.7A CN201611145288A CN106844316A CN 106844316 A CN106844316 A CN 106844316A CN 201611145288 A CN201611145288 A CN 201611145288A CN 106844316 A CN106844316 A CN 106844316A
Authority
CN
China
Prior art keywords
original document
user
document
office
client
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.)
Granted
Application number
CN201611145288.7A
Other languages
Chinese (zh)
Other versions
CN106844316B (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.)
BEIJING SHIPBUILDING INFORMATION TECHNOLOGY Co Ltd
Original Assignee
BEIJING SHIPBUILDING INFORMATION 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 BEIJING SHIPBUILDING INFORMATION TECHNOLOGY Co Ltd filed Critical BEIJING SHIPBUILDING INFORMATION TECHNOLOGY Co Ltd
Priority to CN201611145288.7A priority Critical patent/CN106844316B/en
Publication of CN106844316A publication Critical patent/CN106844316A/en
Application granted granted Critical
Publication of CN106844316B publication Critical patent/CN106844316B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Document Processing Apparatus (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a kind of method and system for the treatment of office documents online on a web browser, it is related to documents editing processing technology field.The system, including client and server end, client replace html standard textarea controls, and the service end Office documents that opening is specified in it by js, for user's online editing operation.The call back function of js is triggered after the save button of user's click page, the content of editor is back to server and original document is updated.So as to aid in the software that document process is needed to OA classes, the online editing of document is realized, edit operation is carried out again after user is downloaded to document, improve the treatment effeciency of document.

Description

Process the method and system of office documents online on a web browser
Technical field
The present invention relates to documents editing processing technology field, more particularly to a kind for the treatment of office texts online on a web browser The method and system of shelves.
Background technology
In the prior art, as WebEdit may only be operated in control, directly Office files can not be carried out Editor.There are currently no set of online editing office document technologies simultaneously, it is impossible to realize in a browser in server Office documents are remotely edited, preserved.
The content of the invention
It is an object of the invention to provide a kind of method and system for the treatment of office documents online on a web browser, so that Solve foregoing problems present in prior art.
To achieve these goals, the technical solution adopted by the present invention is as follows:
A kind of method for the treatment of office documents online on a web browser, comprises the following steps:
S1, client calls js scripts in html;
The textarea controls of html standards are replaced with js script controls by S2, the client using js scripts;
S3, the client opens the original document of the server end specified in the js scripts control;
S4, user carries out editing and processing to the original document according to the mode of operation of office, the text after being edited Shelves;
S5, triggers the js call back functions of the client, after the editor after the save button of user's click page Document is back to server end,
S6, after the document after the received server-side to the editor, updates the original document.
Preferably, S2 comprises the following steps:
S201, creates textarea controls, and configure unique ID;
S202, in js to create control in the way of replace textarea controls representated by the ID.
Preferably, S3 comprises the following steps:
S301, writes js sentences and sets server end address;
S302, the position where the original document of the server end specified according to user, enters to the original document Row stream process, and the file stream is sent into the client to where user, stream file is reduced, call the client Local Office components are shown in js script controls, so as to user according to the mode of operation of office to described original Document carries out editing and processing.
Preferably, S5 is specially:After user clicks on save button, the client is to the content transformation of the page to stream process File, and it is sent to server end.
Preferably, S6 is specially:In the server end, by file translations for office files are preserved to server end institute Be not in duplicate file to ensure while original document is carried out into renaming operation in file where stating original document The document after editor is set to preserve.
A kind of system for the treatment of office documents online on a web browser, including:
Server end, for providing original document, is additionally operable to receive the document after editor, and update original document;
Client, for calling js scripts in html, is replaced with the textarea controls of html standards using js scripts Js script controls, are additionally operable in the js scripts control, the original document of the server end that opening is specified, and are additionally operable to user couple The original document carries out editing and processing according to the mode of operation of office, the document after being edited, and is additionally operable to user's click Js call back functions are triggered after the save button of the page, the document after the editor is back to the server end.
Preferably, the server end, for being office files by file translations and being saved to the original text In file where shelves, while original document is carried out into renaming operation.
Preferably, the client is used for after user clicks on save button, to the content transformation of the page to stream process file, And it is sent to the server end.
Preferably, the server end, for the position according to where the original document that user specifies, to the original text Shelves carry out stream process, and the client file stream sent to where user;
The user terminal is used to write js sentences setting server end address, is additionally operable to reduce stream file, calls The local Office components of the client are shown in js script controls, so that user is according to the mode of operation of office Editing and processing is carried out to the original document.
The beneficial effects of the invention are as follows:The side for the treatment of office documents online on a web browser provided in an embodiment of the present invention Method and system, including client and server end, client replace html standard textarea controls by js, and are beaten in it The service end Office documents specified are opened, for user's online editing operation.Trigger js's after the save button of user's click page Call back function, is back to the content of editor server and updates original document.So as to needing the soft of document process to OA classes Part is aided in, and realizes the online editing of document, and edit operation is carried out again after user is downloaded to document, is carried The treatment effeciency of document high.
Brief description of the drawings
Fig. 1 is the method flow and system knot for the treatment of office documents online on a web browser provided in an embodiment of the present invention Structure schematic diagram.
Specific embodiment
In order to make the purpose , technical scheme and advantage of the present invention be clearer, below in conjunction with accompanying drawing, the present invention is entered Row is further described.It should be appreciated that specific embodiment described herein is only used to explain the present invention, it is not used to Limit the present invention.
Embodiment one
As shown in figure 1, the embodiment of the invention provides a kind of method for the treatment of office documents online on a web browser, wrap Include following steps:
S1, client calls js scripts in html;
The textarea controls of html standards are replaced with js script controls by S2, the client using js scripts;
Specifically may include steps of:
S201, creates textarea controls, and configure unique ID;
S202, in js to create control in the way of replace textarea controls representated by the ID.
S3, the client opens the original document of the server end specified in the js scripts control;
Specifically may include steps of:
S301, writes js sentences and sets server end address;
S302, the position where the original document of the server end specified according to user, enters to the original document Row stream process, and the file stream is sent into the client to where user, stream file is reduced, call the client Local Office components are shown in js script controls, so as to user according to the mode of operation of office to described original Document carries out editing and processing.
S4, user carries out editing and processing to the original document according to the mode of operation of office, the text after being edited Shelves;
S5, triggers the js call back functions of the client, after the editor after the save button of user's click page Document is back to server end;
It is specifically as follows:User click on save button after, the client to the content transformation of the page to stream process file, And it is sent to server end.
S6, after the document after the received server-side to the editor, updates the original document.
It is specifically as follows:In the server end, by file translations for office files are preserved to original described in server end Be not in that duplicate file makes volume to ensure while original document is carried out into renaming operation in file where beginning document Document after volume is preserved.
Embodiment two
A kind of system for the treatment of office documents online on a web browser is the embodiment of the invention provides, including:
Server end, for providing original document, is additionally operable to receive the document after editor, and update original document;Its Class libraries based on middle service end, is available for Third party system to be called;
Specifically, the server end, for the position according to where the original document that user specifies, to the original text Shelves carry out stream process, and the client file stream sent to where user;It is office texts to be additionally operable to file translations In part and the file where being saved to the original document, while original document is carried out into renaming operation.
Client, is js scripts, for calling js scripts in html, is controlled the textarea of html standards using js scripts Part replaces with js script controls, is additionally operable in the js scripts control, the original document of the server end that opening is specified, and also uses Editing and processing is carried out according to the mode of operation of office to the original document in user, the document after being edited is additionally operable to Js call back functions are triggered after the save button of user's click page, the document after the editor is back to the server end.
Specifically, the user terminal is used to write js sentences setting server end address, is additionally operable to go back stream file Original, calls the local Office components of the client to be shown in js script controls, so that user is according to office's Mode of operation carries out editing and processing to the original document, after being additionally operable to user's click save button, to the content transformation of the page To stream process file, and it is sent to the server end.
System provided in an embodiment of the present invention, its course of work may refer to the scheme of the offer of embodiment one, herein no longer Repeat.
By using above-mentioned technical proposal disclosed by the invention, following beneficial effect has been obtained:The embodiment of the present invention is carried The method and system of the treatment office documents online on a web browser for supplying, including client and server end, client pass through Js replaces html standard textarea controls, and the service end Office documents that opening is specified in it, for user's online editing Operation.The call back function of js is triggered after the save button of user's click page, the content of editor is back to server and is updated Original document.So as to aid in the software that document process is needed to OA classes, the online editing of document is realized, make user Edit operation is carried out after need not being downloaded to document again, the treatment effeciency of document is improve.
Each embodiment in this specification is described by the way of progressive, what each embodiment was stressed be with The difference of other embodiment, between each embodiment identical similar part mutually referring to.
Those skilled in the art should be understood that the sequential of the method and step that above-described embodiment is provided can be entered according to actual conditions Row accommodation, is concurrently carried out also dependent on actual conditions.
All or part of step in the method that above-described embodiment is related to can be instructed by program correlation hardware come Complete, described program can be stored in the storage medium that computer equipment can read, for performing the various embodiments described above side All or part of step described in method.The computer equipment, for example:Personal computer, server, the network equipment, intelligent sliding Dynamic terminal, intelligent home device, wearable intelligent equipment, vehicle intelligent equipment etc.;Described storage medium, for example:RAM、 ROM, magnetic disc, tape, CD, flash memory, USB flash disk, mobile hard disk, storage card, memory stick, webserver storage, network cloud storage Deng.
Finally, in addition it is also necessary to explanation, herein, such as first and second or the like relational terms be used merely to by One entity or operation make a distinction with another entity or operation, and not necessarily require or imply these entities or operation Between there is any this actual relation or order.And, term " including ", "comprising" or its any other variant meaning Covering including for nonexcludability, so that process, method, commodity or equipment including a series of key elements not only include that A little key elements, but also other key elements including being not expressly set out, or also include for this process, method, commodity or The intrinsic key element of equipment.In the absence of more restrictions, the key element limited by sentence "including a ...", does not arrange Except also there is other identical element in the process including the key element, method, commodity or equipment.
The above is only the preferred embodiment of the present invention, it is noted that for the ordinary skill people of the art For member, under the premise without departing from the principles of the invention, some improvements and modifications can also be made, these improvements and modifications also should Depending on protection scope of the present invention.

Claims (9)

1. a kind of method for the treatment of office documents online on a web browser, it is characterised in that comprise the following steps:
S1, client calls js scripts in html;
The textarea controls of html standards are replaced with js script controls by S2, the client using js scripts;
S3, the client opens the original document of the server end specified in the js scripts control;
S4, user carries out editing and processing to the original document according to the mode of operation of office, the document after being edited;
S5, triggers the js call back functions of the client, by the document after the editor after the save button of user's click page It is back to server end,
S6, after the document after the received server-side to the editor, updates the original document.
2. the method for the treatment of office documents online on a web browser according to claim 1, it is characterised in that S2 includes Following steps:
S201, creates textarea controls, and configure unique ID;
S202, in js to create control in the way of replace textarea controls representated by the ID.
3. the method for the treatment of office documents online on a web browser according to claim 1, it is characterised in that S3 includes Following steps:
S301, writes js sentences and sets server end address;
S302, the position where the original document of the server end specified according to user, flows to the original document Treatment, and the file stream is sent into the client to where user, stream file is reduced, call the client local Office components shown in js script controls, so as to user according to the mode of operation of office to the original document Carry out editing and processing.
4. the method for the treatment of office documents online on a web browser according to claim 1, it is characterised in that S5 is specific For:After user clicks on save button, the client, to stream process file, and is sent to server to the content transformation of the page End.
5. the method for the treatment of office documents online on a web browser according to claim 1, it is characterised in that S6 is specific For:In the server end, file translations are preserved into the file to where original document described in server end for office files Be not in that duplicate file enables the document after editor to protect to ensure while original document is carried out into renaming operation in folder Deposit.
6. a kind of system for the treatment of office documents online on a web browser, it is characterised in that including:
Server end, for providing original document, is additionally operable to receive the document after editor, and update original document;
Client, for calling js scripts in html, js pin is replaced with using js scripts by the textarea controls of html standards This control, is additionally operable in the js scripts control, the original document of the server end that opening is specified, and is additionally operable to user to described Original document carries out editing and processing according to the mode of operation of office, the document after being edited, and is additionally operable to user and clicks on the page Save button after trigger js call back functions, the document after the editor is back to the server end.
7. the system for the treatment of office documents online on a web browser according to claim 6, it is characterised in that the clothes Business device end, for being in office files and file where being saved to the original document by file translations, while Original document is carried out into renaming operation.
8. the system for the treatment of office documents online on a web browser according to claim 6, it is characterised in that the visitor Family end is used for after user clicks on save button, to the content transformation of the page to stream process file, and is sent to the server end.
9. the system for the treatment of office documents online on a web browser according to claim 6, it is characterised in that the clothes Business device end, for the position according to where the original document that user specifies, stream process is carried out to the original document, and will be described File stream sends the client to where user;
The user terminal is used to write js sentences setting server end address, is additionally operable to reduce stream file, calls described The local Office components of client are shown in js script controls, so as to user according to the mode of operation of office to institute Stating original document carries out editing and processing.
CN201611145288.7A 2016-12-13 2016-12-13 Method and system for processing office document on browser online Active CN106844316B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611145288.7A CN106844316B (en) 2016-12-13 2016-12-13 Method and system for processing office document on browser online

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611145288.7A CN106844316B (en) 2016-12-13 2016-12-13 Method and system for processing office document on browser online

Publications (2)

Publication Number Publication Date
CN106844316A true CN106844316A (en) 2017-06-13
CN106844316B CN106844316B (en) 2020-08-04

Family

ID=59140245

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611145288.7A Active CN106844316B (en) 2016-12-13 2016-12-13 Method and system for processing office document on browser online

Country Status (1)

Country Link
CN (1) CN106844316B (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108287920A (en) * 2018-02-13 2018-07-17 深圳市博安达信息技术股份有限公司 A method of handling office files under BS systems
CN110674619A (en) * 2019-09-18 2020-01-10 北京达佳互联信息技术有限公司 Online document editing method, device, equipment and computer storage medium
CN111708956A (en) * 2020-06-15 2020-09-25 江西金格科技股份有限公司 Method for editing Office file in web browser based on HTML5 technology
CN112016280A (en) * 2020-10-16 2020-12-01 北京联想协同科技有限公司 File editing method and device and computer readable medium
CN112395522A (en) * 2020-11-13 2021-02-23 厦门市美亚柏科信息股份有限公司 Method for editing and previewing Office document online, terminal device and storage medium
CN113256259A (en) * 2021-06-01 2021-08-13 通号智慧城市研究设计院有限公司 Online editing service system and implementation method thereof
CN113468858A (en) * 2021-07-21 2021-10-01 山谷网安科技股份有限公司 On-line editing method of office file independent of client environment
CN114237737A (en) * 2021-11-25 2022-03-25 北京轩宇信息技术有限公司 Processing method for structured entry of Word file data

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101567065A (en) * 2009-05-26 2009-10-28 杭州世导科技有限公司 Cross-platform online file editing system and method thereof
CN103942202A (en) * 2013-01-18 2014-07-23 腾讯科技(深圳)有限公司 High self-adaptation zooming method and device for webpage text field
CN103955366A (en) * 2014-04-18 2014-07-30 南威软件股份有限公司 Producing method of visualized website template
CN104504160A (en) * 2015-01-20 2015-04-08 中国地质大学(武汉) Excel document online batch write-in method based on SSH frame

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101567065A (en) * 2009-05-26 2009-10-28 杭州世导科技有限公司 Cross-platform online file editing system and method thereof
CN103942202A (en) * 2013-01-18 2014-07-23 腾讯科技(深圳)有限公司 High self-adaptation zooming method and device for webpage text field
CN103955366A (en) * 2014-04-18 2014-07-30 南威软件股份有限公司 Producing method of visualized website template
CN104504160A (en) * 2015-01-20 2015-04-08 中国地质大学(武汉) Excel document online batch write-in method based on SSH frame

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108287920A (en) * 2018-02-13 2018-07-17 深圳市博安达信息技术股份有限公司 A method of handling office files under BS systems
CN110674619A (en) * 2019-09-18 2020-01-10 北京达佳互联信息技术有限公司 Online document editing method, device, equipment and computer storage medium
CN110674619B (en) * 2019-09-18 2023-10-17 北京达佳互联信息技术有限公司 Online document editing method, device, equipment and computer storage medium
CN111708956A (en) * 2020-06-15 2020-09-25 江西金格科技股份有限公司 Method for editing Office file in web browser based on HTML5 technology
CN112016280A (en) * 2020-10-16 2020-12-01 北京联想协同科技有限公司 File editing method and device and computer readable medium
CN112395522A (en) * 2020-11-13 2021-02-23 厦门市美亚柏科信息股份有限公司 Method for editing and previewing Office document online, terminal device and storage medium
CN113256259A (en) * 2021-06-01 2021-08-13 通号智慧城市研究设计院有限公司 Online editing service system and implementation method thereof
CN113256259B (en) * 2021-06-01 2024-04-19 通号智慧城市研究设计院有限公司 Online editing service system and implementation method thereof
CN113468858A (en) * 2021-07-21 2021-10-01 山谷网安科技股份有限公司 On-line editing method of office file independent of client environment
CN113468858B (en) * 2021-07-21 2023-12-19 山谷网安科技股份有限公司 Method for online editing of office file independent of client environment
CN114237737A (en) * 2021-11-25 2022-03-25 北京轩宇信息技术有限公司 Processing method for structured entry of Word file data

Also Published As

Publication number Publication date
CN106844316B (en) 2020-08-04

Similar Documents

Publication Publication Date Title
CN106844316A (en) Process the method and system of office documents online on a web browser
CN103297327B (en) Information push method, device and display terminal
CN103491169B (en) Method and system for uploading and downloading files
CN105100003B (en) A kind of web game preloading method and device of client
US20100005410A1 (en) Mobile device application framework
CN107784120A (en) The method and device of issue operation active web pages
WO2017028611A1 (en) Form implementation method and apparatus
US20070136696A1 (en) System and Method for Enabling at Least One Independent Data Navigation and Interaction Activity Within a Document
US6904569B1 (en) Link-level browser instance control
CN105630459A (en) Method for converting PPT document to HTML page
US20120011447A1 (en) Facilitating propagation of user interface patterns or themes
JP2014524069A (en) Embedded web viewer for presentation applications
US20150046850A1 (en) Multi-display system
US20230237255A1 (en) Form generation method, apparatus, and device, and medium
US7617219B2 (en) Enhanced handling of repeated information in a web form
US20080195949A1 (en) Rendition of a content editor
WO2003067428A2 (en) Document transformation
WO2014110978A1 (en) Server, client, system and method for preloading browse page on explorer
CN104182494A (en) Method and system capable of realizing CMS website construction with PC terminal and mobile terminal
JP2023537767A (en) Image processing method and apparatus, and computer-readable storage medium
CN111125595B (en) Multi-page control method and device, electronic equipment and storage medium
CN102955852A (en) Method, device and equipment for webpage resource processing
CN112052001B (en) UI dynamic display design architecture, method, equipment and storage medium of APP client
CN109189593A (en) A kind of method, apparatus of data processing, computer equipment and storage medium
CN107766549A (en) Text delet method and device, terminal installation and readable storage medium storing program for executing

Legal Events

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