CN101847147A - System for integrating individually-edited scripts and styles into webpage and method thereof - Google Patents

System for integrating individually-edited scripts and styles into webpage and method thereof Download PDF

Info

Publication number
CN101847147A
CN101847147A CN200910119729A CN200910119729A CN101847147A CN 101847147 A CN101847147 A CN 101847147A CN 200910119729 A CN200910119729 A CN 200910119729A CN 200910119729 A CN200910119729 A CN 200910119729A CN 101847147 A CN101847147 A CN 101847147A
Authority
CN
China
Prior art keywords
webpage
pattern
script
file
grammer
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
CN200910119729A
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.)
Inventec Corp
Original Assignee
Inventec Corp
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 Inventec Corp filed Critical Inventec Corp
Priority to CN200910119729A priority Critical patent/CN101847147A/en
Publication of CN101847147A publication Critical patent/CN101847147A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The invention relates to a system for integrating individually-edited scripts and styles into a webpage and a method thereof. According to the system, after names of scripts and styles included in a webpage are analyzed, scripts-calling functions are written into a function file, style grammar used in the webpage is written into a style file, and webpage grammar for loading the function file and the style file is written into the webpage, thereby reducing the complexity of source codes of the webpage and achieving the technical effect of enhancing webpage development efficiency.

Description

