CN102231111A - Programming realization method based on browser - Google Patents

Programming realization method based on browser Download PDF

Info

Publication number
CN102231111A
CN102231111A CN2011102087148A CN201110208714A CN102231111A CN 102231111 A CN102231111 A CN 102231111A CN 2011102087148 A CN2011102087148 A CN 2011102087148A CN 201110208714 A CN201110208714 A CN 201110208714A CN 102231111 A CN102231111 A CN 102231111A
Authority
CN
China
Prior art keywords
code
browser
file
programming
server end
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
CN2011102087148A
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.)
Individual
Original Assignee
Individual
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 Individual filed Critical Individual
Priority to CN2011102087148A priority Critical patent/CN102231111A/en
Publication of CN102231111A publication Critical patent/CN102231111A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Stored Programmes (AREA)

Abstract

The invention discloses a programming realization method based on a browser. The method comprises the following steps based on the browser: code compiling, code saving, operation result returning and the like. According to the invention, a method for programming based on the browser is realized without client programming tools, and complex installation configurations of client programming environment are omitted, thus a programming beginner is ensured to pay main attention to code compiling instead of the construction of programming environment; and operations such as copy and paste prevention, control on the programming time and the like are added, thus the method provided by the invention is more suitable for on-line practice of programming.

Description

