CN103383691B - A kind of online editing method and apparatus of webpage - Google Patents

A kind of online editing method and apparatus of webpage Download PDF

Info

Publication number
CN103383691B
CN103383691B CN201210137642.7A CN201210137642A CN103383691B CN 103383691 B CN103383691 B CN 103383691B CN 201210137642 A CN201210137642 A CN 201210137642A CN 103383691 B CN103383691 B CN 103383691B
Authority
CN
China
Prior art keywords
source code
numbering
html source
label
webpage
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201210137642.7A
Other languages
Chinese (zh)
Other versions
CN103383691A (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.)
Alibaba Group Holding Ltd
Original Assignee
Alibaba Group Holding 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 Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201210137642.7A priority Critical patent/CN103383691B/en
Publication of CN103383691A publication Critical patent/CN103383691A/en
Application granted granted Critical
Publication of CN103383691B publication Critical patent/CN103383691B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

This application discloses a kind of online editing method of webpage.Unduplicated numbering is carried out by the element in the original html source code to webpage for the web browser, the numbering of element and editor's information that web browser record user is edited.The numbering of the element edited and editor's information transfer are only returned the webserver by web browser.Disclosed herein as well is a kind of online editing device of webpage accordingly.The application can reduce web browser and automatically revise brought mistake renewal, greatly save the network bandwidth, and can expand to range of application on the webpage only allowing part modification.

Description

