CN103383691A - Webpage online editing method and device - Google Patents

Webpage online editing method and device Download PDF

Info

Publication number
CN103383691A
CN103383691A CN2012101376427A CN201210137642A CN103383691A CN 103383691 A CN103383691 A CN 103383691A CN 2012101376427 A CN2012101376427 A CN 2012101376427A CN 201210137642 A CN201210137642 A CN 201210137642A CN 103383691 A CN103383691 A CN 103383691A
Authority
CN
China
Prior art keywords
source code
html source
numbering
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.)
Granted
Application number
CN2012101376427A
Other languages
Chinese (zh)
Other versions
CN103383691B (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

Images

Landscapes

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

Abstract

The invention discloses a webpage online editing method. The web browser conducts non-redundant numbering on elements of an original HTML source code, and records element number and information edited by a user. The web browser transmits the edited element number and the edited information to a web server. The invention further discloses a corresponding online editing device. According to the method and device provided by the invention, error updating caused by web browser autocorrecting can be decreased, web bandwidth is greatly saved, and the application range can be expanded into web pages allowing partial correcting.

Description

A kind of online editing method and apparatus of webpage
Technical field
The application relates to Internet technology, relates in particular to a kind of online editing method and apparatus of webpage.
Background technology
Webpage is the file of a kind of HTML or XHTML form.See also Fig. 1, webpage is stored in the webserver usually, and by the web page server program management.Web browser on computing machine or other smart machines can obtain webpage from the web page server program of the webserver, and shows on screen.This process is described as usually simply: web browser obtains webpage from the webserver.
After the webserver obtained webpage, if the user can edit the webpage that shows by web browser, the webpage after editor can be stored back the webserver again when web browser, and this process is called the online editing of webpage.The online editing of webpage often is applied to message board message, forum and posts, writes the occasion that blog daily record etc. needs the user to input.
See also Fig. 2, this is the method for traditional online editing webpage, comprises the steps:
Step S21, the html source code of the webpage that the web browser reception webserver transmits is resolved this html source code and shows.
Step S22, web browser receive the user to the edit instruction of this webpage, and the whole html source code of the webpage after edit transmits back the webserver, so that the original html source code of webserver renewal.
The method of this online editing webpage has following shortcoming:
One can't be avoided unnecessary or even wrong HTML upgrades.In step S21, most web browser all can check html tag wherein when the html source code of analyzing web page and automatically revise, and comprises the attribute that increases html tag, revises html tag, the position of rearrangement html tag etc.These revise some automatically is correct, and some is wrong; The automatic correcting mode of different web pages browser is also had any different; Finally may make and have unnecessary or even wrong difference between automatic revised html source code and original html source code.
Its two, larger to the consumption of the network bandwidth.In step S22, the whole html source code of web browser after with web page editing all transmits back the webserver, revises if the user only carries out part to webpage, the network bandwidth wasted in the transmission of unmodified part.
Its three, some webpage comprises the content that some do not allow the user to revise.The uncontrollable user's of method of above-mentioned online editing webpage operation, the user may revise the part web page contents that does not allow its modification, and transmits back the webserver and preserve, and causes occurring mistake.
Summary of the invention
The application's technical matters to be solved is to provide a kind of online editing method of webpage, can reduce the automatic correction of web browser to the adverse effect of webpage online editing, and the minimizing network bandwidth consumption, enlarged simultaneously the webpage scope that online editing was suitable for.
For solving the problems of the technologies described above, the online editing method of the application's webpage comprises the steps:
In the 1st step, web browser receives the html source code of the webpage of webserver transmission, and the element in this html source code is carried out unduplicated numbering, resolves this html source code and shows;
In the 2nd step, web browser receives the user to the edit instruction of this webpage, and record editor's corresponding numbering and/or the edit file of element;
In the 3rd step, web browser only numbering that described editor's element is corresponding and/or the html source code of edit file transmit back the webserver, so that the original html source code of described webserver renewal.
Corresponding with it, the online editing device of the application's webpage comprises:
Be used for to receive the device of html source code of the webpage of webserver transmission;
Be used for the element of the html source code that receives is carried out the device of unduplicated numbering;
Be used for resolving the html source code after numbering and the device of showing;
Be used for receiving the user to the edit instruction device of this webpage;
The numbering that the element of editing for recording user is corresponding and/or the device of edit file;
Be used for the numbering that described editor's element is corresponding and/or the html source code of edit file and transmit back the webserver, so that the described webserver upgrades the device of original html source code.
The application has following advantage to online editing method and the device of webpage:
One, although web browser still can be revised automatically to the HMTL label in html source code, but the part html source code of only user being edited due to web browser transmits back the webserver, be that the webserver only upgrades the partial content of original html source code, thereby can reduce web browser and automatically revise the mistake renewal that brings.
Its two, the part html source code that web browser only need to be edited the user transmits back the webserver, thereby compares traditional approach and greatly saved the network bandwidth.
Its three, no matter for the webpage that allows the user to edit in full, or for the webpage that only allows the User Part editor, the application's webpage online editing method and device all can be competent at, thereby have expanded range of application.
Description of drawings
Fig. 1 is that web browser obtains the schematic diagram of webpage to the webserver;
Fig. 2 is the process flow diagram of the online editing method of existing webpage;
Fig. 3 is the process flow diagram of embodiment one of online editing method of the application's webpage;
Fig. 4 is the process flow diagram of embodiment two of online editing method of the application's webpage.
Embodiment
See also Fig. 3, this is the embodiment one of the online editing method of the application's webpage, comprises the steps:
Step S31, the web browser on computing machine or other smart machines propose the request of accessed web page to the webserver.The webserver is transferred to web browser with the html source code of this webpage.The html source code of this webpage that the web browser reception webserver transmits.
For example, the following one section html source code of transmission:
Figure BDA00001602405900041
Then, web browser carries out unduplicated numbering to the element in this html source code (label and text), resolve the html source code of this webpage and be illustrated in computing machine or the screen of other smart machines on.
In html source code, the content that has a pair of angle brackets to surround is called label, and the content that does not have angle brackets to surround is called text.Any html source code all is comprised of label and this two parts element of text.
For example, above-mentioned that section html source code can carry out following numbering: label<div〉number 1, label<ul〉number 2, label<li〉number 3, label<a〉number 4, label<imgsrc=" a.fig "/number 5, text " Fig. 1 " numbers 6.These numberings only need to satisfy not repeat mutually to get final product.
Some label occurs separately, for example<img src=" a.gif "/, this label must be numbered.
Some label is paired, for example<a〉and</a 〉; The former is called the beginning label, must number; The latter is called end-tag, can not number.
Step S32, the user edits this webpage by web browser, then preserves the webpage after editing.That user's editing operation comprises is newly-increased, revise and/or the deletion html source code in element (label and/or text).Web browser receives the user to the edit instruction of this webpage, and record editor's corresponding numbering and/or the edit file of element.
For the element that the user increases newly, web browser record its html source code, with and the numbering of at least one existing element at the place ahead or rear.The numbering of an existing element that is close to before or after the element that preferably, the web browser recording user is increased newly.
For the element that the user revises, web browser record its html source code, with and numbering.
For the element of user's deletion, web browser records its numbering.
For example, the amended html source code of user is as follows:
Figure BDA00001602405900051
Figure BDA00001602405900061
User's content of edit is:
(1a) at the label<ul that numbers 2〉increase newly afterwards<li<a〉men's clothing figure</a〉</li 〉;
The label of (2a) deletion numbering 5<img src=" a.fig "/〉;
The text " Fig. 1 " of (3a) modification numbering 6 is text " women's dress figure ".
The content of web browser record is:
(1b) user the html source code<li of newly-increased element<a men's clothing figure</a</li, and element---the label<ul before should newly-increased element and number 2;
Perhaps record: the user the html source code<li of newly-increased element<a men's clothing figure</a</li, and element---the label<li after should newly-increased element and number 3.
(2b) numbering 6 of the element revised of user, and amended content " women's dress figure ".
(3b) numbering 5 of the element deleted of user.
Step S33, web browser only numbering that described editor's element is corresponding and/or the html source code of edit file transmit back the webserver, so that the webserver upgrades original html source code.
For the element that the user increases newly, the html source code (comprising two-end-point) between the existing element from this newly-increased element to record number, and the numbering of the existing element that records.
For the element that the user revises, the html source code of the element of this modification, with and numbering.
For the element of user's deletion, the numbering of the element of this deletion.
Continuation of the previous cases, web browser only return (1b), (2b) that records, html source code and the corresponding numbered transmission of (3b) to the webserver.The webserver increases newly accordingly, revises and/or delete original html source code according to the html source code and the numbering that receive, and preserves.
Continuation of the previous cases, for the html source code of (1b) part that receives, the webserver will increase element newly and replace the html source code of the existing element of the same numbering in original html source code to the html source code (comprising two-end-point) between the existing element of record number.
For the html source code of (2b) part that receives, the webserver is replaced the html source code of amended element the html source code of the existing element of the same numbering in original html source code.
For the html source code of (3b) part that receives, the html source code of the existing element with this numbering in the original html source code of webserver deletion.
This embodiment one is implying like this one deck implication: the webserver is understood the numbering of each element in the original html source code of this webpage when original html source code is carried out local updating.This can realize in the following manner, that is: the webserver also carries out unduplicated numbering to the element in the original html source code of this webpage, and the employing coding rule identical with web browser.
The corresponding online editing device with a kind of webpage of this embodiment one comprises:
Be used for to receive the device of html source code of the webpage of webserver transmission;
Be used for the element of the html source code that receives is carried out the device of unduplicated numbering;
Be used for resolving the html source code after numbering and the device of showing;
Be used for receiving the user to the edit instruction device of this webpage;
The numbering that the element of editing for recording user is corresponding and/or the device of edit file;
Be used for the numbering that described editor's element is corresponding and/or the html source code of edit file and transmit back the webserver, so that the described webserver upgrades the device of original html source code.
The numbering that the described element of editing for recording user is corresponding and/or the device of edit file further comprise:
The device of the numbering of at least one existing element at the html source code of the newly-increased element of record and the place ahead of this newly-increased element or rear;
The html source code of record modification element and the device that should revise the numbering of element;
The device of the numbering of record deletion element.
Described html source code for the numbering that described editor's element is corresponding and/or edit file transmits back the webserver, further comprises so that the described webserver upgrades the device of original html source code:
To the html source code between that existing element of record number, and the numbered transmission of the existing element that records is returned the device of the webserver with newly-increased element;
The numbered transmission of revising the html source code of element and this modification element is returned the device of the webserver;
The numbered transmission of deletion element is returned the device of the webserver.
See also Fig. 4, this is the embodiment two of the online editing method of the application's webpage, comprises the steps:
Step S41, the html source code of the webpage of web browser reception webserver transmission and the unduplicated numbering of the element in this html source code are resolved this html source code and show;
Step S42, S32 is identical with step;
Step S43, S33 is identical with step.
This embodiment two is implying one deck implication like this: the webserver had carried out unduplicated numbering to this html source code before the html source code of transmission webpage.The webserver is understood the numbering of each element in the original html source code of this webpage when original html source code is carried out local updating.This can realize by one of following dual mode.One, the webserver is stored each numbering after the element in the original html source code of webpage is carried out unduplicated numbering.Its two, the webserver is not stored numbering after the element in the original html source code of webpage is carried out unduplicated numbering; The webserver adopted identical coding rule again to number before original html source code is carried out local updating.
This embodiment two is corresponding online editing device with a kind of webpage also, be with the difference of the online editing device of webpage in embodiment one, will be for the device of the html source code of the webpage that receives webserver transmission, be used for the element of the html source code that receives is carried out the device of unduplicated numbering; Merge into: the device of unduplicated numbering that be used for to receive the element of the html source code of webpage of webserver transmission and this html source code.
The key distinction of above-mentioned two embodiment is that the main body that the element in the original html source code of webpage is numbered is different.
In the first embodiment, be that web browser and webserver both sides adopt identical coding rule, respectively the element in original html source code is numbered.Its advantage is farthest to have saved the network bandwidth, and shortcoming is that these two sections of web browser and the webservers are all wanted the consumption calculations resource.
In a second embodiment, or the identical coding rule of twice employing of the webserver, respectively the element in original html source code is numbered.Being when html source code is transferred to any before web browser for the first time, is for the second time when receiving any before transmitting the content of edit of returning of web browser.Its advantage is the computational resource of having saved web browser one end, also saved buffer memory and/or the storage resources of one section of the webserver, but consume network bandwidth is slightly large than the first embodiment, because needs are transferred to web browser together with numbering.
In a second embodiment, or the webserver only once the element in original html source code is numbered.Its advantage is the computational resource of having saved web browser one end, also saved the double counting resource of the webserver one end, but consume network bandwidth is slightly large than the first embodiment, and the webserver one end takies buffer memory and/or storage is larger than the second embodiment, because of needs buffer memory numbering.
With regard to counting yield, to the work that the element in original html source code is numbered, be placed on web browser one end and carry out, employing be the front end instruction that web browser can directly be carried out, for example JavaScript; Be placed on the webserver one end and carry out, employing be the rear end instruction that web browser is not directly carried out, such as Java, PHP .Net etc.The execution efficient of rear end instruction is higher.
With regard to the user experiences, to the work that the element in original html source code is numbered, all be placed on the webserver one end and carry out better.Thereby such speed of web browser of just can not slowing down.
The below provides a kind of concrete grammar that element in html source code is carried out unduplicated numbering:
(1c) increase an attribute in the label of html source code, the assignment of this attribute is the numbering of this label.
(2c) for the text in html source code, it must be between a pair of father's label.So-called father's label refers to a pair of beginning label and end-tag, and comprises the text between the two, and the most approaching with the front and back order of the text.
If only have the text between father's label of the text, the numbering with father's label of the text represents the text and his father's label simultaneously.
If (3c) between father's label of the text except the text, also have other elements, be generally other labels; For the text is close to newly-increased one or parcel pair of tag, before or after this newly-increased label can be close to the text; Before beginning label in this stick-on label is close to the text, after end-tag is close to the text.Increase the numbering of a numbering attribute representation text in newly-increased or stick-on label.
Above-mentioned (1c), (2c), (3c) operation are to number to the label of independent appearance; In label to paired appearance, the beginning label is to number, and end-tag is optional numbering.
After adopting the method to be numbered, section html source code of that in step S31 and numbering thereof just become:
Figure BDA00001602405900111
The numbering of elimid attribute representation label wherein,<text〉label be increase newly for text, be used for representing the label that is close to the text of numbering, " numbering 6 "<text label is exactly to be the stick-on label of text " Fig. 1 ".
Correspondingly, the described device that carries out unduplicated numbering for the element to the html source code that receives further comprises:
Be used for increasing at the label of html source code the device of the new attribute of its numbering of expression;
Be used for the text to html source code, between a pair of father's label element only being arranged, refer to simultaneously the device of the text and his father's label when it with the new attribute of the numbering of the expression in his father's label;
Be used for the text to html source code, when it is element between a pair of father's label, and also have other elements between this a pair of father's label, for the text is close to newly-increased one or parcel pair of tag, increase the device of new attribute of the numbering of an expression text in the label of newly-increased or parcel.
Preferably, the described device that carries out unduplicated numbering for the element to the html source code that receives further comprises:
For the device that must number the label of independent appearance;
Be used for the label of paired appearance is only limited the device that the beginning label must be numbered.
The above-mentioned concrete grammar that element in html source code is carried out unduplicated numbering can further be simplified:
(1d) increase an attribute in the label of html source code, the assignment of this attribute is the numbering of this label.
(2d) for the text in html source code is close to newly-increased one or parcel pair of tag, before or after this newly-increased label can be close to the text; Before beginning label in this stick-on label is close to the text, after end-tag is close to the text.Increase the numbering of a numbering attribute representation text in newly-increased or stick-on label.
Above-mentioned (1d), (2d) operation is to number to the label of independent appearance; In label to paired appearance, the beginning label is to number, and end-tag is optional numbering.
Correspondingly, the described device that carries out unduplicated numbering for the element to the html source code that receives further comprises:
Be used for increasing at the label of html source code the device of the new attribute of its numbering of expression;
Be used to the text in html source code to be close to newly-increased one or parcel pair of tag, the device of the new attribute of the numbering of its text that is close to of expression of increase in the label of newly-increased or parcel.
Preferably, the described device that carries out unduplicated numbering for the element to the html source code that receives further comprises:
For the device that must number the label of independent appearance;
Be used for the label of paired appearance is only limited the device that the beginning label must be numbered.
After adopting above-mentioned two kinds of method for numbering serial, the webserver just is embodied as the local updating of html source code:
(1e) for receive from newly-increased element to the html source code (comprising two-end-point) between the existing element of record number, and the numbering of the existing element that records;
The existing element of finding institute's record number when the webserver is that in paired label (or beginning label wherein) and this paired label, (or after beginning label wherein and before end-tag) only has text; The webserver will increase element is replaced the existing element of the same numbering in the original html source code of this webpage and text (or wherein beginning label and subsequent text) wherein to the html source code (comprising two-end-point) between the existing element of record number html source code newly.
Finding the existing element of institute's record number when the webserver is that in paired label (or beginning label wherein) and this paired label, (or after beginning label wherein and before end-tag) also has other elements except text, and the webserver will increase element is replaced the existing element of the same numbering in the original html source code of this webpage to the html source code (comprising two-end-point) between the existing element of record number html source code newly.
Finding the existing element of institute's record number when the webserver is single label (label that namely occurs separately), and the webserver will increase element is replaced the existing element of the same numbering in the original html source code of this webpage to the html source code (comprising two-end-point) between the existing element of record number html source code newly.
This embodiment in fact only is numbered the label in html source code, and text is not numbered, thereby top three kinds of all scenarios that judged limit.
(2e) for the html source code of the element of the modification that receives, with and numbering;
Finding the element of this modification when the webserver is that in paired label (or beginning label wherein) and this paired label, (or after beginning label wherein and before end-tag) only has text, and the html source code of the element that will revise of the webserver is replaced the existing element of the same numbering in the original html source code of this webpage and the html source code of text (or wherein beginning label and subsequent text) wherein.
Finding the element of this modification when the webserver is that in paired label (or beginning label wherein) and this paired label, (or after beginning label wherein and before end-tag) also has other elements except text, and the html source code of the element that will revise of the webserver is replaced the html source code of the existing element of the same numbering in the original html source code of this webpage.
Finding the element of this modification when the webserver is single label, and the html source code of the element that will revise of the webserver is replaced the html source code of the existing element of the same numbering in the original html source code of this webpage.
This embodiment in fact only is numbered the label in html source code, and text is not numbered, thereby top three kinds of all scenarios that judged limit.
(3e) for the numbering of the element of the deletion that receives;
Finding the element of this deletion when the webserver is that in paired label (or beginning label wherein) and this paired label, (or after beginning label wherein and before end-tag) only has text, and the webserver is deleted the html source code of the existing element of the same numbering in original html source code and text (or wherein beginning label and subsequent text) wherein.
Finding the element of this deletion when the webserver is that in paired label (or beginning label wherein) and this paired label, (or after beginning label wherein and before end-tag) also has other elements except text, and the webserver is deleted the html source code of the existing element of the same numbering in the original html source code of this webpage.
Finding the element of this deletion when the webserver is single label, and the webserver is deleted the html source code of the existing element of the same numbering in the original html source code of this webpage.
This embodiment in fact only is numbered the label in html source code, and text is not numbered, thereby top three kinds of all scenarios that judged limit.
Above-mentioned two kinds of concrete grammars that the element in html source code is numbered, the webserver can be communicated with numbering and preserve together when preserving html source code, also can remove numbering and only keep conventional html source code.
The embodiment of the present application can or configure with other universal or special calculating or communication environment and operate.The example that is applicable to the application's well-known computing system, environment and configuration includes but not limited to, personal computer, server, multicomputer system, the system based on little processing, minicomputer, mainframe computer and the distributed computing environment that comprises arbitrary said system or equipment.Certainly the embodiment of the present application also can realize by software.
These are only the application's preferred embodiment, and be not used in restriction the application.For a person skilled in the art, the application can have various modifications and variations.All within the application's spirit and principle, any modification of doing, be equal to replacement, improvement etc., within all should being included in the application's protection domain.

Claims (14)

1. the online editing method of a webpage, is characterized in that, comprises the steps:
In the 1st step, web browser receives the html source code of the webpage of webserver transmission, and the element in this html source code is carried out unduplicated numbering, resolves this html source code and shows;
In the 2nd step, web browser receives the user to the edit instruction of this webpage, and record editor's corresponding numbering and/or the edit file of element;
In the 3rd step, web browser only numbering that described editor's element is corresponding and/or the html source code of edit file transmit back the webserver, so that the original html source code of described webserver renewal.
2. the online editing method of webpage according to claim 1, is characterized in that, described method is in the 2nd step, and the content of web browser record comprises:
For newly-increased element, its html source code, with and the numbering of at least one existing element at the place ahead or rear;
For the element of revising, its html source code, with and numbering;
For the element of deletion, its numbering.
3. the online editing method of webpage according to claim 2, is characterized in that, described method is in the 3rd step, and the content of web browser transmission comprises:
For newly-increased element, the html source code between that the existing element from this newly-increased element to record number, and the numbering of the existing element that records;
For the element of revising, its html source code, with and numbering;
For the element of deletion, its numbering.
4. the online editing method of webpage according to claim 1, it is characterized in that, described the 1st step of method changes into: the html source code of the webpage of web browser reception webserver transmission and the unduplicated numbering of the element in this html source code, and resolve this html source code and show.
5. the online editing method of according to claim 1 or 4 described webpages, is characterized in that, the described method that element in the html source code of webpage is carried out unduplicated numbering is:
Increase the new attribute of its numbering of expression in the label of html source code;
For the text in html source code, for element only being arranged between a pair of father's label, the new attribute with the numbering of the expression in his father's label refers to the text and his father's label simultaneously when it;
For the text in html source code, when it is element between a pair of father's label, and also have other elements between this a pair of father's label, for the text is close to newly-increased one or parcel pair of tag, increase the new attribute of the numbering of an expression text in the label of newly-increased or parcel.
6. the online editing method of according to claim 1 or 4 described webpages, is characterized in that, the described method that element in the html source code of webpage is carried out unduplicated numbering is:
Increase the new attribute of its numbering of expression in the label of html source code;
For the text in html source code is close to newly-increased one or parcel pair of tag, increase the new attribute of the numbering of its text that is close to of expression in the label of newly-increased or parcel.
7. the online editing method of according to claim 1 or 4 described webpages, is characterized in that, and is described when the element in the html source code of webpage is carried out unduplicated numbering, must number the label of independent appearance; The label of paired appearance is only limited the beginning label must number.
8. the online editing device of a webpage, is characterized in that, comprising:
Be used for to receive the device of html source code of the webpage of webserver transmission;
Be used for the element of the html source code that receives is carried out the device of unduplicated numbering;
Be used for resolving the html source code after numbering and the device of showing;
Be used for receiving the user to the edit instruction device of this webpage;
The numbering that the element of editing for recording user is corresponding and/or the device of edit file;
Be used for the numbering that described editor's element is corresponding and/or the html source code of edit file and transmit back the webserver, so that the described webserver upgrades the device of original html source code.
9. the online editing device of webpage according to claim 8, is characterized in that, the numbering that the described element of editing for recording user is corresponding and/or the device of edit file further comprise:
The device of the numbering of at least one existing element at the html source code of the newly-increased element of record and the place ahead of this newly-increased element or rear;
The html source code of record modification element and the device that should revise the numbering of element;
The device of the numbering of record deletion element.
10. the online editing device of webpage according to claim 8, it is characterized in that, described html source code for the numbering that described editor's element is corresponding and/or edit file transmits back the webserver, further comprises so that the described webserver upgrades the device of original html source code:
To the html source code between that existing element of record number, and the numbered transmission of the existing element that records is returned the device of the webserver with newly-increased element;
The numbered transmission of revising the html source code of element and this modification element is returned the device of the webserver;
The numbered transmission of deletion element is returned the device of the webserver.
11. the online editing device of webpage according to claim 8 is characterized in that, the device of the html source code of described webpage for receiving webserver transmission; And
Be used for the element of the html source code that receives is carried out the device of unduplicated numbering;
Merge into:
Be used for to receive the device of unduplicated numbering of the element of the html source code of webpage of webserver transmission and this html source code.
12. the online editing device of webpage according to claim 8 is characterized in that, the described device that carries out unduplicated numbering for the element to the html source code that receives further comprises:
Be used for increasing at the label of html source code the device of the new attribute of its numbering of expression;
Be used for the text to html source code, between a pair of father's label element only being arranged, refer to simultaneously the device of the text and his father's label when it with the new attribute of the numbering of the expression in his father's label;
Be used for the text to html source code, when it is element between a pair of father's label, and also have other elements between this a pair of father's label, for the text is close to newly-increased one or parcel pair of tag, increase the device of new attribute of the numbering of an expression text in the label of newly-increased or parcel.
13. the online editing device of webpage according to claim 8 is characterized in that, the described device that carries out unduplicated numbering for the element to the html source code that receives further comprises:
Be used for increasing at the label of html source code the device of the new attribute of its numbering of expression;
Be used to the text in html source code to be close to newly-increased one or parcel pair of tag, the device of the new attribute of the numbering of its text that is close to of expression of increase in the label of newly-increased or parcel.
14. the online editing device of webpage according to claim 8 is characterized in that, the described device that carries out unduplicated numbering for the element to the html source code that receives further comprises:
For the device that must number the label of independent appearance;
Be used for the label of paired appearance is only limited the device that the beginning label must be numbered.
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 true CN103383691A (en) 2013-11-06
CN103383691B 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)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103870955A (en) * 2014-03-24 2014-06-18 小米科技有限责任公司 Processing method and device for data in webpage
CN104714989A (en) * 2013-12-12 2015-06-17 南宁市磁汇科技有限公司 Method for dynamically storing and visually editing WEB page in browser
CN104714993A (en) * 2013-12-12 2015-06-17 南宁市磁汇科技有限公司 Method for conducting real-time property editing on rolling object
CN105022757A (en) * 2014-04-29 2015-11-04 腾讯科技(深圳)有限公司 Webpage revision method and webpage revision device
CN108170425A (en) * 2017-12-29 2018-06-15 东莞市高标软件科技有限公司 A kind of amending method of program code, modification device and terminal device
CN110045955A (en) * 2018-01-17 2019-07-23 北京视联动力国际信息技术有限公司 A kind of edit methods 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 (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080072164A1 (en) * 2004-06-24 2008-03-20 Heeseob Park 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
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

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080072164A1 (en) * 2004-06-24 2008-03-20 Heeseob Park 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
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构造的基于浏览器的在线网页编辑器", 《山东煤炭科技》, no. 3, 15 June 2007 (2007-06-15) *

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104714989A (en) * 2013-12-12 2015-06-17 南宁市磁汇科技有限公司 Method for dynamically storing and visually editing WEB page in browser
CN104714993A (en) * 2013-12-12 2015-06-17 南宁市磁汇科技有限公司 Method for conducting real-time property editing on rolling object
CN103870955A (en) * 2014-03-24 2014-06-18 小米科技有限责任公司 Processing method and device for data in webpage
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
CN108170425A (en) * 2017-12-29 2018-06-15 东莞市高标软件科技有限公司 A kind of amending method of program code, modification device and terminal device
CN108170425B (en) * 2017-12-29 2021-03-19 东莞市高标软件科技有限公司 Program code modification method and device and terminal equipment
CN110045955A (en) * 2018-01-17 2019-07-23 北京视联动力国际信息技术有限公司 A kind of edit methods and device
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

Also Published As

Publication number Publication date
CN103383691B (en) 2017-03-01

Similar Documents

Publication Publication Date Title
CN103383691A (en) Webpage online editing method and device
CN108399256B (en) Heterogeneous database content synchronization method and device and middleware
CN102663023B (en) Implementation method for extracting web content
JP6488508B2 (en) Web page access method, apparatus, device, and program
CN102799573B (en) Method and system for annotating webpage
US8935364B2 (en) Method, apparatus, and program for supporting creation and management of metadata for correcting problem in dynamic web application
US20130073536A1 (en) Indexing of urls with fragments
CN108572819A (en) Method for updating pages, device, terminal and computer readable storage medium
CN108762743B (en) Data table operation code generation method and device
US20150302110A1 (en) Decoupling front end and back end pages using tags
CN103389895A (en) Method and system for generating front end page
US9514115B2 (en) Method for creating form validation program and corresponding form interface according to result set metadata
CN109522018A (en) Page processing method, device and storage medium
CN110351325B (en) Data processing method and related equipment
CN105354237A (en) Business data display method
US20200401646A1 (en) Method for facilitating identification of navigation regions in a web page based on document object model analysis
US20160072927A1 (en) Odata enabled mobile software applications
CN108399072A (en) Five application page update method and device
US20170111431A1 (en) Methods for transforming a server side template into a client side template and devices thereof
CN110750254A (en) Flowchart editor implementation method based on Angular
CN104881490A (en) WEB form data access method and system
JP2007034571A (en) Document processing program and document processing method
US10956658B2 (en) Digital content editing of a document object model (DOM) based on object model comparison
CN114398138A (en) Interface generation method and device, computer equipment and storage medium
CN112783482B (en) Visual form generation method, device, equipment and storage medium

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