Individually-edited script and pattern are integrated into the system and the method thereof of webpage
Technical field
The present invention relates to the system and the method thereof of a kind of integration script (script), pattern and webpage, be meant a kind of system and method thereof that individually-edited script and pattern is integrated into webpage especially.
Background technology
When the exploitation webpage, often all needing to rely on many personnel with professional knowledge and technology uses specific application software to carry out the editor of webpage on computers, after webpage is finished editor, webpage is uploaded to the server that website service is provided by the developer again.
Early stage webpage mainly is by HTML (Hypertext Markup Language) (HyperText Markup Language, HTML) grammer and script are formed, the developer of webpage is the programmer mostly, but recently since pattern in webpage by a large amount of uses, therefore the developer of webpage has also increased and the complete visual designer inequality of programmer's professional domain except the programmer.Therefore, after at present the flow process of webpage development is normally made the webpage that has added the pattern grammer by visual designer, transfer to the programmer and write in execution script on the browser and the program on server, carried out.
But, because in the process of webpage development, picture that webpage presented and the constantly adjustment of function that operation is provided, in addition, the source code of webpage is not by same editor individual, but develop jointly by visual designer and programmer, therefore, when visual designer and programmer carry out again and again editor to the source code of webpage after, the source code of webpage can be more and more mixed and disorderly, under these circumstances, in case the picture that webpage will present or the complexity of program code improve, it is more and more longer that the source code of webpage can become, and so, visual designer and programmer will be difficult for seeking pattern grammer or the script that needs are revised.
In sum, prior art has existed since the midium or long term always and is difficult for seeking the specific script and the problem of pattern grammer in the source code of webpage as can be known, therefore is necessary to propose improved technological means, solves this problem.
Summary of the invention
Be difficult for seeking the specific script and the problem of pattern grammer because prior art exists in the source code of webpage, the present invention provides a kind of then individually-edited script and pattern is integrated into the system and the method thereof of webpage, wherein:
Provided by the present invention individually-edited script and pattern are integrated into the system of webpage, it includes: script letter formula storehouse, in order to store a plurality of letter formulas; The pattern syntax library is in order to store a plurality of pattern grammers; Load module, in order to the input webpage, webpage comprises script or pattern title at least; The web page analysis module is in order to by analyzing script and pattern title in the webpage; Letter formula file is set up module, is used to the web page analysis module by after analyzing script in the webpage, reads the required letter formula of execution script to script letter formula storehouse, and the letter formula is write in the letter formula file; The pattern file is set up module, is used to the web page analysis module by after analyzing the pattern title in the webpage, reads the pattern grammer of corresponding pattern title to the pattern syntax library, and the pattern grammer is write in the pattern file; Integrate module is used to write in the webpage first webpage grammer of loading letter formula file and the second webpage grammer of style of loading file; Output module, the webpage that comprises the first webpage grammer or the second webpage grammer in order to output, after it goes out scripts in web pages and pattern title through the web page analysis module analysis, letter formula file is set up module and can be read the letter formula to the script letter formula storehouse and write in the letter formula file, the pattern file is set up module and can be read the pattern grammer to the pattern syntax library and write in the pattern file, and in webpage, write the webpage grammer that loads letter formula file and pattern file by integrate module, so as to solving the existing in prior technology problem by the technology of separating script and pattern grammer.
Provided by the present invention individually-edited script and pattern are integrated into the method for webpage, it includes the following step: store a plurality of letter formulas and a plurality of pattern grammer; Input comprises the webpage of script or pattern title; Analyzing web page; When webpage comprises script, read the required letter formula of script of carrying out, and in write the letter formula to the letter formula file after, in webpage, write the first webpage grammer that is written into letter formula file; When webpage comprises the pattern title, read the pattern grammer of corresponding pattern title, and in write the pattern grammer to the pattern file after, in webpage, write the second webpage grammer of style of loading file; Output comprises the webpage of the first webpage grammer or the second webpage grammer, after it sees through and analyzes scripts in web pages and pattern title, read the letter formula that script calls out and write in the letter formula file, read the employed pattern grammer of webpage and write in the pattern file, and in webpage, write the webpage grammer that loads letter formula file and pattern file, so as to solving the existing in prior technology problem by the mode of separating script and pattern grammer.
System and method for provided by the present invention as above, difference between itself and the prior art is that the present invention can analyze webpage, after analyzing the script and pattern title that webpage comprises, read letter formula that script calls out and the letter formula is write in the letter formula file, and read the employed pattern grammer of webpage and the pattern grammer is write in the pattern file, and in webpage, write the webpage grammer that loads letter formula file and pattern file, so as to lower the complexity of the source code of webpage by separation script and pattern grammer.See through above-mentioned technological means, the present invention can reach the technology effect that increases webpage development efficient.
Description of drawings
Fig. 1 is the system architecture diagram that individually-edited script and pattern is integrated into webpage that the present invention carries.
Fig. 2 is the method flow diagram that individually-edited script and pattern is integrated into webpage that the present invention carries.
Fig. 3 is the source code of the webpage before the integration carried of the embodiment of the invention.
Fig. 4 A is the letter formula complete list synoptic diagram that the embodiment of the invention is carried.
Fig. 4 B is the pattern complete list synoptic diagram that the embodiment of the invention is carried.
Fig. 5 A is the letter formula file of the letter formula that writes carried of the embodiment of the invention.
Fig. 5 B is the pattern file that writes the pattern grammer that the embodiment of the invention is carried.
Fig. 6 is the source code of the webpage after the integration carried of the embodiment of the invention.
Fig. 7 is that another webpage that the embodiment of the invention is carried is integrated preceding source code.
[main element symbol description]
111 script letter formula storehouses
112 pattern syntax libraries
120 load modules
130 web page analysis modules
151 letter formula files are set up module
152 pattern files are set up module
160 integrate modules
170 output modules
180 web page editing modules
191 script administration modules
192 pattern administration modules
The 300a webpage
The 300b webpage
The 300c webpage
310 scripts
320 pattern titles
331 first webpage grammers
332 second webpage grammers
341 the 3rd webpage grammers
342 the 4th webpage grammers
410 letter formula complete lists
420 pattern complete lists
500 letter formula files
600 pattern files
Embodiment
Below describe conjunction with figs. and embodiment in detail detailed features of the present invention and embodiment, content is enough to make any those skilled in the art to understand the applied technological means of technical solution problem of the present invention easily and implements according to this, and understands and realize the attainable effect of the present invention.
The present invention is executed in the webpage development environment, and the webpage development environment that provides the present invention to carry out can be for being executed in the web page editing software in the computing machine, and the user can see through web page editing software and use the present invention to carry out the exploitation of web page program; The webpage development environment that provides the present invention to carry out also can be executed on the server, after the user connects to server through client, see through user's interface that server provided and upload and edit the webpage of finishing, by the present invention to being integrated by HTML grammer, script and pattern grammer in the webpage of uploading.
Following elder generation illustrates System Operation of the present invention with the system architecture diagram that individually-edited script and pattern is integrated into webpage that Fig. 1 the present invention is carried.As shown in Figure 1, system of the present invention contains that module 151 is set up in script letter formula storehouse 111, pattern syntax library 112, load module 120, web page analysis module 130, letter formula file, the pattern file is set up module 152, integrate module 160 and output module 170.
Script letter formula storehouse 111 is responsible for storing a plurality of letter formulas, and script letter formula storehouse 111 stored letter formulas are the form of program code (source code), comprises required parameter of letter formula title, calling (call) and function body etc.
Pattern syntax library 112 is responsible for storing a plurality of pattern grammers, and pattern syntax library 112 stored pattern grammers comprise pattern selector switch (selector) and the definition of at least one pattern.
Load module 120 is responsible for input webpage 300a, and the webpage 300a that is transfused to module 120 inputs also comprises more than one script, more than one pattern title or more than one script and more than one pattern title usually except comprising the HTML grammer.Generally speaking, webpage 300a sees through load module 120 by the user to input in the native system, but the present invention is not as limit.
Web page analysis module 130 is responsible for the source code of the webpage 300a that is transfused to module 120 inputs is analyzed (parser), so as to analyzing each element (element) and the script that webpage 300a is comprised, and hunt out the pattern title in " class " attribute by element.
Web page analysis module 130 is more responsible after the webpage 300a that is transfused to module 120 inputs is analyzed, hunt out outside the binding in the specific syntax by the particular community of analyzing the back element that is obtained or script, and according to outside the binding reviewing (trace) webpage 300a when viewed, the browser of display web page 300a links the external file that is loaded according to the outside of writing down among the webpage 300a, and the external file of obtaining after analyzing carried out the analysis identical with webpage 300a, so as to obtaining webpage 300a performed script and employed pattern title when viewed.
Letter formula file is set up module 151 and is responsible in web page analysis module 130 by being transfused to when analyzing the script that webpage 300a comprised among the webpage 300a that module 120 imported, judge whether script that webpage 300a comprises can call out the stored letter formula in script letter formula storehouse 111, if, then letter formula file is set up module 151 and can set up blank letter formula file in particular category, and after to script letter formula storehouse 111, reading the program code of carrying out the required letter formula of script that webpage 300a comprises, the program code of the letter formula that is read out is write in its letter formula file of setting up, and needed letter formula adds in the letter formula file during so as to script executing that webpage 300a is comprised.Wherein, letter formula file is set up the normally stored catalogue of webpage 300a or deposit the catalogue of letter formula file specially of particular category that module 151 sets up letter formula file, and as "/script " etc., but the present invention is not as limit.
Generally speaking, letter formula file is set up module 151 can set up different letter formula files for each webpage, but the present invention is not as limit, that is to say, letter formula file is set up module 151 can set up a letter formula file to each letter formula, also can set up different letter formula files according to the correlativity of each letter formula, even also the letter formula of each webpage in the same catalogue all can be write in the same letter formula file, but alternate manner is not different technically, there is not simultaneously special benefit yet, therefore when making letter formula file and setting up module 151, still think that it is main that each webpage is set up different letter formula files real.
The pattern file is set up module 152 and is responsible for after web page analysis module 130 analyzes the pattern title that webpage 300a comprised, judge that pattern title that web page analysis module 130 analyzes is whether identical with the pattern selector switch that one of them pattern grammer that pattern syntax library 112 stores is comprised, if, then the pattern file is set up module 152 can be set up earlier a blank in particular category pattern file, and after reading the identical pattern grammer of pattern title that pattern selector switch and webpage 300a comprise again to the pattern syntax library 112, the pattern grammer (pattern selector switch and pattern definition) that reads out is write in its pattern file of setting up.Wherein, the pattern file is set up the normally existing catalogue of webpage 300a or deposit the catalogue of pattern file specially of particular category that module 152 sets up the pattern file, and as "/css " etc., but the present invention is not as limit.
To set up module 151 similar to letter formula file, the pattern file is set up module 152 can set up different pattern files for each webpage, but the present invention is not as limit, and the pattern file is set up module 152 and also the pattern grammer of all webpages in the whole website all may be write in the same pattern file.
Integrate module 160 is responsible for after letter formula file is set up module 151 letter formula (program code) is write letter formula file, under the condition that meets the HTML grammer, optional position in webpage 300a writes the first webpage grammer that loads letter formula file, and be responsible for after the pattern file is set up module 152 the pattern grammer is write the pattern file, under the condition that meets the HTML grammer, in webpage 300a, write the second webpage grammer of style of loading file, generally speaking, the first webpage grammer can write among the webpage 300a between " HEAD " element and " BODY " element, and the second webpage grammer can write among " HEAD " element, but the first webpage grammer that the present invention carried and the second webpage grammer write the position of webpage 300a not as limit.So, to write the new web page that is produced behind the first webpage grammer and/or the second webpage grammer in webpage 300a be webpage 300b to integrate module 160.
Output module 170 is responsible for output and is write the webpage 300b that the first webpage grammer and/or the second webpage grammer are produced to the webpage 300a by integrate module 160.Output module 170 can be exported webpage 300b in the mode that saves as file, also can directly export in the mode of display web page 300b, but the present invention is not as limit.
In addition, the present invention more can comprise web page editing module 180, script administration module 191 and pattern administration module 192.
Web page editing module 180 is responsible for editor's webpage 300a, and load module 120 is responsible for the webpage 300a behind web page editing module 180 editors is inputed among the present invention.Generally speaking, web page editing module 180 can provide user's interface, directly webpage 300a is edited in the present invention so as to the user is provided.
Script administration module 191 is responsible for after webpage 300a is analyzed by web page analysis module 130, the letter formula of ordering certainly that user among the webpage 300a writes voluntarily is newly-increased to script letter formula storehouse 111, just the program code of ordering the letter formula certainly among the webpage 300a is write script letter formula storehouse 111, so as to expanding the letter formula in the script letter formula storehouse 111.In addition, script administration module 191 also is responsible for providing the user that script letter formula storehouse 111 stored letter formulas such as are increased, modified or deleted at operation.
Pattern administration module 192 is responsible for after webpage 300a is analyzed by web page analysis module 130, with user among the webpage 300a write voluntarily to order pattern certainly newly-increased to pattern syntax library 112, just in pattern syntax library 112, write pattern selector switch and the pattern definition ordering pattern certainly and comprised among the webpage 300a.In addition, pattern administration module 192 also is responsible for providing the user that pattern grammer stored in the pattern syntax library 112 such as is increased, modified or deleted at operation.
Then explain orally operation system of the present invention and method with an embodiment, and the method flow diagram that individually-edited script and pattern is integrated into webpage that please refer to that Fig. 2 the present invention carried.Suppose that the present invention is executed in the webpage development software of computing machine (not shown), but the present invention is not as limit.
The user install carry out have webpage development software of the present invention to the computing machine after, the pattern syntax library 112 that comprises the script letter formula storehouse 111 of a plurality of letter formulas and comprise a plurality of pattern grammers also can be stored into (step 210) on the computing machine.In the present embodiment, suppose that having stored letter formula name in the script letter formula storehouse 111 is called " isChecked ", " isNotNull " and letter formulas such as " isNotSelect ", supposed to store in the pattern syntax library 112 the pattern grammer of pattern selector switch simultaneously for " .bg_color ", " .title " and " P " etc.
In fact, script letter formula storehouse 111 stored letter formulas have just been set up after installing the user, the user also can be before using load module 120 input webpage 300a, see through user's interface that script administration module 191 is provided, in the webpage development software of present embodiment, write new letter formula, after the new letter formula that script administration module 191 can be write the user (program code) is stored in the script letter formula storehouse 111, when just can providing the subsequent development webpage, the new letter formula that the user writes uses, even, the user also can see through script administration module 191, revises in the webpage development software of present embodiment or letter formula that deletion script letter formula storehouse 111 is stored (program code).Same, pattern administration module 192 also can provide the user newly-increased from the new pattern grammer of ordering, and provides the user to revise or delete the pattern grammer that is stored in the pattern syntax library 112.
When the use of user's desire is of the present invention, the user can operation web page develops software to open and has before edited the webpage 300a that finishes, so, load module 120 is just finished the input (step 220) of webpage 300a after reading webpage 300a by the Storage Media (not shown) of computing machine.But the webpage 300a that load module 120 is imported must edit to finish in advance, for example, the present invention also can allow the user earlier at webpage development software inediting webpage 300a (step 280) by web page editing module 180, finish the editor of webpage 300a as the user after, load module 120 can be with webpage 300a input (step 220).
Behind load module 120 input webpage 300a (step 220), web page analysis module 130 can be analyzed (step 230) to the source code of webpage 300a, so as to obtaining element and the script that is comprised among the webpage 300a, and further by hunting out the pattern title in the element.If webpage 300a as shown in Figure 3, then after web page analysis module 130 was analyzed, web page analysis module 130 analyzed " bg_color " and " title " two the pattern titles 320 that are contained in " class " attribute of element " td " that webpage 300a comprises one section script 310 and is contained in " class " attribute of element " table " to I haven't seen you for ages.Wherein, the script 310 of webpage 300a comprises the grammer that calling letter formula name is called the letter formula of " isNotNull " and " isNotSelect ".
After 130 couples of webpage 300a of web page analysis module analyzed (step 230), letter formula file is set up module 151 can judge whether comprise script (step 251) among the webpage 300a according to the analysis result of web page analysis module 130.Because web page analysis module 130 analyzes webpage 300a and comprises script 310, then letter formula file is set up module 151 can be set up a blank in the catalogue of depositing script specially letter formula file " uw.js ", afterwards, letter formula file is set up module 151 can read the letter formula that the script 310 among the webpage 300a can be called out to script letter formula storehouse 111, and the letter formula of reading is write in the letter formula file " uw.js " (step 252).
Letter formula file is set up module 151 and can be used the letter formula complete list 410 shown in Fig. 4 A to write down stored letter formula in the script letter formula storehouse 111, but the present invention is not as limit, letter formula file is set up the letter formula title that module 151 also can be directly searched the stored letter formula in script letter formula storehouse 111 to the script letter formula storehouse 111, so as to learning in the script letter formula storehouse 111 to have stored which letter formula.Wherein, letter formula file is set up module 151 employed letter formula complete lists 410 and is set up when webpage development software is mounted, content in this moment letter formula complete list 410 is the letter formula title of the letter formula that write down in the script letter formula storehouse 111, afterwards, in the time of can increasing newly and delete along with the letter formula in 191 pairs of script letters of script administration module formula storehouse 111, in letter formula complete list 410, increase the letter formula title of the letter formula that increases newly or delete with the deletion quilt newly by script administration module 191.
Because the script 310 that web page analysis module 130 analyzes among the webpage 300a can be called out the letter formula that letter formula name is called " isNotNull " and " isNotSelect ", therefore, letter formula file is set up module 151 just can read the program code that letter formula name is called the letter formula of " isNotNull " and " isNotSelect " to script letter formula storehouse 111, and the program code of reading write in the letter formula file " uw.js ", letter formula file is set up the letter formula file " uw.js " 500 of module 151 after writing the program code of reading shown in Fig. 5 A.
After 130 couples of webpage 300a of web page analysis module analyzed (step 230), the pattern file is set up module 152 can judge whether comprise pattern title (step 261) among the webpage 300a according to the analysis result of web page analysis module 130 equally.Because web page analysis module 130 analyzes webpage 300a and comprises " .bg_color " and " .title " two pattern titles 320, then the pattern file is set up module 152 can be set up a blank in the catalogue of depositing pattern specially pattern file " style_uw_sys.css ", afterwards, the module 152 of setting up the pattern file can read the identical pattern grammer of pattern title 320 among pattern selector switch and the webpage 300a to the pattern syntax library 112, just read the pattern grammer of pattern selector switch, and the pattern grammer of reading is write among pattern file " style_uw_sys.css " 600 (step 262) for " .bg_color " and " .title ".The pattern file set up module 152 write the pattern selector switch for the pattern file " style_uw_sys.css " 600 behind the pattern grammer of " .bg_color " and " .title " shown in Fig. 5 B.
To set up module 151 similar to letter formula file, the pattern file is set up module 152 and can be used pattern complete list 420 shown in Fig. 4 B to write down the pattern selector switch of pattern grammer stored in the pattern syntax library 112, also can directly search the pattern selector switch of pattern grammer stored in the pattern syntax library 112, so as to the pattern selector switch of the stored pattern grammer in script letter formula storehouse 111 whether identical with pattern title among the webpage 300a, but the present invention is not exceeded with these two kinds of methods.Wherein, the pattern file is set up module 152 employed pattern complete lists 420 and is set up when webpage development software is mounted, content in this moment pattern complete list 420 is the pattern selector switch of the pattern grammer that write down in the pattern syntax library 112, afterwards, in the time of can increasing newly and delete along with the pattern grammer in 192 pairs of pattern syntax libraries 112 of pattern administration module, in pattern complete list 420, increase the pattern selector switch of the pattern grammer that increases newly or delete with the deletion quilt newly by pattern administration module 192.
In fact, letter formula file is set up module 151 and pattern file and is set up the relation that order that module 152 carries out does not have precedence, that is to say, set up module 151 except letter formula file and earlier the letter formula is write letter formula file " uw.js " 500, setting up module 152 by the pattern file again writes the pattern grammer outside the pattern file " style_uw_sys.css " 600, after the present invention also can carry out the pattern file earlier and sets up module 152, carry out letter formula file again and set up module 151.
Set up that module 151 is read letter formula that script 310 can call out and the letter formula of reading write among letter formula file " uw.js " 500 after (step 252) at letter formula file, integrate module 160 can be as shown in Figure 6, and the first webpage grammer 331 that will be written into letter formula file " uw.js " 500 writes among the webpage 300a (step 256).Same, after the pattern file was set up module 152 and read the pattern selector switch pattern grammer identical with pattern title among the webpage 300a and write pattern file " style_uw_sys.css " 600 (steps 262), integrate module 160 can write the second webpage grammer 332 of style of loading file " style_uw_sys.css " 600 among the webpage 300a (step 266).After the source code of webpage 300a is integrated module 160 and writes the first webpage grammer 331 and the second webpage grammer 332, become new webpage 300b.
At last, output module 170 can be exported the new webpage 300b that comprises the first webpage grammer 331 and the second webpage grammer 332.Suppose in the present embodiment, output module 170 is exported webpage 300b in the mode that webpage 300b is saved as file, then output module 170 content that is stored to the file on the computing machine is the source code of webpage 300b, so, letter formula among the webpage 300b and pattern grammer just can be stored into respectively in letter formula file and the pattern file by the present invention, lower the complexity of the source code of webpage 300b.
In sum, after difference between the present invention and the prior art is to analyze script 310 that webpage 300a comprised and pattern title 320 as can be known, the letter formula that script 310 is called out writes in the letter formula file 500, and the employed pattern title of the webpage 300a pattern grammer identical with the pattern selector switch that is comprised write in the pattern file 600, in webpage 300a, write the first webpage grammer 331 and the second webpage grammer 332 that load letter formula file 500 and pattern file 600 again, technological means can be separated script 310 and the pattern grammer among the webpage 300a thus, make the complexity of source code of webpage 300a reduce, in the source code of webpage, seek the specific program code and the problem of pattern grammer so as to solving prior art existing being difficult for, and then reach the effect that increases webpage development efficient.
In the above-described embodiments, the webpage 300a that load module 120 is imported also may not comprise script 310, or there is not the letter formula of calling out in the script 310, then after analysis through web page analysis module 130, letter formula file is set up module 151 and can not carried out because do not write down the letter formula title of called letter formula among the webpage 300a, and so integrate module 160 will can not write the first webpage grammer 331 (step 256) that loads letter formula file 500 in webpage 300a.Same, when if the webpage 300a that load module 120 is imported does not comprise pattern title 320, the pattern file is set up module 152 and can not carried out, and integrate module 160 also can not write the second webpage grammer 332 (step 266) of style of loading file 600 in webpage 300a.
In addition, if the webpage 300c that load module 120 is imported as shown in Figure 7, comprise the 3rd webpage grammer 341 and the 4th webpage grammer 342 that are written into external file, then web page analysis module 130 is after analyzing (step 230) to webpage 300c, also can carry out the analysis identical for two external files of " function.js " and " style.css ", so as to obtaining called letter formula and pattern title to file name with webpage 300c.
Moreover, the method that individually-edited script and pattern is integrated into webpage of the present invention, can be implemented in the combination of hardware, software or hardware and software, also can in computer system, realize or intersperse among the dispersing mode of the computer system of several interconnected and realize with different assemblies with centralized system.
Though embodiment disclosed in this invention as above, only described content is not in order to direct qualification scope of patent protection of the present invention.Any the technical staff in the technical field of the invention, do not break away from spirit and scope disclosed in this invention in, implement in form and the change or the retouching of doing on the details, all belong to scope of patent protection of the present invention.Therefore scope of patent protection of the present invention still must with the appended claim of this instructions the person of being defined be as the criterion.