A kind of online editing method and apparatus of webpage
Technical field
The application is related to Internet technology, the online editing method and apparatus of more particularly, to a kind of webpage.
Background technology
Webpage is a kind of file of HTML or XHTML form.Refer to Fig. 1, webpage is normally stored in the webserver, and Managed by web page server program.Web browser on computer or other smart machines can take from the webpage of the webserver Business device program obtains webpage, and shows on screen.This process is typically simply described as:Web browser is from network Server obtains webpage.
When web browser is after the webserver obtains webpage, if user can be by web browser to showing The webpage coming enters edlin, and the webpage after editor can be stored back into the webserver again, then this process is referred to as the online editing of webpage. The online editing of webpage is often applied to message board message, forum posts, write blog daily record etc. needs the occasion of user input.
Refer to Fig. 2, this is the method for traditional online editing webpage, comprises the steps:
Step S21, web browser receives the html source code of the webpage that the webserver is transmitted, and parses this HTML source Code is simultaneously shown.
Step S22, the edit instruction to this webpage for the web browser receive user, and the webpage after editor is whole Html source code is transmitted back to the webserver, so that the webserver updates original html source code.
The method of this online editing webpage has as a drawback that:
First, the HTML of unnecessary even mistake cannot be avoided to update.In the step s 21, most webpage is clear Device of looking at all can be checked to html tag therein in the html source code of analyzing web page and automatically be revised, including increase Html tag, the attribute of modification html tag, position of rearrangement html tag etc..These revise some automatically is correct, has It is wrong a bit;The automatic correcting mode of different web pages browser is also had any different;Revised HTML source automatically may finally be made There is the difference of unnecessary even mistake between code and original html source code.
Second, the consumption to the network bandwidth is larger.In step S22, web browser will be whole after web page editing Html source code is all transmitted back to the webserver, if user only carries out part modification to webpage, to unmodified part Transmission wastes the network bandwidth.
Third, some webpages include the content that some do not allow user's modification.But the method for above-mentioned online editing webpage The operation of uncontrollable user, user may change the part web page contents not allowing its modification, and is transmitted back to network clothes Business device is preserved, and leads to mistake.
Content of the invention
Technical problems to be solved in this application are a kind of online editing methods providing webpage, it is possible to reduce web page browsing The adverse effect to webpage online editing for the automatic correction of device, and reduce network bandwidth consumption, expand online editing institute simultaneously Applicable webpage scope.
For solving above-mentioned technical problem, the online editing method of the application webpage comprises the steps:
1st step, web browser receives the html source code of the webpage of webserver transmission, and to this html source code In element carry out unduplicated numbering, parse this html source code and be shown;
2nd step, the edit instruction to this webpage for the web browser receive user, and record the corresponding numbering of the element of editor And/or editor's information;
3rd step, web browser is only by the html source code of corresponding for the element of described editor numbering and/or editor's information It is transmitted back to the webserver, so that the described webserver updates original html source code.
Corresponding, the online editing device of the application webpage includes:
For receiving the device of the html source code of the webpage of webserver transmission;
For the element in the html source code being received is carried out with the device of unduplicated numbering;
For the html source code after parsing numbering and the device that is shown;
For the edit instruction device to this webpage for the receive user;
For recording user's corresponding numbering of element edited and/or the device editing information;
For the html source code of corresponding for the element of described editor numbering and/or editor's information is transmitted back to network service Device, so that the described webserver updates the device of original html source code.
The application has the advantage that to the online editing method and device of webpage:
One although web browser still can be revised to the HMTL label in html source code automatically, but due to net The part html source code that user is only edited by page browsing device is transmitted back to the webserver, and that is, the webserver is only to original The partial content of html source code is updated, thus can reduce web browser and automatically revise brought mistake renewal.
Second, the part html source code that web browser only needs to edit user is transmitted back to the webserver, because And compare traditional approach and greatly save the network bandwidth.
Third, no matter for the webpage allowing user editor in full, or for only allowing the webpage of User Part editor, The webpage online editing method and device of the application all can be competent at, thus extends range of application.
Brief description
Fig. 1 is that web browser obtains the schematic diagram of webpage to the webserver;
Fig. 2 is the flow chart of the online editing method of existing webpage;
Fig. 3 is the flow chart of the embodiment one of the online editing method of the webpage of the application;
Fig. 4 is the flow chart of the embodiment two of the online editing method of the webpage of the application.
Specific embodiment
Refer to Fig. 3, this is the embodiment one of the online editing method of the application webpage, comprises the steps:
Web browser on step S31, computer or other smart machines proposes to access webpage to the webserver Request.The html source code of this webpage is transferred to web browser by the webserver.Web browser receives the webserver The html source code of this webpage being transmitted.
For example, transmit following one section of html source code:
Then, web browser is to the element in this html source code(Label and text)Carry out unduplicated numbering, solution Analyse the html source code of this webpage and be illustrated on computer or the screen of other smart machines.
In html source code, the content having a pair of angle brackets encirclement is referred to as label, does not have the content that angle brackets surround to claim For text.Any html source code is all made up of label and this two parts element of text.
For example, above-mentioned that section of html source code can be numbered as follows:Label<div>Give numbering 1, label<ul>Give Give numbering 2, label<li>Give numbering 3, label<a>Give numbering 4, label<imgsrc="a.fig"/>Give numbering 5, literary composition This " Fig. 1 " gives numbering 6.These are numbered only need to meet and mutually do not repeat.
Some labels individually occur, for example<img src="a.GIF"/>, this label must number.
Some labels are paired, for example<a>With</a>;The former referred to as starts label it is necessary to number;The latter referred to as terminates to mark Sign, can not give to number.
Step S32, user enters edlin by web browser to this webpage, then preserves the webpage after editor.User Edit operation include increasing, change and/or delete the element in html source code newly(Label and/or text).Web browser The edit instruction to this webpage for the receive user, and record the corresponding numbering of the element of editor and/or editor's information.
The element increasing newly for user, web browser records its html source code and its front or behind at least The numbering of one existing element.Preferably, being close to before or after the element that web browser record user is increased newly The numbering of individual existing element.
For the element of user's modification, web browser records its html source code and its numbering.
The element deleted for user, web browser records its numbering.
For example, the amended html source code of user is as follows:
The content of edit of user is:
(1a)Label in numbering 2<ul>Increase newly afterwards<li><a>Men's clothing figure</a></li>;
(2a)Delete the label of numbering 5<img src="a.fig"/>;
(3a)The text " Fig. 1 " of modification numbering 6 is text " women's dress figure ".
The content of web browser record is:
(1b)User newly-increased element html source code<li><a>Men's clothing figure</a></li>, and this newly-increased element it Front element tags<ul>And its numbering 2;
Or record:User newly-increased element html source code<li><a>Men's clothing figure</a></li>, and this is newly-increased Element tags after element<li>And its numbering 3.
(2b)The numbering 6 of the element that user is changed, and its amended content " women's dress figure ".
(3b)The numbering 5 of the element that user is deleted.
Step S33, web browser is only by the HTML source generation of corresponding for the element of described editor numbering and/or editor's information Code is transmitted back to the webserver, so that the webserver updates original html source code.
The element that user is increased newly, from this newly-increased element to the existing element of record number between html source code (Including two-end-point), and the numbering of the existing element being recorded.
The element that user is changed, the html source code of the element of this modification and its numbering.
The element that user is deleted, the numbering of the element of this deletion.
Continuation of the previous cases, web browser only will be recorded(1b)、(2b)、(3b)Html source code and corresponding numbering pass The defeated time webserver.The webserver, according to the html source code receiving and numbering, is carried out to original html source code Increase newly accordingly, change and/or delete, and preserve.
Continuation of the previous cases, for receive(1b)Partial html source code, the webserver is by this newly-increased element to note Html source code between the existing element of record numbering(Including two-end-point)Replace same numbering in original html source code There is the html source code of element.
For receive(2b)Partial html source code, the webserver is by the html source code of amended element Replace the html source code of the existing element of same numbering in original html source code.
For receive(3b)Partial html source code, the webserver deletes having in original html source code The html source code of the existing element of this numbering.
This embodiment one implies such one layer of implication:The webserver is carrying out local updating to original html source code When, understand the numbering of each element in the original html source code of this webpage.This can be accomplished by, that is,:Network takes Business device also carries out unduplicated numbering to the element in the original html source code of this webpage, and using identical with web browser Coding rule.
This embodiment one accordingly has a kind of online editing device of webpage, including:
For receiving the device of the html source code of the webpage of webserver transmission;
For the element in the html source code being received is carried out with the device of unduplicated numbering;
For the html source code after parsing numbering and the device that is shown;
For the edit instruction device to this webpage for the receive user;
For recording user's corresponding numbering of element edited and/or the device editing information;
For the html source code of corresponding for the element of described editor numbering and/or editor's information is transmitted back to network service Device, so that the described webserver updates the device of original html source code.
The described device for recording user's corresponding numbering of element edited and/or edit information further includes:
At least one existing element of the front or behind of the html source code of the newly-increased element of record and this newly-increased element Numbering device;
The device of the numbering of the html source code of record modification element and this modification element;
The device of the numbering of record deletion element.
Described for by corresponding for the element of described editor numbering and/or editor information html source code be transmitted back to network Server, so that the device that the described webserver updates original html source code further includes:
By the html source code between that existing element of newly-increased element to record number, and the existing unit being recorded The numbered transmission of element returns the device of the webserver;
The numbered transmission of the html source code of modification element and this modification element is returned the device of the webserver;
The numbered transmission deleting element is returned the device of the webserver.
Refer to Fig. 4, this is the embodiment two of the online editing method of the application webpage, comprises the steps:
Step S41, web browser receives the html source code of webpage and this HTML source generation of webserver transmission The unduplicated numbering of the element in code, parses this html source code and is shown;
Step S42 is identical with step S32;
Step S43 is identical with step S33.
This embodiment two implies such one layer of implication:The webserver transmission webpage html source code before, Unduplicated numbering has been carried out to this html source code.The webserver when local updating is carried out to original html source code, Understand the numbering of each element in the original html source code of this webpage.This can be realized by one of following two modes.First, The webserver, after the element in the original html source code to webpage carries out unduplicated numbering, stores each numbering.Its Two, the webserver, after the element in the original html source code to webpage carries out unduplicated numbering, does not store numbering;Net Network server, before carrying out local updating to original html source code, is numbered again using being identically numbered rule.
This embodiment two also accordingly has a kind of online editing device of webpage, with embodiment one in webpage online volume The difference of volume device is, will be used for the device of the html source code of the webpage receiving webserver transmission, is used for being connect Element in the html source code received carries out the device of unduplicated numbering;Merge into:For receiving webserver transmission The device of the unduplicated numbering of the element in the html source code of webpage and this html source code.
The differring primarily in that of above-mentioned two embodiment is numbered to the element in the original html source code of webpage Main body is different.
In the first embodiment, be web browser and webserver both sides using being identically numbered rule, right respectively Element in original html source code is numbered.Its advantage is farthest to save the network bandwidth, and shortcoming is that webpage is clear Looking at device and this two sections of the webserver will consumption calculations resource.
In a second embodiment, or the webserver is twice using being identically numbered rule, respectively to original HTML Element in source code is numbered.Be for the first time by html source code be transferred to before web browser any when, the Secondary be receive web browser transmission return content of edit before any when.Its advantage is to save web page browsing The computing resource of device one end, also saves caching and/or the storage resource of one section of the webserver, but consumption network bandwidth relatively the One embodiment is slightly larger, because needing for numbering to be transferred to web browser together.
In a second embodiment, or the webserver is only once compiled to the element in original html source code Number.Its advantage is the computing resource saving web browser one end, also saves the double counting money of webserver one end Source, but consumption network bandwidth is slightly larger compared with first embodiment, and webserver one end takies caching and/or storage compared with the second enforcement Example is bigger, because needing caching numbering.
For computational efficiency, work that the element in original html source code is numbered, it is placed on web browser One end executes, and uses the front end instruction that web browser can directly execute, such as JavaScript;It is placed on the webserver One end executes, and uses the rear end instruction that web browser not directly executes, such as Java, PHP .Net etc..Rear end language The execution efficiency of speech is higher.
For Consumer's Experience, work that the element in original html source code is numbered, all it is placed on network to take Business device one end is carried out preferably.Thus so just will not slow down the speed of web browser.
A kind of element in html source code is carried out with unduplicated numbering concrete grammar is given below:
(1c)Increase an attribute, the numbering being entered as this label of this attribute in the label of html source code.
(2c)For the text in html source code, it is necessarily between a pair of father's label.So-called father's label refers to one To beginning label and end-tag, and include the text between the two, and closest with the tandem of the text.
If only having the text between father's label of the text, this article is represented with the numbering of father's label of the text simultaneously Basis and his father's label.
(3c)If except the text between father's label of the text, also there are other elements, it is usually other labels;Then It is close to newly-increased one or parcel a pair of tag for the text, before or after this newly-increased label can be close to the text;This bag Wrap up in before the beginning label in label is close to the text, after end-tag is close to the text.In newly-increased or stick-on label Middle one numbering attribute of increase represents the numbering of the text.
Above-mentioned(1c)、(2c)、(3c)Operation must be numbered to the independent label occurring;To the paired label occurring In, starting label must number, and end-tag is optional numbering.
After being numbered using the method, that section of html source code in step S31 and its numbering are just changed into:
The numbering of wherein elimid attribute list indicating label,<text>Label is to be increased newly by text, for representing numbering The label being close to the text, " numbering 6 "<text>Label is exactly the stick-on label for text " Fig. 1 ".
Correspondingly, the described device for the element in the html source code being received is carried out with unduplicated numbering enters one Step includes:
For increasing the device of a new attribute representing its numbering in the label of html source code;
For to the text in html source code, when it is the only element between a pair of father's label, then with his father's label In represent numbering new attribute refer to the text and the device of his father's label simultaneously;
For to the text in html source code, when it is the element between a pair of father's label, and this pair of father's label it Between also have other elements, then be close to newly-increased one or parcel a pair of tag for the text, increase in the newly-increased or label of parcel Plus the device of the new attribute of numbering of an expression text.
Preferably, the described device for the element in the html source code being received is carried out with unduplicated numbering enters one Step includes:
For the device that the independent label occurring must be numbered;
For the device starting that label must be numbered only is limited to the paired label occurring.
The above-mentioned concrete grammar that element in html source code is carried out with unduplicated numbering can simplify further:
(1d)Increase an attribute, the numbering being entered as this label of this attribute in the label of html source code.
(2d)It is close to newly-increased one or parcel a pair of tag for the text in html source code, this newly-increased label can be adjacent Before or after the text;Before beginning label in this stick-on label is close to the text, end-tag is close to this article After this.Increase, in newly-increased or stick-on label, the numbering that a numbering attribute represents the text.
Above-mentioned(1d)、(2d)Operation must be numbered to the independent label occurring;To in the paired label occurring, start Label must be numbered, and end-tag is optional numbering.
Correspondingly, the described device for the element in the html source code being received is carried out with unduplicated numbering enters one Step includes:
For increasing the device of a new attribute representing its numbering in the label of html source code;
For being close to newly-increased one or parcel a pair of tag for the text in html source code, in newly-increased or parcel mark Increase the device of the new attribute of a numbering representing its text being close in label.
Preferably, the described device for the element in the html source code being received is carried out with unduplicated numbering enters one Step includes:
For the device that the independent label occurring must be numbered;
For the device starting that label must be numbered only is limited to the paired label occurring.
After above two method for numbering serial, the webserver is just embodied as to the local updating of html source code:
(1e)For the html source code between the existing element receiving from newly-increased element to record number(Including two End points), and the numbering of the existing element being recorded;
When the existing element that the webserver finds institute's record number is paired label(Or beginning label therein), and should In pairs in label(Or therein beginning label after and end-tag before)Only text;Then this is increased newly by the webserver The html source code to the existing element of record number for the element(Including two-end-point)Replace the original HTML source generation of this webpage The existing element of same numbering in code and text therein(Or beginning label and subsequent text therein)Html source code.
When the existing element that the webserver finds institute's record number is paired label(Or beginning label therein), and should In pairs in label(Or therein beginning label after and end-tag before)Also have other elements, then net in addition to text Network server is by the html source code between the existing element of this newly-increased element to record number(Including two-end-point)Replace this net The html source code of the existing element of same numbering in the original html source code of page.
When the existing element that the webserver finds institute's record number is single label(The label individually occurring), then net Network server is by the html source code between the existing element of this newly-increased element to record number(Including two-end-point)Replace this net The html source code of the existing element of same numbering in the original html source code of page.
This embodiment is actually only numbered to the label in html source code, and text is not numbered, thus Three kinds of judgements have been exhausted all scenario above.
(2e)For the html source code of the element of the modification receiving, and its numbering;
When the element that the webserver finds this modification is paired label(Or beginning label therein), and this paired label In(Or therein beginning label after and end-tag before)Only text, then the element that this is changed by the webserver Html source code replaces the existing element of the same numbering in the original html source code of this webpage and text therein(Or it is therein Start label and subsequent text)Html source code.
When the element that the webserver finds this modification is paired label(Or beginning label therein), and this paired label In(Or therein beginning label after and end-tag before)Also have other elements, the then webserver in addition to text The html source code of the element that this is changed replaces the existing element of the same numbering in the original html source code of this webpage Html source code.
When the element that the webserver finds this modification is single label, then the element that this is changed by the webserver Html source code replaces the html source code of the existing element of the same numbering in the original html source code of this webpage.
This embodiment is actually only numbered to the label in html source code, and text is not numbered, thus Three kinds of judgements have been exhausted all scenario above.
(3e)Numbering for the element of the deletion receiving;
When the element that the webserver finds this deletion is paired label(Or beginning label therein), and this paired label In(Or therein beginning label after and end-tag before)Only text, then the webserver is by original html source code In the existing element of same numbering and text therein(Or beginning label and subsequent text therein)Html source code delete Remove.
When the element that the webserver finds this deletion is paired label(Or beginning label therein), and this paired label In(Or therein beginning label after and end-tag before)Also have other elements, the then webserver in addition to text The html source code of the existing element of the same numbering in the original html source code of this webpage is deleted.
When the element that the webserver finds this deletion is single label, then the webserver is by the original HTML of this webpage The html source code of the existing element of the same numbering in source code is deleted.
This embodiment is actually only numbered to the label in html source code, and text is not numbered, thus Three kinds of judgements have been exhausted all scenario above.
The concrete grammar that above two is numbered to the element in html source code, the webserver is preserving HTML source During code, numbering can be connected and preserve together it is also possible to remove the html source code that numbering only retains routine.
The embodiment of the present application can be operated using the universal or special calculating of other or communication environment or configuration.It is applied to this The example of the well-known computing system, environment and configuration of application includes but is not limited to, personal computer, server, many places Reason device system, the system based on microprocessor, the distribution of minicomputer, mainframe computer and the arbitrary said system of inclusion or equipment Formula computing environment.Certainly the embodiment of the present application can also be realized by software.
These are only the preferred embodiment of the application, be not used to limit the application.Those skilled in the art is come Say, the application can have various modifications and variations.All any modifications within spirit herein and principle, made, equivalent Replace, improve etc., should be included within the protection domain of the application.