A kind of method that realizes programming based on browser
Technical field
The present invention relates to the to programme Web-based instruction field of class particularly relates to a kind of method that realizes programming based on browser.
Background technology
Along with the popularization of the Web-based instruction, the online real training of programming class obtains more and more people's concern.Traditional programming all is based on client software, as eclipse, zend studio etc., though these instruments are powerful, is in the client operation, is difficult to use in the network programming real training, makes the online real training of programming class be subjected to certain restriction.
Traditional programming real training needs the student in client the complicated running environment of configuration to be installed, and as the jsp programming, needs the student that configuration JDK, tomcat and eclipse are installed.For the beginner, this will be a difficult task.The more important thing is that the student there is no need to spend too many energy in the installation and configuration of these running environment in the starting program stage.The online programming real training of carrying out based on the client programming tool in addition, real training side is difficult to student's actual state is monitored.Based on this, a kind of conveniently programmed method in network real training circle under the pressure of the eyebrows and eyelashes.This also is the basic reason that is not widely used so far of online real training of programming class.
Summary of the invention
Goal of the invention: the objective of the invention is to overcome the shortcoming of prior art, a kind of method that can realize programming based on browser is provided.
Technical scheme: of the present inventionly realize the method for programming, comprise that code compiling, code based on browser preserved and the returning of operation result, specifically comprise the steps: based on browser
(1) open any browser, enter given network address after, enter the code compiling page, this moment browser page automatically from server end loading code editing machine and initial code file;
(2) user carries out code compiling on request;
(3) select the code of writing is carried out following operation:
(31) preserve: when needs are preserved the code of writing, can send hold-over command by shortcut or action button, after code editor receives and preserves code commands, code content in the code editor is extracted, enclose active user's numbering and code file numbering, transfer back to server end; Server end after receiving code content, calculate according to the Customs Assigned Number of sending back and code file numbering this user this code file deposit the path, the code content of sending back is stored into deposit in the pairing file in path then;
(32) operation: after in the code editor of browser, finishing part or entire chapter code compiling, can send the operation code order by shortcut or action button, code editor is after receiving the operation code order, according to current Customs Assigned Number and code file numbering, calculate this user this code file call network address, and send the webpage call request to server end, server is after receiving the webpage call request, the code encoder or the code interpretative device of server end move code, and the operation result of this file is fed back to the user by browser;
(4) user is after seeing the current operation result of writing code, if find that problem is arranged, or code turns back to the code compiling interface need adjust the time, proceeds writing, preserve and moving of code, finishes until code compiling.
Read the code of writing for the ease of the author, in the step (1), the code editor of loading is preferably the code editor that has the highlighted demonstration of key word.
In the step (1), the method that loads the initial code file is: system sends the request of reading the initial program file according to active user's numbering and present procedure numbering to server end, server end calculate according to the Customs Assigned Number sent back and code file numbering this user this code file deposit the path, and read file content, transfer back in the code editor of browser.
The present invention is applicable to the Web-based instruction, in order to prevent student's cheating, the setting of forbidding duplicating stickup is provided in the inventive method, promptly in step (2), in the code compiling process, system is monitored compiling procedure, if listen to when duplicating the stickup behavior, forbids duplicating stickup with the method for reset system Contents of clipboard.
Programming time keeping method also is provided among the present invention, and promptly in step (2), in the code compiling process, system regularly sends the time interval of adding up to server and realizes the record of the time of programming.
Code operation for convenience, in the step (31), server end stores the code content of sending back under the respective directories of code encoder or code interpretative device into.As: the html code file can leave under the DocumentRoot catalogue of apache, the jsp code file can be saved in the webapps catalogue of tomcat or the virtual directory of joining in addition under.The operation of the code of back can allow the code of submitting to be compiled or explain like this, to such an extent as to can be carried out smoothly by corresponding compiler or interpreter.
Beneficial effect: the present invention compared with prior art, its beneficial effect is: 1, the present invention is not by the client programming tool, the method that realization is programmed based on browser, saved the installation configuration of numerous and diverse client programmed environment, can allow the beginner of programming that main energy is placed on the code compiling, and not go to comprehend building of programmed environment.2, be provided with anti-duplicating in the inventive method and paste and to the control of programming time etc., can real training be monitored in real time, more be applicable to the online real training of programming class.
Description of drawings
Fig. 1 the present invention is based on the process flow diagram that browser is realized the method for programming.
Embodiment
Below in conjunction with accompanying drawing, technical solution of the present invention is elaborated, but protection scope of the present invention is not limited to described embodiment.
Method based on browser realization programming of the present invention as shown in Figure 1, comprises the steps:
(1) open any browser, enter given network address after, enter the code compiling page, this moment, browser page had the code editor and the initial code file of the highlighted demonstration of key word automatically from the server end loaded ribbon; The method that loads the initial code file is: system sends the request of reading the initial program file according to active user's numbering and present procedure numbering to server end, server end calculate according to the Customs Assigned Number sent back and code file numbering this user this code file deposit the path, and read file content, transfer back in the code editor of browser;
(2) user carries out code compiling on request; In the code compiling process, provide the setting that does not allow to duplicate stickup, system is monitored compiling procedure, if listen to when duplicating the stickup behavior, forbids duplicating stickup with the method for reset system Contents of clipboard; To write down the used time of programming in the code compiling process, system regularly sends the time interval of adding up to server and realizes the record of the time of programming;
(3) select the code of writing is carried out following operation:
(31) preserve: when needs are preserved the code of writing, can send hold-over command by shortcut or action button, after code editor receives and preserves code commands, code content in the code editor is extracted, enclose active user's numbering and code file numbering, transfer back to server end; Server end after receiving code content, calculate according to the Customs Assigned Number of sending back and code file numbering this user this code file deposit the path, the code content of sending back is stored into deposit in the pairing file in path then; Like this, the code write of user just stores in the code editor by browser in the file on the server; Code operation for convenience, server end stores the code content of sending back under the respective directories of code encoder or code interpretative device into.As: the html code file can leave under the DocumentRoot catalogue of apache, the jsp code file can be saved in the webapps catalogue of tomcat or the virtual directory of joining in addition under.The operation of the code of back can allow the code of submitting to be compiled or explain like this, to such an extent as to can be carried out smoothly by corresponding compiler or interpreter;
(32) operation: after in the code editor of browser, finishing part or entire chapter code compiling, can send the operation code order by shortcut or action button, code editor is after receiving the operation code order, according to current Customs Assigned Number and code file numbering, calculate this user this code file call network address, and send the webpage call request to server end, server is after receiving the webpage call request, the code encoder or the code interpretative device of server end move code, and the operation result of this file is fed back to the user by browser;
(4) user is after seeing the current operation result of writing code, if find that problem is arranged, or code turns back to the code compiling interface need adjust the time, proceeds writing, preserve and moving of code, finishes until code compiling.
As mentioned above, although represented and explained the present invention that with reference to specific preferred embodiment it shall not be construed as the restriction to the present invention self.Under the spirit and scope of the present invention prerequisite that does not break away from the claims definition, can make various variations in the form and details to it.

Claims (6)

