CN105808628A - Webpage transcoding method, apparatus and system - Google Patents

Webpage transcoding method, apparatus and system Download PDF

Info

Publication number
CN105808628A
CN105808628A CN201410857519.1A CN201410857519A CN105808628A CN 105808628 A CN105808628 A CN 105808628A CN 201410857519 A CN201410857519 A CN 201410857519A CN 105808628 A CN105808628 A CN 105808628A
Authority
CN
China
Prior art keywords
control data
new
transcoding
web page
former
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
CN201410857519.1A
Other languages
Chinese (zh)
Other versions
CN105808628B (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 China Co Ltd
Original Assignee
Guangzhou Dongjing Computer Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Dongjing Computer Technology Co Ltd filed Critical Guangzhou Dongjing Computer Technology Co Ltd
Priority to CN201410857519.1A priority Critical patent/CN105808628B/en
Publication of CN105808628A publication Critical patent/CN105808628A/en
Application granted granted Critical
Publication of CN105808628B publication Critical patent/CN105808628B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a webpage transcoding method, apparatus and system. The method comprises the steps of receiving a control data update request sent by a client; obtaining original control data from a pre-loaded original webpage; updating the original control data to new control data stored in a preset form and submitting a new webpage access request corresponding to the new control data to a webpage server; transcoding a new webpage; and sending the transcoded new webpage to the client. Compared with the prior art, the method, apparatus and system have the advantages that by the technical scheme provided by embodiments of the invention, the updated data in a control can be transcoded during transcoding and is synchronously displayed at the client, so that the transcoding effect is perfecter and the user experience can be improved.

Description

Webpage code-transferring method, Apparatus and system
Technical field
The present invention relates to mobile communication technology field, more specifically, relate to a kind of webpage code-transferring method, Apparatus and system.
Background technology
Along with the development of information age, the function of intelligent terminal is also more and more perfect, it is possible to meets people and browses webpage, Query Information whenever and wherever possible and download the demand of file etc..But, owing to the interface dimensions of intelligent terminal and the interface dimensions of computer differ greatly, if webpage shows on intelligent terminal interface with size and the pattern of display normal on computer interface, web page contents then can be caused clearly to show, if web page contents amplifies display on intelligent terminal interface, then web page contents cannot completely show.Therefore, webpage needs transcoding before showing on intelligent terminal interface, by former Webpage again imposition layout, converts the page that normally can show on intelligent terminal interface to.
When existing transcoding server carries out webpage transcoding, first the source code of former webpage is downloaded from web page server, it is modified the DOM (DocumentObjectModel of source code, document dbject model) structure and chained address change pattern and the structure of former webpage, then showing as on the intelligent terminal of client.When user accesses the link in webpage intelligent terminal, transcoding server receives intelligent terminal and accesses the solicited message of this link, and solicited message is converted to the address of the corresponding former webpage of link, and this address is sent to corresponding server, after transcoding server receives the former webpage that link is corresponding, the former webpage that link is corresponding is carried out transcoding, is then forwarded to intelligent terminal and displays.
Same, when webpage includes control, for instance, the input frame of Baidu, after user inputs " wikipedia ", it is necessary to sends request by transcoding server to Baidu's server, and displays after search and webpage transcoding.But, transcoding server is when transcoding, control is not modified, therefore the data that user in control updates cannot be carried out synchronized update, causing in Baidu's input frame of shown search and webpage cannot " wikipedia " printed words of simultaneous display user input, cause transcoding effect imperfection, poor user experience.
Summary of the invention
In view of this, the embodiment of the present invention provide webpage code-transferring method, Apparatus and system, it is possible to when transcoding, the data updated in control are updated, and show at client synchronization such that it is able to make transcoding effect more perfect, raising Consumer's Experience.
First aspect, embodiments provides a kind of webpage code-transferring method, including: the control data receiving client transmission is more newly requested, and the more newly requested storage including being pre-created of described control data has the default list of new control data;Former control data is obtained from the former webpage of prestrain;Described former control data is updated in described default list the new control data of storage, and new web page access request corresponding for described new control data is submitted to web page server;After the new web page that the described new control data receiving the transmission of described web page server is corresponding, described new web page is carried out transcoding;Described new web page after transcoding is sent to described client.
In the first possible implementation of first aspect, after described former control data is updated in described default list the new control data of storage, before described new web page is carried out transcoding, also include: search from described new web page and there is the control clicking element, obtain the current control data of described control;New position mark is added for described control;Described new position mark, described current control data correspondence are stored in the new table created.
In conjunction with above-mentioned first aspect or the first possible implementation of first aspect, in the implementation that the second is possible, before the control data receiving client transmission is more newly requested, described method also includes: load described former webpage;Search from described former webpage and there is the control clicking element, and obtain the former control data of described control;For described control point of addition labelling;Described position mark, described former control data correspondence are stored in the default list created.
Second aspect, the embodiment of the present invention additionally provides another kind of webpage code-transferring method, including: client receives the new control data of user's input;Described new control data is stored in the default list that transcoding server creates;The control data including described default list is generated more newly requested according to preset rules;By more newly requested for described control data transmission to described transcoding server, by described transcoding server by the described new control data that is updated to of former control data, and new web page corresponding for described new control data is carried out transcoding;Receive the new web page after the transcoding that described transcoding server sends.
In the first possible implementation of second aspect, in the described default list that described new control data is stored in transcoding server establishment, including: search control according to the position mark of described default list internal memory storage;Obtain the current control data of described control;When described current control data are different from the control data that corresponding described position mark in described default list stores, described current control data are write described default list as described new control data.
The third aspect, the embodiment of the present invention additionally provides another kind of webpage code-transferring method, including: client receives the new control data of user's input;Described new control data is stored in the default list that transcoding server creates;The control data including described default list is generated more newly requested according to preset rules;By more newly requested for the described control data described transcoding server of transmission;Described transcoding server receive described control data more newly requested after, from the former webpage of prestrain, obtain former control data;Described former control data is updated in described default list the new control data of storage, and new web page access request corresponding for described new control data is submitted to web page server;Described new web page, after the new web page that the described new control data receiving the transmission of described web page server is corresponding, is carried out transcoding by described transcoding server;Described new web page after transcoding is sent to described client;Described client receives described new web page and displays.
Fourth aspect, the embodiment of the present invention additionally provides a kind of webpage transcoding device, including: receiving unit, the control data for receiving client transmission is more newly requested, and the more newly requested storage including being pre-created of described control data has the default list of new control data;Acquiring unit, for obtaining former control data from the former webpage of prestrain;Updating block, is updated in described default list the new control data of storage for the former control data that obtained by described acquiring unit, and new web page access request corresponding for described new control data is submitted to web page server;Transcoding units, after the new web page corresponding at the described new control data receiving the transmission of described web page server, carries out transcoding by described new web page;Transmitting element, for sending the new web page after described transcoding units transcoding to described client.
In the first possible implementation of fourth aspect, also include: search unit, for searching from described former webpage, there is the control clicking element, and obtain the current control data of described control;Indexing unit, for adding new position mark for described control;Memory element, for being stored in the position mark of described indexing unit institute labelling, described current control data correspondence in the new table created.
In conjunction with above-mentioned fourth aspect or the first possible implementation of fourth aspect, in the implementation that the second is possible, also include: loading unit: be used for loading described former webpage;Described lookup unit, is additionally operable to from described former webpage and searches the control with click element, and obtain the former control data of described control;Described indexing unit, is additionally operable to as described control point of addition labelling;Described memory element, is additionally operable to be stored in the default list created described position mark, described former control data correspondence.
5th aspect, the embodiment of the present invention additionally provides another kind of webpage transcoding device, including: first receives unit, for receiving the new control data of user's input;Memory element, for being stored in described new control data in the default list that transcoding server creates;Generate unit, more newly requested for generating, according to preset rules, the control data including described default list;Transmitting element, for by more newly requested for described control data transmission to described transcoding server, by described transcoding server by the described new control data that is updated to of former control data, and by new web page corresponding to described new control data carry out transcoding;Second receives unit, is used for the new web page after receiving the transcoding that described transcoding server sends.
In the first possible implementation in the 5th, described memory element includes searching module, acquisition module and writing module, and wherein, described lookup module, for searching control according to the position mark of described default list internal memory storage;Described acquisition module, for obtaining the current control data of the control that described lookup module searches arrives;Said write module, for when described current control data are different from the control data that corresponding described position mark in described default list stores, writing described default list using described current control data as described new control data.
6th aspect, the embodiment of the present invention additionally provides another kind of webpage trans-coding system, including: transcoding server and client, wherein, described transcoding server, control data for receiving client transmission is more newly requested, and the more newly requested storage including being pre-created of described control data has the default list of new control data;Former control data is obtained from the former webpage of prestrain;Described former control data is updated in described default list the new control data of storage, and new web page access request corresponding for described new control data is submitted to web page server;After the new web page that the described new control data receiving the transmission of described web page server is corresponding, described new web page is carried out transcoding;Described new web page after transcoding is sent to described client;Described client, for receiving the new control data of user's input;Described new control data is stored in the default list that transcoding server creates;The control data including described default list is generated more newly requested according to preset rules;By more newly requested for described control data transmission to described transcoding server, by described transcoding server by the described new control data that is updated to of former control data, and by new web page corresponding to described new control data carry out transcoding;Receive the new web page after the transcoding that described transcoding server sends.
From above technical scheme, the webpage code-transferring method that the embodiment of the present invention provides, Apparatus and system, transcoding server receive client send control data more newly requested after, from default list, stored new control data is read out, former control data is updated to new control data, and the request comprising new control data is submitted to web page server, making the control data in the response message that web page server sends is new control data, ensure that the response message received by transcoding server is to comprise the info web of new control data, it is thus possible to the data updated in control are carried out transcoding when transcoding, and show at client synchronization, make transcoding effect more perfect, Consumer's Experience can be improved.
Accompanying drawing explanation
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, the accompanying drawing used required in embodiment will be briefly described below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the premise not paying creative work, it is also possible to obtain other accompanying drawing according to these accompanying drawings.Shown in accompanying drawing, above-mentioned and other purpose, feature and the advantage of the present invention will become apparent from.The part that accompanying drawing labelling instruction identical in whole accompanying drawings is identical.Deliberately do not draw accompanying drawing by actual size equal proportion convergent-divergent, it is preferred that emphasis is the purport of the present invention is shown.
The method flow diagram of the webpage code-transferring method that Fig. 1 provides for the embodiment of the present invention;
The method flow diagram of the second embodiment of the webpage code-transferring method that Fig. 2 provides for the embodiment of the present invention;
The method flow diagram of the third embodiment of the webpage code-transferring method that Fig. 3 provides for the embodiment of the present invention;
Fig. 4 is the showing interface figure of the first example provided by the invention;
Fig. 5 is the showing interface figure of the second example provided by the invention;
The structural representation of the webpage transcoding device that Fig. 6 provides for the embodiment of the present invention;
The second embodiment structural representation of the webpage transcoding device that Fig. 7 provides for the embodiment of the present invention;
The structural representation of the webpage trans-coding system that Fig. 8 provides for the embodiment of the present invention.
Detailed description of the invention
Generally, it is structure and the pattern that the DOM structure by changing in source code and link shape change former webpage that webpage carries out transcoding, the purpose of transcoding is to ensure that webpage rationally can show on intelligent terminal, therefore, the data of control in webpage are not carried out any operation, thus cause cannot simultaneous display in data that user inputs in the control webpage after transcoding.In order to solve this technical problem, it is proposed that the technical scheme of the embodiment of the present invention.
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete description, it is clear that described embodiment is only a part of embodiment of the present invention, rather than whole embodiments.Based on the embodiment in the present invention, the every other embodiment that those of ordinary skill in the art obtain under not making creative work premise, broadly fall into the scope of protection of the invention.
Referring to the method flow diagram of the webpage code-transferring method that Fig. 1, Fig. 1 provide for the embodiment of the present invention, described method comprises the steps:
Step S101: the control data receiving client transmission is more newly requested.
Wherein, client before sending control data and be more newly requested to transcoding server, and client must have accessed former webpage.During the former webpage of client-access, former web access requests is sent to transcoding server, after transcoding server receives former web access requests, parse the URL (UniformResoureLocator of former webpage, uniform resource locator), and send request according to this URL to former web page server, the source code of former webpage is sent to transcoding server by the request of former web page server response transcoding server, source code described in the embodiment of the present invention, for adding, according to the structure of former webpage, the source code that the former webpage set out is corresponding with pattern, in embodiments of the present invention also referred to as former webpage.
In order to user to after input data in the control of former webpage, new data in control can be updated at transcoding server end, after transcoding server receives the source code that former web page server sends, lookup can be updated the control of data, the control that can be updated data found is carried out labelling, obtains former control data simultaneously.Create in the DOM that a hiding default list inserts source code, be stored in default list by corresponding with former control data for labelling, in order to preset list and judge whether the data in control exist renewal.Then, the former web page source code through above-mentioned process is carried out transcoding by transcoding server again, and sends to client.
It should be noted that the control that can be updated data typically requires the renewal by clicking trigger control data, therefore, the embodiment of the present invention will have the control clicking element as the control that can be updated data.In the present embodiment, having the control that the control clicking element can be Input type, Textarea type or Select type, the embodiment of the present invention is without limitation.
Additionally, in the embodiment of the present invention, increase new attribute by the control for having click element and carry out labelling, for instance, increase shenma_update attribute for control, it is of course also possible to be other mark mode, the embodiment of the present invention is without limitation.Wherein, arranging the purpose of labelling for control is when control data updates, it is simple to preset table single according to label lookup to the control that can be updated data, therefore, the embodiment of the present invention is by the position mark of this labelling called after control.
When former webpage is opened in client, after user inputs new control data in control, it is more newly requested that client generates control data, and by more newly requested for the control data transcoding server that is sent to, and the new control data of user's input is stored in advance in default list.
Step S102: obtain former control data from the former webpage of prestrain.
Wherein, transcoding server receive control data that client sends more newly requested after, resolve this solicited message, from being included in solicited message and preset list reading the control data that makes new advances.Certainly, owing to now transcoding server there is no the source code of former webpage, former control data cannot be learnt, therefore, when resolving control data and being more newly requested, in addition it is also necessary to parsed by the URL of former webpage, and send the request accessing former webpage to former web page server, load former webpage according to the response message that the former web page server received sends, from former webpage, then obtain former control data.
It should be noted that the process that this step transit code server loads former webpage is identical with above-mentioned steps, the embodiment of the present invention repeats no more.
Step S103: former control data is updated in default list the new control data of storage, and new web page access request corresponding for new control data is submitted to web page server.
Wherein, transcoding server is after getting former webpage and former control data, the former control data of this control is updated to new control data, so that transcoding server is according to auto-building html files access request after control data renewal, this access request is the access request of the new web page corresponding to new control data.
It may be noted that, part is with the webpage of control, after user input data, before server submission, also the information of user's input can be audited, if the information of user's input meets pre-conditioned, then webpage corresponding to user input data is submitted to server, if the information of user's input does not meet pre-conditioned, then directly return and do not meet pre-conditioned prompting.Such as, Baidu's input control inputs one section of ID (identity number) card No., then will be considered that this querying condition relates to individual privacy information, it is impossible to inquiry.Therefore, if new web page has the function of examination & verification, then, before the access request of new web page is submitted to by transcoding server to server, also include auditing new control data.Certainly, if new web page does not have the function of examination & verification, then new web page is not audited, direct submitted values server.
Step S104: new web page is carried out transcoding.
Wherein, owing to above-mentioned steps is to send the new web page access request corresponding to new control data to server, therefore, in this step, what transcoding server received should be the code information of new web page.And the new web page access request that transcoding server sends is the new web page corresponding to new control data, therefore, for new control data in the new web page control that transcoding server receives, even across transcoding server transcoding, new control data still can be synchronized to client, transcoding better effects if.
Additionally, due to new web page acquired in this step is acquired from new web page server, therefore, it is absent from hiding list, after opening in client, if user input data, still the data that user inputs cannot be updated and simultaneous display.Therefore, before new web page is carried out transcoding by transcoding server, should be also new web page has the control clicking element arrange new position mark again, and insert new table, and be stored in corresponding with new position mark for control data current for new web page in new table.Wherein, adding new position mark identical with the process of above-mentioned point of addition labelling, create new table process identical with creating the process presetting list, the present invention repeats no more herein.
Step S105: the new web page after transcoding is sent to client.
Wherein, owing to the new web page control that transcoder receives being new control data, and in transcoding process, control data is not processed, therefore, it is still that new control data shown by the new web page after transcoding so that new control data can show at client synchronization.
It should be noted that when user again inputs other new datas in the new web page shown by client, the processing procedure of transcoding server is identical with foregoing description, and the present invention repeats no more herein.
From the description of the present embodiment, transcoding server is before by webpage transcoding, a hiding list is inserted in advance in former webpage, after user inputs data in control, these data are stored in hiding list, and be sent to transcoding server and carry out control data renewal, thus the data that user inputs are carried out simultaneous display.
The technical scheme of the embodiment of the present invention is described by above-described embodiment by describing the action of transcoding server, and the execution process of list after user input data is not done detailed statement.In conjunction with above-described embodiment, the technical scheme of the embodiment of the present invention is illustrated by the present embodiment by describing the action of client.
Referring to the method flow diagram of the second embodiment of the webpage code-transferring method that Fig. 2, Fig. 2 provide for the embodiment of the present invention, described method comprises the steps:
Step S201: client receives the new control data of user's input.
Wherein, the former webpage shown by client is when transcoding, and the control of updatable data has been provided with position mark by transcoding server, and has created a hiding default list, and in this default list, storage has the position mark of control and former control data.
When user inputs data in former webpage control, and after click corresponding operation button, trigger the data presetting list collection user's input, to store in default list by the data that user inputs, at transcoding server end by control data renewal.
Step S202: new control data is stored in the default list that transcoding server creates.
Wherein, according to above-described embodiment it can be seen that preset corresponding storage in list have the position mark of former control and former control data.After default list receives the data acquisition command of user's input, each control is traveled through according to the position mark prestored, after often finding a control, read the current control data of this control, and the current control data read are compared to stored corresponding control data, judge whether identical, if current control data are different from the control data stored, current control data are stored as new control data.Certainly, when storage, corresponding storage is still carried out with corresponding position relationship.
Concrete, if the control of input type, then whether the input value that contrast control has stored is identical with current input value, if it is different, then stored as newly inputted value by current input value;When for the control of Selective type, it is judged that whether the selection index value of control changes, and when changing, is stored by current selection index value.Certainly, also including other kinds of control, its data acquisition modes is similar with aforesaid way, and the embodiment of the present invention repeats no more herein.
Step S203: generate, according to preset rules, the control data including default list more newly requested.
Wherein, in order to preset table single-shot is delivered to transcoding server, the solicited message that client sends meets certain call format so that control data is more newly requested can not only comprise default list, the more newly requested mark of control can also be comprised, and need the station location marker of the more control of new data.
In a preferred embodiment of the invention, the more newly requested form of control data is POST (PowerOnSelfTest, power-on self-test) type, particularly as follows: control data more newly requested=URL coding after the list former submission more newly requested mark of address properties control clicked control mark.Use POST type request, form data is stored in POST data storehouse, when transcoding server receive control data more newly requested after, directly according to request instruction read POST data storehouse, new control data is read out.
Step S204: by more newly requested for control data transmission to transcoding server.
Wherein, transcoding server receive control data more newly requested after, by the described new control data that is updated to of former control data, and by new web page corresponding to described new control data carry out transcoding, and the new web page after transcoding is sent to client.Detailed process refers to the description of above-described embodiment, and the present invention repeats no more herein.
Step S205: receive the new web page after the transcoding that transcoding server sends.
Receiving the new web page that transcoding server sends, owing to transcoding server is that the new web page comprising new control data is carried out transcoding, therefore, shown by the new web page that client receives is new control data.When user again inputs other new control data in the control of new web page, the execution process of client is same as described above, and the present invention repeats no more herein.
In the present embodiment, after client receives new control data, preset list and new control data is acquired, and be sent to transcoding server in company with control data is more newly requested, so that new control data can be carried out synchronized update by transcoding server, improve transcoding effect.
Seen from the above description, the present invention is cooperated realization by transcoding server and client, and above-mentioned two embodiments are described from transcoding server and client respectively, in order to make technical scheme clearly, technical solution of the present invention is illustrated by the angle that the present embodiment is cooperated by two ends.Owing to the present embodiment is that therefore, the part not being described in detail in the present embodiment refers to foregoing description, and the present embodiment repeats no more in conjunction with supplementing that above-described embodiment carries out.
The method flow diagram of the third embodiment of the webpage code-transferring method provided for the embodiment of the present invention referring to Fig. 3, Fig. 3, the method for this enforcement comprises the steps:
Step S301: client receives the new control data of user's input.
Wherein, in order to make the clearly detailed understanding technical scheme of those skilled in the art, the present embodiment is described in conjunction with a concrete example.
In the present embodiment, for the webpage of train ticket inquiry, referring to Fig. 4, for the former web interface display figure of the webpage that train ticket provided by the invention is inquired about, client is smart mobile phone.Wherein, former webpage includes the control of control 01, control 02 and 03 3 updatable datas of control.When transcoding server carries out transcoding, after having loaded former webpage, the code corresponding for above-mentioned control arranges labelling, in the present embodiment, it is that control adds mark by adding shenma_update attribute for control, and in former webpage DOM node, inserting hiding list, this hiding list is the default list described in the present embodiment.Respectively by the labelling of control 01, control 02 and control 03 and and correspondence be saved in hiding list.In the present embodiment, the former control data of control 01, control 02 and control 03 is 0.
In the present embodiment, user inputs station name and the date of oneself contact, inputs " Beijing ", inputs " Shanghai " in control 02, input " on October 1st, 2014 " in control 03 in control 01.
Step S302: new control data is stored in the default list that transcoding server creates.
When user is after control 01, control 02 and control 03 have inputted respectively, button click " remaining ticket inquiry ", triggers the new data hidden in list collection control 01, control 02 and control 03.
Hide list and travel through each control by searching the mode of the control with shenma_update attribute, for control 01, after hiding list finds control 01 according to shenma_update attribute, the data " Beijing " that read control 01 is currently entered, then compare with stored 0, owing to " Beijing " is different from 0, it is judged that there are data in space 01 and update, " Beijing " correspondence is stored in the relevant position of control 01, completes the storage of the new control data in space 01.Control 02 is identical with control O1 with data storage procedure in control 03, repeats no more herein.
Step S303: generate, according to preset rules, the control data including default list more newly requested.
Wherein, it is more newly requested that remaining ticket inquiry request is generated POST type requests control data by the present embodiment, concrete, this request includes the URL address of former webpage, the mark of the more newly requested mark of control and " remaining ticket inquiry ", and by control 01, control 02 and control 03 labelling and more new data be stored in POST data storehouse.
Step S304: be sent to transcoding server by more newly requested for control data.
Step S305: transcoding server obtains former control data from the former webpage of prestrain.
After transcoding server receives remaining ticket inquiry request, loading the webpage of train ticket inquiry according to URL, and read according to by control 01, control 02 and control 03 Central Plains control data, wherein, the former data of control 01, control 02 and control 03 are 0.In this step, update corresponding to control 01, control 02 and control 03, namely input " Beijing " at control 01, in control 02, input " Shanghai ", in control 03, input " on October 1st, 2014 ".
Step S306: former control data is updated in default list the new control data of storage, and new web page access request corresponding for new control data is submitted to web page server.
After data in control 01, control 02 and control 03 are updated by transcoding server, the control that " remaining ticket inquiry " is corresponding is clicked in simulation, thus sending remaining ticket inquiry request to web page server.
Step S307: after transcoding server receives new web page, carries out transcoding by new web page.
After the web page server that remaining ticket inquiry request is sent by transcoding server, web page server responds this request and sends " remaining poll component analysis " web page source code.Now, in order to input other contacts next time user station name and date time, it also is able to data synchronization updating user inputted, transcoding server is before transcoding, in this case control 01, control 02 and control 03 arrange labelling, it is inserted simultaneously into new table, now the data respectively " Beijing " of storage, " Shang number " and " on October 1st, 2014 " in new table.
Step S308: the described new web page after transcoding is sent to described client.
Step S309: client receives described new web page and displays.
Transcoding server displays sending after " remaining poll component analysis " webpage transcoding to mobile phone terminal, as shown in Figure 5, for the showing interface figure of " remaining poll component analysis " webpage, wherein, " Beijing " ", Shanghai " and " on October 1st, 2014 " of user's input is in mobile phone terminal simultaneous display.
Certainly, above are only embodiment of the present invention preferred exemplary, technical scheme is not only in this webpage, but for all webpages with renewable control, the transcoding process of other webpages with renewable control is similar with said process, and the present invention repeats no more herein.
To sum up, the webpage code-transferring method that the embodiment of the present invention provides, transcoding server receive client send control data more newly requested after, from default list, stored new control data is read out, former control data is updated to new control data, and the request comprising new control data is submitted to web page server, making the control data in the response message that web page server sends is new control data, ensure that the response message received by transcoding server is to comprise the info web of new control data, it is thus possible to the data updated in control are carried out transcoding when transcoding, and show at client synchronization, make transcoding effect more perfect, Consumer's Experience can be improved.
With above-mentioned to realize method corresponding, the embodiment of the present invention additionally provides webpage transcoding device, as shown in Figure 6, for the structural representation of the webpage transcoding device that the embodiment of the present invention provides.Described device includes: receive unit 11, acquiring unit 12, updating block 13, transcoding units 14 and transmitting element 15, wherein, receive unit 11, control data for receiving client transmission is more newly requested, and the more newly requested storage including being pre-created of described control data has the default list of new control data;Acquiring unit 12, for obtaining former control data from the former webpage of prestrain;Updating block 13, is updated in described default list the new control data of storage for the former control data that obtained by acquiring unit 12, and new web page access request corresponding for described new control data is submitted to web page server;Transcoding units 14, after the new web page corresponding at the described new control data receiving the transmission of described web page server, carries out transcoding by described new web page;Transmitting element 15, for sending the new web page after transcoding units 14 transcoding to described client.
On the basis of the present embodiment, in another embodiment, described device also includes searching unit, has, for searching from described former webpage, the control clicking element, and obtains the current control data of described control;Indexing unit, for adding new position mark for described control;Memory element, for being stored in the position mark of described indexing unit institute labelling, described current control data correspondence in the new table created.
Wherein, in the third embodiment, described device also includes loading unit: be used for loading described former webpage;And described lookup unit is in the present embodiment, it is additionally operable to from described former webpage to search that there is the control clicking element, and obtains the former control data of described control;Described indexing unit in the present embodiment, is additionally operable to as described control point of addition labelling;Described memory element in the present embodiment, is additionally operable to be stored in the default list created described position mark, described former control data correspondence.
In described device, the function of unit and the process that realizes of effect refer in said method and corresponding to realize process, do not repeat them here.
In the present embodiment, transcoding server is before by webpage transcoding, a hiding list is inserted in advance in former webpage, after user inputs data in control, these data are stored in hiding list, and be sent to transcoding server and carry out control data renewal, thus the data that user inputs are carried out simultaneous display.
Above-mentioned is realize, for transcoding server end, the description that device carries out, and on the basis of above-described embodiment, the present embodiment is described in client.Refer to the second embodiment structural representation of the webpage transcoding device that Fig. 7, Fig. 7 provide for the embodiment of the present invention.
In the present embodiment, described device includes: first receives unit 21, memory element 22, generation unit 23, transmitting element 24 and the second reception unit 25, and wherein, first receives unit 21, for receiving the new control data of user's input;Memory element 22, for being stored in described new control data in the default list that transcoding server creates;Generate unit 23, more newly requested for generating, according to preset rules, the control data including described default list;Transmitting element 24, for by more newly requested for described control data transmission to described transcoding server, by described transcoding server by the described new control data that is updated to of former control data, and by new web page corresponding to described new control data carry out transcoding;Second receives unit 25, is used for the new web page after receiving the transcoding that described transcoding server sends.
Wherein, on the basis of the present embodiment, in another embodiment, described memory element 22 includes searching module, acquisition module and writing module, and wherein, described lookup module, for searching control according to the position mark of described default list internal memory storage;Described acquisition module, for obtaining the current control data of the control that described lookup module searches arrives;Said write module, for when described current control data are different from the control data that corresponding described position mark in described default list stores, writing described default list using described current control data as described new control data.
In described device, the function of unit and the process that realizes of effect refer in said method and corresponding to realize process, do not repeat them here.
Summary, the webpage transcoding device that the embodiment of the present invention provides, transcoding server receive client send control data more newly requested after, from default list, stored new control data is read out, former control data is updated to new control data, and the request comprising new control data is submitted to web page server, making the control data in the response message that web page server sends is new control data, ensure that the response message received by transcoding server is to comprise the info web of new control data, it is thus possible to the data updated in control are carried out transcoding when transcoding, and show at client synchronization, make transcoding effect more perfect, Consumer's Experience can be improved.
With above-mentioned to realize method and apparatus corresponding, the embodiment of the present invention additionally provides a kind of webpage trans-coding system, as shown in Figure 8, for the structural representation of the webpage trans-coding system that the embodiment of the present invention provides.
Described system includes: transcoding server 31 and client 32, and wherein, transcoding server 31, the control data for receiving client transmission is more newly requested, and the more newly requested storage including being pre-created of described control data has the default list of new control data;Former control data is obtained from the former webpage of prestrain;Described former control data is updated in described default list the new control data of storage, and web access requests corresponding for described new control data is submitted to web page server;After the new web page that the described new control data receiving the transmission of described web page server is corresponding, described new web page is carried out transcoding;Described new web page after transcoding is sent to described client;
Client 32, for receiving the new control data of user's input;Described new control data is stored in the default list that transcoding server creates;The control data including described default list is generated more newly requested according to preset rules;By more newly requested for described control data transmission to described transcoding server, by described transcoding server by the described new control data that is updated to of former control data, and by new web page corresponding to described new control data carry out transcoding;Receive the new web page after the transcoding that described transcoding server sends.
Describing it is noted that other functions of transcoding server 31 and client 32 and effect refer to above-described embodiment, the present invention repeats no more herein.
It is understood that the present invention can be used in numerous general or special purpose computing system environment or configuration.Such as: personal computer, server computer, handheld device or portable set, laptop device, multicomputer system, based on the system of microprocessor, set top box, programmable consumer-elcetronics devices, network PC, minicomputer, mainframe computer, the distributed computing environment including any of the above system or equipment etc..
The present invention can described in the general context of computer executable instructions, for instance program module.Usually, program module includes performing particular task or realizing the routine of particular abstract data type, program, object, assembly, data structure etc..The present invention can also be put into practice in a distributed computing environment, in these distributed computing environment, the remote processing devices connected by communication network perform task.In a distributed computing environment, program module may be located in the local and remote computer-readable storage medium including storage device.
It should be noted that, in this article, the relational terms of such as first and second or the like is used merely to separate an entity or operation with another entity or operating space, and not necessarily requires or imply the relation that there is any this reality between these entities or operation or sequentially.And, term " includes ", " comprising " or its any other variant are intended to comprising of nonexcludability, so that include the process of a series of key element, method, article or equipment not only include those key elements, but also include other key elements being not expressly set out, or also include the key element intrinsic for this process, method, article or equipment.When there is no more restriction, statement " including ... " key element limited, it is not excluded that there is also other identical element in including the process of described key element, method, article or equipment.
Summary, from above technical scheme, the webpage code-transferring method that the embodiment of the present invention provides, Apparatus and system, transcoding server receive client send control data more newly requested after, from default list, stored new control data is read out, former control data is updated to new control data, and the request comprising new control data is submitted to web page server, making the control data in the response message that web page server sends is new control data, ensure that the response message received by transcoding server is to comprise the info web of new control data, it is thus possible to the data updated in control are carried out transcoding when transcoding, and show at client synchronization, make transcoding effect more perfect, Consumer's Experience can be improved.
The above is only the specific embodiment of the present invention; it should be pointed out that, for those skilled in the art, under the premise without departing from the principles of the invention; can also making some improvements and modifications, these improvements and modifications also should be regarded as protection scope of the present invention.

Claims (12)

1. webpage code-transferring method, it is characterised in that including:
The control data receiving client transmission is more newly requested, and the more newly requested storage including being pre-created of described control data has the default list of new control data;
Former control data is obtained from the former webpage of prestrain;
Described former control data is updated in described default list the new control data of storage, and new web page access request corresponding for described new control data is submitted to web page server;
After the new web page that the described new control data receiving the transmission of described web page server is corresponding, described new web page is carried out transcoding;
Described new web page after transcoding is sent to described client.
2. webpage code-transferring method as claimed in claim 1, it is characterised in that being updated to by described former control data in described default list after the new control data of storage, before described new web page is carried out transcoding, also includes:
Search from described new web page and there is the control clicking element, obtain the current control data of described control;
New position mark is added for described control;
Described new position mark, described current control data correspondence are stored in the new table created.
3. webpage code-transferring method as claimed in claim 1 or 2, it is characterised in that before the control data receiving client transmission is more newly requested, described method also includes:
Load described former webpage;
Search from described former webpage and there is the control clicking element, and obtain the former control data of described control;
For described control point of addition labelling;
Described position mark, described former control data correspondence are stored in the default list created.
4. webpage code-transferring method, it is characterised in that including:
Client receives the new control data of user's input;
Described new control data is stored in the default list that transcoding server creates;
The control data including described default list is generated more newly requested according to preset rules;
By more newly requested for described control data transmission to described transcoding server, by described transcoding server by the described new control data that is updated to of former control data, and new web page corresponding for described new control data is carried out transcoding;
Receive the new web page after the transcoding that described transcoding server sends.
5. webpage code-transferring method as claimed in claim 4, it is characterised in that in the described default list that described new control data is stored in transcoding server establishment, including:
Position mark according to the storage of described default list internal memory searches control;
Obtain the current control data of described control;
When described current control data are different from the control data that corresponding described position mark in described default list stores, described current control data are write described default list as described new control data.
6. webpage code-transferring method, it is characterised in that including:
Client receives the new control data of user's input;Described new control data is stored in the default list that transcoding server creates;The control data including described default list is generated more newly requested according to preset rules;It is sent to described transcoding server by more newly requested for described control data;
Described transcoding server receive described control data more newly requested after, from the former webpage of prestrain, obtain former control data;Described former control data is updated in described default list the new control data of storage, and new web page access request corresponding for described new control data is submitted to web page server;
Described new web page, after the new web page that the described new control data receiving the transmission of described web page server is corresponding, is carried out transcoding by described transcoding server;Described new web page after transcoding is sent to described client;
Described client receives described new web page and displays.
7. webpage transcoding device, it is characterised in that including:
Receiving unit, the control data for receiving client transmission is more newly requested, and the more newly requested storage including being pre-created of described control data has the default list of new control data;
Acquiring unit, for obtaining former control data from the former webpage of prestrain;
Updating block, is updated in described default list the new control data of storage for the former control data that obtained by described acquiring unit, and new web page access request corresponding for described new control data is submitted to web page server;
Transcoding units, after the new web page corresponding at the described new control data receiving the transmission of described web page server, carries out transcoding by described new web page;
Transmitting element, for sending the new web page after described transcoding units transcoding to described client.
8. device as claimed in claim 7, it is characterised in that also include:
Search unit, for searching from described former webpage, there is the control clicking element, and obtain the current control data of described control;
Indexing unit, for adding new position mark for described control;
Memory element, for being stored in the position mark of described indexing unit institute labelling, described current control data correspondence in the new table created.
9. device as claimed in claim 7 or 8, it is characterised in that also include:
Loading unit: be used for loading described former webpage;
Described lookup unit, is additionally operable to from described former webpage and searches the control with click element, and obtain the former control data of described control;
Described indexing unit, is additionally operable to as described control point of addition labelling;
Described memory element, is additionally operable to be stored in the default list created described position mark, described former control data correspondence.
10. webpage transcoding device, it is characterised in that including:
First receives unit, for receiving the new control data of user's input;
Memory element, for being stored in described new control data in the default list that transcoding server creates;
Generate unit, more newly requested for generating, according to preset rules, the control data including described default list;
Transmitting element, for by more newly requested for described control data transmission to described transcoding server, by described transcoding server by the described new control data that is updated to of former control data, and by new web page corresponding to described new control data carry out transcoding;
Second receives unit, is used for the new web page after receiving the transcoding that described transcoding server sends.
11. device as claimed in claim 10, it is characterised in that described memory element includes searching module, acquisition module and writing module, wherein,
Described lookup module, for searching control according to the position mark of described default list internal memory storage;
Described acquisition module, for obtaining the current control data of the control that described lookup module searches arrives;
Said write module, for when described current control data are different from the control data that corresponding described position mark in described default list stores, writing described default list using described current control data as described new control data.
12. webpage trans-coding system, it is characterised in that including: transcoding server and client, wherein,
Described transcoding server, the control data for receiving client transmission is more newly requested, and the more newly requested storage including being pre-created of described control data has the default list of new control data;Former control data is obtained from the former webpage of prestrain;Described former control data is updated in described default list the new control data of storage, and new web page access request corresponding for described new control data is submitted to web page server;After the new web page that the described new control data receiving the transmission of described web page server is corresponding, described new web page is carried out transcoding;Described new web page after transcoding is sent to described client;
Described client, for receiving the new control data of user's input;Described new control data is stored in the default list that transcoding server creates;The control data including described default list is generated more newly requested according to preset rules;By more newly requested for described control data transmission to described transcoding server, by described transcoding server by the described new control data that is updated to of former control data, and by new web page corresponding to described new control data carry out transcoding;Receive the new web page after the transcoding that described transcoding server sends.
CN201410857519.1A 2014-12-31 2014-12-31 Webpage code-transferring method, apparatus and system Active CN105808628B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410857519.1A CN105808628B (en) 2014-12-31 2014-12-31 Webpage code-transferring method, apparatus and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410857519.1A CN105808628B (en) 2014-12-31 2014-12-31 Webpage code-transferring method, apparatus and system

Publications (2)

Publication Number Publication Date
CN105808628A true CN105808628A (en) 2016-07-27
CN105808628B CN105808628B (en) 2019-04-02

Family

ID=56465020

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410857519.1A Active CN105808628B (en) 2014-12-31 2014-12-31 Webpage code-transferring method, apparatus and system

Country Status (1)

Country Link
CN (1) CN105808628B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108133015A (en) * 2017-12-22 2018-06-08 东软集团股份有限公司 Form data trace method, apparatus, storage medium and electronic equipment
CN109710622A (en) * 2018-10-31 2019-05-03 阿里巴巴集团控股有限公司 A kind of data-updating method, device and system
CN110750244A (en) * 2019-09-25 2020-02-04 贝壳技术有限公司 Code synchronization method and device, electronic equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100088629A1 (en) * 2007-04-06 2010-04-08 Alibaba.Com Corporation Method, Apparatus and System of Processing Correlated Keywords
CN102651022A (en) * 2012-03-31 2012-08-29 奇智软件(北京)有限公司 Searching method and device
EP2506163A1 (en) * 2011-03-31 2012-10-03 Kabushiki Kaisha Toshiba Information processing apparatus and information processing method
CN102929954A (en) * 2012-10-08 2013-02-13 北京百度网讯科技有限公司 Method and device for controlling content displaying of search frame
CN103888456A (en) * 2014-03-18 2014-06-25 国家电网公司 Webpage client side, server side and data processing device and method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100088629A1 (en) * 2007-04-06 2010-04-08 Alibaba.Com Corporation Method, Apparatus and System of Processing Correlated Keywords
EP2506163A1 (en) * 2011-03-31 2012-10-03 Kabushiki Kaisha Toshiba Information processing apparatus and information processing method
CN102651022A (en) * 2012-03-31 2012-08-29 奇智软件(北京)有限公司 Searching method and device
CN102929954A (en) * 2012-10-08 2013-02-13 北京百度网讯科技有限公司 Method and device for controlling content displaying of search frame
CN103888456A (en) * 2014-03-18 2014-06-25 国家电网公司 Webpage client side, server side and data processing device and method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
龚榆桐: "《WWW与WAP信息处理模型的比较》", 《玉林师范学院学报(自然科学)》 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108133015A (en) * 2017-12-22 2018-06-08 东软集团股份有限公司 Form data trace method, apparatus, storage medium and electronic equipment
CN109710622A (en) * 2018-10-31 2019-05-03 阿里巴巴集团控股有限公司 A kind of data-updating method, device and system
CN110750244A (en) * 2019-09-25 2020-02-04 贝壳技术有限公司 Code synchronization method and device, electronic equipment and storage medium
CN110750244B (en) * 2019-09-25 2023-09-29 贝壳技术有限公司 Code synchronization method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN105808628B (en) 2019-04-02

Similar Documents

Publication Publication Date Title
KR102185864B1 (en) Server-side rendering method and system of native content for presentation
EP3518124A1 (en) Webpage rendering method and related device
EP1661036B1 (en) A method and system for improving presentation of html pages in web devices
US9235636B2 (en) Presenting data in response to an incomplete query
CN109194714B (en) File pushing method and device, terminal device and storage medium
CN109683998A (en) Internationalize implementation method, device and system
CN106575298A (en) Fast rendering of websites containing dynamic content and stale content
CN107092652B (en) Navigation method and device for target page
CN105426508A (en) Webpage generation method and apparatus
CN103383687A (en) Page processing method and device
CN111552704A (en) Data report generation method and device, computer equipment and storage medium
JP5830581B1 (en) Input support server, input support method, and input support program
CN105095370A (en) Information push method, device and system for expansion application
CN105808628A (en) Webpage transcoding method, apparatus and system
CN108920642A (en) Campus information delivery system
US8938520B2 (en) Methods and systems for smart adapters in a social media content analytics environment
CN108959294A (en) A kind of method and apparatus accessing search engine
CN105808636A (en) APP information data based hypertext link pushing system
CN105701231A (en) Network resource search system and method
WO2012120704A1 (en) Web display program conversion system, web display program conversion method, and program for web display program conversion
CN102799642A (en) Method and device for displaying webpage content
CN112559914A (en) Index data display method and device
US20180357588A1 (en) Skill detection and determination
CN102722522A (en) Browser navigation method and device
CN108334560B (en) Information acquisition method and related equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20200622

Address after: 310052 room 508, floor 5, building 4, No. 699, Wangshang Road, Changhe street, Binjiang District, Hangzhou City, Zhejiang Province

Patentee after: Alibaba (China) Co.,Ltd.

Address before: 510627 Guangdong city of Guangzhou province Whampoa Tianhe District Road No. 163 Xiping Yun Lu Yun Ping B radio 14 floor tower square

Patentee before: GUANGZHOU UCWEB COMPUTER TECHNOLOGY Co.,Ltd.