Claims (14)

1. a kind of online editing method of webpage, is characterized in that, comprise the steps:
1st step, web browser receives the html source code of the webpage of webserver transmission, and in this html source code Element carries out unduplicated numbering, parses this html source code and is shown;
2nd step, the edit instruction to this webpage for the web browser receive user, and record the corresponding numbering of the element of editor and compile The information of collecting;
3rd step, the html source code of corresponding for the element of described editor numbering and editor's information is only transmitted back to by web browser The webserver, so that the described webserver updates original html source code.
2. the online editing method of webpage according to claim 1, is characterized in that, in methods described the 2nd step, web page browsing The content of device record includes:
For newly-increased element, the numbering of at least one existing element of its html source code and its front or behind;
For modification element, its html source code and its numbering;
For the element deleted, its numbering.
3. the online editing method of webpage according to claim 2, is characterized in that, in methods described the 3rd step, web page browsing The content of device transmission includes:
For newly-increased element, the html source code between that existing element from this newly-increased element to record number, and The numbering of the existing element being recorded;
For modification element, its html source code and its numbering;
For the element deleted, its numbering.
4. the online editing method of webpage according to claim 1, is characterized in that, methods described the 1st step is changed to:Webpage Browser receive the webserver transmission the html source code of webpage and this html source code in element unduplicated Numbering, parses this html source code and is shown.
5. the online editing method of the webpage according to claim 1 or 4, is characterized in that, the described HTML source generation to webpage Element in code carries out the method for unduplicated numbering:
Increase a new attribute representing its numbering in the label of html source code;
For the text in html source code, when it is the only element between a pair of father's label, then with the table in his father's label Show that the new attribute of numbering refers to the text and his father's label simultaneously;
For the text in html source code, when it is the element between a pair of father's label, and also have between this pair of father's label Other elements, then be close to newly-increased one or parcel a pair of tag for the text, increases by one in label that is newly-increased or wrapping up Represent the new attribute of the numbering of the text;
Described father's label is a pair of beginning label and end-tag, and includes the text between the two, and with the text before and after Sequentially closest.
6. the online editing method of the webpage according to claim 1 or 4, is characterized in that, the described HTML source generation to webpage Element in code carries out the method for unduplicated numbering:
Increase a new attribute representing its numbering in the label of html source code;
It is close to newly-increased one or parcel a pair of tag for the text in html source code, increase in label that is newly-increased or wrapping up The new attribute of one numbering representing its text being close to.
7. the online editing method of the webpage according to claim 1 or 4, is characterized in that, the described HTML source generation to webpage When element in code carries out unduplicated numbering, the independent label occurring must be numbered;The paired label occurring only is limited Start label must number.
8. a kind of online editing device of webpage, is characterized in that, including:
For receiving the device of the html source code of the webpage of webserver transmission;
For the element in the html source code being received is carried out with the device of unduplicated numbering;
For the html source code after parsing numbering and the device that is shown;
Device for the edit instruction to this webpage for the receive user;
For recording user's corresponding numbering of element edited and the device editing information;
For the html source code of corresponding for the element of described editor numbering and editor's information is transmitted back to the webserver, so that The described webserver updates the device of original html source code.
9. the online editing device of webpage according to claim 8, is characterized in that, described for recording what user was edited The device of the corresponding numbering of element and editor's information further includes:
The volume of at least one existing element of front or behind of the html source code of the newly-increased element of record and this newly-increased element Number device;
The device of the numbering of the html source code of record modification element and this modification element;
The device of the numbering of record deletion element.
10. the online editing device of webpage according to claim 8, is characterized in that, described for by the unit of described editor The html source code of the corresponding numbering of element and editor's information is transmitted back to the webserver, so that the renewal of the described webserver is original The device of html source code further includes:
By the html source code between that existing element of newly-increased element to record number, and the existing element being recorded Numbered transmission returns the device of the webserver;
The numbered transmission of the html source code of modification element and this modification element is returned the device of the webserver;
The numbered transmission deleting element is returned the device of the webserver.
The online editing device of 11. webpages according to claim 8, is characterized in that, described for receiving the webserver The device of the html source code of webpage of transmission;And
For the element in the html source code being received is carried out with the device of unduplicated numbering;
Merge into:
For receiving not repeating of element in the html source code of webpage of webserver transmission and this html source code Numbering device.
The online editing device of 12. webpages according to claim 8, is characterized in that, described for the HTML being received The device that element in source code carries out unduplicated numbering further includes:
For increasing the device of a new attribute representing its numbering in the label of html source code;
For to the text in html source code, when it is the only element between a pair of father's label, then with his father's label Represent that the new attribute of numbering refers to the text and the device of his father's label simultaneously;
For to the text in html source code, when it is the element between a pair of father's label, and between this pair of father's label also There are other elements, be then close to newly-increased one or parcel a pair of tag for the text, in label that is newly-increased or wrapping up, increase by one The device of the individual new attribute of numbering representing the text;
Described father's label is a pair of beginning label and end-tag, and includes the text between the two, and with the text before and after Sequentially closest.
The online editing device of 13. webpages according to claim 8, is characterized in that, described for the HTML being received The device that element in source code carries out unduplicated numbering further includes:
For increasing the device of a new attribute representing its numbering in the label of html source code;
For being close to newly-increased one or parcel a pair of tag for the text in html source code, in label that is newly-increased or wrapping up Increase the device of the new attribute of a numbering representing its text being close to.
The online editing device of 14. webpages according to claim 8, is characterized in that, described for the HTML being received The device that element in source code carries out unduplicated numbering further includes:
For the device that the independent label occurring must be numbered;
For the device starting that label must be numbered only is limited to the paired label occurring.
CN201210137642.7A 2012-05-04 2012-05-04 A kind of online editing method and apparatus of webpage Active CN103383691B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210137642.7A CN103383691B (en) 2012-05-04 2012-05-04 A kind of online editing method and apparatus of webpage

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210137642.7A CN103383691B (en) 2012-05-04 2012-05-04 A kind of online editing method and apparatus of webpage