Claims (10)

1. one kind is integrated into the system of webpage with individually-edited script and pattern, and this system comprises:
One script letter formula storehouse is in order to store a plurality of letter formulas;
One pattern syntax library is in order to store a plurality of pattern grammers;
One load module, in order to import a webpage, this webpage comprises a script or a pattern title at least;
The web page analysis module is in order to by analyzing this script and this pattern title in this webpage;
One letter formula file is set up module, is used to this web page analysis module by after analyzing this script in this webpage, reads required at least one this letter formula of this script of execution to this script letter formula storehouse, and this letter formula is write in the letter formula file;
One pattern file is set up module, is used to this web page analysis module by after analyzing this pattern title in this webpage, reads this pattern grammer to should style name claiming to this pattern syntax library, and this pattern grammer is write in the pattern file;
One integrate module is used to write in this webpage first webpage grammer that loads this letter formula file and the one second webpage grammer that loads this pattern file; And
One output module comprises this webpage of this first webpage grammer and/or this second webpage grammer in order to output.
2. as claimed in claim 1 individually-edited script and pattern are integrated into the system of webpage, wherein this web page analysis module is more in order to reviewing an external file loaded in this webpage, and by analyzing this script or this pattern title in this external file.
3. as claimed in claim 1 individually-edited script and pattern are integrated into the system of webpage, wherein this system more comprises a web page editing module, in order to edit this webpage.
4. as claimed in claim 1 individually-edited script and pattern are integrated into the system of webpage, wherein this system more comprises a script administration module, in order to increase, modify or delete those letter formulas in this script letter formula storehouse.
5. as claimed in claim 1 individually-edited script and pattern are integrated into the system of webpage, wherein this system more comprises a pattern administration module, in order to increase, modify or delete those pattern grammers in this pattern syntax library.
6. as claimed in claim 1 individually-edited script and pattern are integrated into the system of webpage, wherein this system more comprises a script administration module, in order to one in this webpage is newly-increased to this script letter formula storehouse from ordering the letter formula.
7. as claimed in claim 1 individually-edited script and pattern are integrated into the system of webpage, wherein this system more comprises a pattern administration module, in order to one in this webpage is newly-increased to this pattern syntax library from ordering pattern.
8. one kind is integrated into the method for webpage with individually-edited script and pattern, and this method comprises the following steps:
Store a plurality of letter formulas and a plurality of pattern grammer;
Input comprises a webpage of a script or a pattern title at least;
Analyze this webpage;
When this webpage comprises this script, read and carry out required at least one this letter formula of this script, and after in writing this letter formula to letter formula file, in this webpage, write the one first webpage grammer that is written into this letter formula file;
When this webpage comprises this pattern title, read this pattern grammer, and after in writing this pattern grammer to pattern file, in this webpage, write the one second webpage grammer that loads this pattern file should style name claiming; And
Output comprises this webpage of this first webpage grammer or this second webpage grammer.
9. the method that individually-edited script and pattern is integrated into webpage as claimed in claim 8, wherein should more comprise and review an external file loaded in this webpage by the step that analyzes this script and this pattern title in this webpage, and by the step of analyzing this script or this pattern title in this external file.
10. as claimed in claim 8 individually-edited script and pattern are integrated into the method for webpage, wherein this method more comprises the step of editing this webpage.
CN200910119729A 2009-03-24 2009-03-24 System for integrating individually-edited scripts and styles into webpage and method thereof Pending CN101847147A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN200910119729A CN101847147A (en) 2009-03-24 2009-03-24 System for integrating individually-edited scripts and styles into webpage and method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN200910119729A CN101847147A (en) 2009-03-24 2009-03-24 System for integrating individually-edited scripts and styles into webpage and method thereof