1. a method that realizes programming based on browser is characterized in that, comprises the steps:
(1) open any browser, enter given network address after, browser page is automatically from server end loading code editing machine and initial code file;
(2) user carries out code compiling on request;
(3) select the code of writing is carried out following operation:
(31) preserve: code editor after receiving and preserving code commands extracts the code content in the code editor, encloses active user's numbering and code file numbering, transfers back to server end; Server end after receiving code content, calculate according to the Customs Assigned Number of sending back and code file numbering this user this code file deposit the path, the code content of sending back is stored into deposit in the pairing file in path then;
(32) operation: after finishing part or entire chapter code compiling, can send the operation code order, code editor is after receiving the operation code order, according to current Customs Assigned Number and code file numbering, calculate this user this code file call network address, and send the webpage call request to server end, server is after receiving the webpage call request, the code encoder or the code interpretative device of server end move code, and the operation result of this file is fed back to the user by browser;
(4) user is after seeing the current operation result of writing code, if find that problem is arranged, or code turns back to the code compiling interface need adjust the time, proceeds writing, preserve and moving of code, finishes until code compiling.
2. the method based on browser realization programming according to claim 1 is characterized in that in the step (1), the code editor of loading is the code editor that has the highlighted demonstration of key word.
3. the method that realizes programming based on browser according to claim 1, it is characterized in that, in the step (1), the method that loads the initial code file is: system sends the request of reading the initial program file according to active user's numbering and present procedure numbering to server end, server end calculate according to the Customs Assigned Number sent back and code file numbering this user this code file deposit the path, and read file content, transfer back in the code editor of browser.
4. the method based on browser realization programming according to claim 1 is characterized in that, in the step (2), in the code compiling process, system is monitored compiling procedure, if listen to when duplicating the stickup behavior, forbids duplicating stickup with the method for reset system Contents of clipboard.
5. according to claim 1ly realize it is characterized in that the method for programming that in the step (2), in the code compiling process, system regularly sends the time interval of adding up to server and realizes the record of the time of programming based on browser.
6. the method based on browser realization programming according to claim 1 is characterized in that in the step (31), server end stores the code content of sending back under the respective directories of code encoder or code interpretative device into.
CN2011102087148A 2011-07-25 2011-07-25 Programming realization method based on browser Pending CN102231111A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2011102087148A CN102231111A (en) 2011-07-25 2011-07-25 Programming realization method based on browser

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2011102087148A CN102231111A (en) 2011-07-25 2011-07-25 Programming realization method based on browser

Publications (1)

Publication Number Publication Date
CN102231111A true CN102231111A (en) 2011-11-02

Family

ID=44843678

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2011102087148A Pending CN102231111A (en) 2011-07-25 2011-07-25 Programming realization method based on browser

Country Status (1)

Country Link
CN (1) CN102231111A (en)

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103150694A (en) * 2013-02-05 2013-06-12 北京优才创智科技有限公司 Processing method and device for remote teaching data
CN103777929A (en) * 2012-10-18 2014-05-07 中国移动通信集团公司 Simulative development system for program development and achieving method thereof
CN105045570A (en) * 2015-05-22 2015-11-11 国云科技股份有限公司 Method for configuring multiple jdk versions for multiple tomcat applications in Linux environment
CN105095085A (en) * 2015-08-25 2015-11-25 暨南大学 WEB-based software testing training system and method
CN105139703A (en) * 2015-09-24 2015-12-09 杭州华恩教育科技有限公司 Cloud teaching system
CN105160954A (en) * 2015-09-28 2015-12-16 广东顺德中山大学卡内基梅隆大学国际联合研究院 Cloud computing experimental teaching system and construction method thereof
CN106651697A (en) * 2016-11-17 2017-05-10 深圳信息职业技术学院 Online programming system implementation method and device
CN106933643A (en) * 2015-12-30 2017-07-07 迈普通信技术股份有限公司 A kind of code compiling method, equipment and system
CN107402770A (en) * 2017-08-10 2017-11-28 杨晓 A kind of new intelligent control programmed method
CN107562422A (en) * 2016-06-30 2018-01-09 西门子瑞士有限公司 The programmed method of controller man-machine interface and the server that this programming tool is provided
CN109683898A (en) * 2017-09-01 2019-04-26 北京猿圈科技有限责任公司 A kind of Compilation Method and cloud compiling system based on cloud compiling
CN109729418A (en) * 2019-01-30 2019-05-07 慧科教育科技集团有限公司 A kind of teaching programming interactive video recording and broadcasting system and method
CN111273899A (en) * 2020-01-17 2020-06-12 北京达佳互联信息技术有限公司 Code processing method and device, electronic equipment and storage medium
CN113157263A (en) * 2021-04-27 2021-07-23 腾讯科技(深圳)有限公司 Code editing method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101615177A (en) * 2009-07-21 2009-12-30 深圳市科陆电子科技股份有限公司 At structural self-defined report implementation method of server/browser and device
CN101739277A (en) * 2009-12-08 2010-06-16 南京联创科技集团股份有限公司 Self-defined script mode-based method for managing service monitoring system
CN102023856A (en) * 2010-10-21 2011-04-20 杭州万格网络科技有限公司 Method for outputting and operating data at server in formatting way according to demands of user
CN102129504A (en) * 2010-01-12 2011-07-20 深圳市世纪凯旋科技有限公司 Method and system for realizing network game

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101615177A (en) * 2009-07-21 2009-12-30 深圳市科陆电子科技股份有限公司 At structural self-defined report implementation method of server/browser and device
CN101739277A (en) * 2009-12-08 2010-06-16 南京联创科技集团股份有限公司 Self-defined script mode-based method for managing service monitoring system
CN102129504A (en) * 2010-01-12 2011-07-20 深圳市世纪凯旋科技有限公司 Method and system for realizing network game
CN102023856A (en) * 2010-10-21 2011-04-20 杭州万格网络科技有限公司 Method for outputting and operating data at server in formatting way according to demands of user