Publications (2)

Publication Number Publication Date
CN103383691A CN103383691A (en) 2013-11-06
CN103383691B true CN103383691B (en) 2017-03-01

Family

ID=49491481

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210137642.7A Active CN103383691B (en) 2012-05-04 2012-05-04 A kind of online editing method and apparatus of webpage

Country Status (1)

Country Link
CN (1) CN103383691B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104714993A (en) * 2013-12-12 2015-06-17 南宁市磁汇科技有限公司 Method for conducting real-time property editing on rolling object
CN104714989A (en) * 2013-12-12 2015-06-17 南宁市磁汇科技有限公司 Method for dynamically storing and visually editing WEB page in browser
CN103870955B (en) * 2014-03-24 2017-07-21 小米科技有限责任公司 The processing method and processing device of data in webpage
CN105022757A (en) * 2014-04-29 2015-11-04 腾讯科技(深圳)有限公司 Webpage revision method and webpage revision device
CN108170425B (en) * 2017-12-29 2021-03-19 东莞市高标软件科技有限公司 Program code modification method and device and terminal equipment
CN110045955B (en) * 2018-01-17 2022-10-18 视联动力信息技术股份有限公司 Editing method and device
CN112035107A (en) * 2020-08-26 2020-12-04 北京字节跳动网络技术有限公司 Method, device and equipment for editing webpage elements and storage medium
CN112379847A (en) * 2020-12-04 2021-02-19 北京艺源酷科技有限公司 Data storage structure and uploading storage method

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101593207A (en) * 2009-07-06 2009-12-02 孟智平 The method and system of a kind of structure and generation webpage
CN101739415A (en) * 2008-11-25 2010-06-16 华中师范大学 Browser-oriented webpage labeling system
CN101937427A (en) * 2009-06-30 2011-01-05 方正国际软件(北京)有限公司 Browser-based system and method for content edition and issue

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100523512B1 (en) * 2004-06-24 2005-10-25 박희섭 Methods and the program-recording medium for creating, editing and trading home page components to assemble a home page and a personal portal site directly in wysiwyg on web browser

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101739415A (en) * 2008-11-25 2010-06-16 华中师范大学 Browser-oriented webpage labeling system
CN101937427A (en) * 2009-06-30 2011-01-05 方正国际软件(北京)有限公司 Browser-based system and method for content edition and issue
CN101593207A (en) * 2009-07-06 2009-12-02 孟智平 The method and system of a kind of structure and generation webpage

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
用iframe构造的基于浏览器的在线网页编辑器;高珂, 胡莹, 李洪岩, 刘虎;《山东煤炭科技》;20070615(第3期);全文 *