Publications (1)

Publication Number Publication Date
CN101847147A true CN101847147A (en) 2010-09-29

Family

ID=42771770

Family Applications (1)

Application Number Title Priority Date Filing Date
CN200910119729A Pending CN101847147A (en) 2009-03-24 2009-03-24 System for integrating individually-edited scripts and styles into webpage and method thereof

Country Status (1)

Country Link
CN (1) CN101847147A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2011079733A1 (en) * 2009-12-30 2011-07-07 深圳市同洲电子股份有限公司 Method, device and embedded browser for script processing
CN105159686A (en) * 2015-09-28 2015-12-16 北京奇虎科技有限公司 Website page development method and apparatus

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2011079733A1 (en) * 2009-12-30 2011-07-07 深圳市同洲电子股份有限公司 Method, device and embedded browser for script processing
CN105159686A (en) * 2015-09-28 2015-12-16 北京奇虎科技有限公司 Website page development method and apparatus
CN105159686B (en) * 2015-09-28 2018-09-04 北京奇虎科技有限公司 A kind of Website page development approach and device

Similar Documents

Publication Publication Date Title
US8954870B2 (en) System and method for extending a visualization platform
US20120210298A1 (en) Locating changes in source code
CN101887370B (en) Method and device for creating system user interface
US8539442B2 (en) Reverse engineering for code file refactorization and conversion
CN110334326B (en) A kind of method and system for identifying recipe file and being converted into XML file
US7987446B2 (en) Method for automating variables in end-user programming system
Walls et al. XDoclet in Action (In Action series)
US11314757B2 (en) Search results modulator
US9244707B2 (en) Transforming user interface actions to script commands
CN109885493A (en) A kind of automation combination frame reflected based on Android platform and Java
CN112631563A (en) System development method and device based on framework, computer equipment and storage medium
CN102508673A (en) System and method for rapidly developing and configuring platform software
CN101847147A (en) System for integrating individually-edited scripts and styles into webpage and method thereof
CN110321282A (en) The XML configuration file amending method and system of Mock test
US20050177788A1 (en) Text to XML transformer and method
CN102236546B (en) System and method for executing corresponding script by searching interactive elements
Le A react responsive web application managing offers and configurations of projects
US11210454B2 (en) Method for preparing documents written in markup languages while implementing a user interface for dealing with data of an information system
CN117519698A (en) Online form generation method and system based on distributed architecture
Rahman et al. Pattern analysis of TXL programs
Liu Capstone project report
Arnold et al. The StatRep system for reproducible research
CN117216092A (en) Method, device and equipment for optimizing TDSQL script and readable storage medium
CN116304463A (en) Webpage document management method, device, equipment and medium in front-end development
Bakar Using regular expressions for mining data in large software repositories

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20100929