Cited By (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103777929A (en) * 2012-10-18 2014-05-07 中国移动通信集团公司 Simulative development system for program development and achieving method thereof
CN103150694A (en) * 2013-02-05 2013-06-12 北京优才创智科技有限公司 Processing method and device for remote teaching data
CN103150694B (en) * 2013-02-05 2016-08-03 北京优才创智科技有限公司 A kind for the treatment of method and apparatus of remote teaching data
CN105045570A (en) * 2015-05-22 2015-11-11 国云科技股份有限公司 Method for configuring multiple jdk versions for multiple tomcat applications in Linux environment
CN105095085A (en) * 2015-08-25 2015-11-25 暨南大学 WEB-based software testing training system and method
CN105095085B (en) * 2015-08-25 2018-01-19 暨南大学 A kind of software test experience system and method based on WEB
CN105139703A (en) * 2015-09-24 2015-12-09 杭州华恩教育科技有限公司 Cloud teaching system
CN105160954A (en) * 2015-09-28 2015-12-16 广东顺德中山大学卡内基梅隆大学国际联合研究院 Cloud computing experimental teaching system and construction method thereof
CN106933643A (en) * 2015-12-30 2017-07-07 迈普通信技术股份有限公司 A kind of code compiling method, equipment and system
CN107562422A (en) * 2016-06-30 2018-01-09 西门子瑞士有限公司 The programmed method of controller man-machine interface and the server that this programming tool is provided
CN107562422B (en) * 2016-06-30 2021-05-25 西门子瑞士有限公司 Programming method of controller human-machine interface and server for providing the programming tool
CN106651697A (en) * 2016-11-17 2017-05-10 深圳信息职业技术学院 Online programming system implementation method and device
CN107402770A (en) * 2017-08-10 2017-11-28 杨晓 A kind of new intelligent control programmed method
CN109683898A (en) * 2017-09-01 2019-04-26 北京猿圈科技有限责任公司 A kind of Compilation Method and cloud compiling system based on cloud compiling
CN109729418A (en) * 2019-01-30 2019-05-07 慧科教育科技集团有限公司 A kind of teaching programming interactive video recording and broadcasting system and method
CN111273899A (en) * 2020-01-17 2020-06-12 北京达佳互联信息技术有限公司 Code processing method and device, electronic equipment and storage medium
CN111273899B (en) * 2020-01-17 2024-04-30 北京达佳互联信息技术有限公司 Code processing method, device, electronic equipment and storage medium
CN113157263A (en) * 2021-04-27 2021-07-23 腾讯科技(深圳)有限公司 Code editing method and device

Similar Documents

Publication Publication Date Title
CN102231111A (en) Programming realization method based on browser
AU2017225159B2 (en) Transferring a state of an application from a first computing device to a second computing device
US8924943B2 (en) Browser emulator system
US11183188B2 (en) Voice assistant-enabled web application or web page
JP2009508220A5 (en)
RU2015131115A (en) AUXILIARY PROGRAMMING SYSTEM OF THE PROGRAMMABLE CONTROLLER AND THE RELATED METHOD
CN103176775B (en) A kind of method and apparatus realizing Web page application program localization
CN102520952A (en) Automatic construction and issuing method of software code version
CN102667730A (en) Design time debugging
CN107784120A (en) The method and device of issue operation active web pages
CN103608802A (en) Selection mapping between fetched files and source files
HK1141343A1 (en) Methods and systems for internet security via virtual software
Vishal et al. Mobile application development research based on xamarin platform
CN100430946C (en) Work-embedded e-learning method and system
CN104866335B (en) A kind of method and device of mobile terminal based on Egret Runtime running games
CN102819486A (en) Automatic networking product testing system and automatic networking product testing method
CN104636050B (en) Allow the method and system of nested object drag and drop
WO2018176813A1 (en) Personalized page generation method and device
CN106919483A (en) A kind of method and system of real-time display dd testing progress
CN109144524A (en) The version dissemination method and electronic equipment of subject game on a kind of teaching platform
CN105739957B (en) user interface data processing method and system
SG179426A1 (en) Human transparency paradigm
CN103677951A (en) Method and system for controlling executing process of JavaScript
CN106371822A (en) Universal cloud platform internationalization method and device
CN104156445A (en) Method and system for acquiring page elements in automated testing script editing

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20111102