Also Published As

Publication number Publication date
CN103383691A (en) 2013-11-06

Similar Documents

Publication Publication Date Title
CN103383691B (en) A kind of online editing method and apparatus of webpage
CA2675332C (en) Framework for automatically merging customizations to structured code that has been refactored
US8286132B2 (en) Comparing and merging structured documents syntactically and semantically
CN100568226C (en) Be used for the method that reformatting has the zone of chaotic hyperlink
CN108572819A (en) Method for updating pages, device, terminal and computer readable storage medium
CN104020984B (en) A kind of method and device for generating static page
CN105027120B (en) multi-page management method and device
CN108804707A (en) A kind of page processing method, device and relevant device
CN103473338B (en) Webpage content extraction method and webpage content extraction system
US20150143230A1 (en) Method and device for displaying webpage contents in browser
US20080028302A1 (en) Method and apparatus for incrementally updating a web page
CN106980508A (en) Method and apparatus for generating the page
CN106951451A (en) A kind of webpage content extracting method, device and computing device
CN104699748B (en) It is a kind of to show the method and its system for being not fixed row report
CN106649395A (en) Webpage updating method and apparatus
CN103377039B (en) A kind of web game exploitation, analytic method, a kind of editing machine and resolver
CN104331438B (en) To novel web page contents selectivity abstracting method and device
CN104375812A (en) Webpage content modifying template construction method and webpage content modifying method and system
CN107590288B (en) Method and device for extracting webpage image-text blocks
CN113377373A (en) Page loading method and device based on analysis engine, computer equipment and medium
CN108595697A (en) Webpage integrated approach, apparatus and system
CN110347390A (en) A kind of method quickly generating WEB page, storage medium, equipment and system
US20080114797A1 (en) Importing non-native content into a document
CN103581246B (en) A kind of display methods and server of browser homepage
CN107273127A (en) Method and device for realizing page plug-in web application

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 1186816

Country of ref document: HK

GR01 Patent grant
GR01 Patent grant
REG Reference to a national code

Ref country code: HK

Ref legal event code: GR

Ref document number: 1186816

Country of ref document: HK