CN103136238A - Method and server of processing page interactive elements at time of converting web page into wireless application protocol (WAP) page - Google Patents

Method and server of processing page interactive elements at time of converting web page into wireless application protocol (WAP) page Download PDF

Info

Publication number
CN103136238A
CN103136238A CN 201110384447 CN201110384447A CN103136238A CN 103136238 A CN103136238 A CN 103136238A CN 201110384447 CN201110384447 CN 201110384447 CN 201110384447 A CN201110384447 A CN 201110384447A CN 103136238 A CN103136238 A CN 103136238A
Authority
CN
China
Prior art keywords
web page
page
interactive elements
server
wap
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN 201110384447
Other languages
Chinese (zh)
Inventor
梁勇
刘德超
薛晶晶
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and 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 Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN 201110384447 priority Critical patent/CN103136238A/en
Publication of CN103136238A publication Critical patent/CN103136238A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention provides a method of processing page interactive elements at time of converting web page into a wireless application protocol (WAP) page. The method comprises the following steps: a server acquiring a web page according to a access request of a mobile terminal and identifying types of interactive elements in the web page; the server converting the web page into a WAP page, and the server, based on the types of the interactive elements in the web page, attaching correlation information of the interactive elements in the web page to the WAP page in the conversion process; the server sending the WAP page to the mobile terminal, and receiving operation and the correlation information after the mobile terminal operates the interactive elements in the WAP page; and according to the correlation information, the server converting the operation of the mobile terminal on the interactive elements in the WAP page into operation of corresponding interactive elements in the web page. The invention further provides a corresponding server.

Description

When the WEB page is converted to the WAP page to disposal route and the server of page interactive elements
Technical field
The present invention relates to development of Mobile Internet technology, relate in particular to a kind of disposal route and server to the page interactive elements when WEB conversion of page is the WAP page.
Background technology
The content of internet page (the hereinafter referred to as WEB page) mainly comprises two parts: the part that can read and part that can be mutual.Wherein, the part that can read refers to offer in the WEB page user and browses but need not the content that the user carries out any operation, such as word, picture, video etc.; Just realize the content of its function after can mutual part referring to need the user necessarily to operate in the WEB page, such as Form list, button, drop-down choice box etc.
Along with the development of mobile Internet, the user can pass through the mobile terminal accessing Internet.But because the browser of a lot of mobile terminals is not supported (or not exclusively supporting) html standard, so can't directly conduct interviews to the WEB page.In order to guarantee that the user can pass through the mobile terminal access to WEB page, so usually the WEB conversion of page need to be become be applicable to the WAP page of mobile terminal, then the WAP page is sent to mobile terminal and presents to the user.Thus, the user just can see the WEB content of pages on mobile terminal, that is, the user can browse and to can mutual part operating the part that can read in the WEB page.
But mobile terminal is due to the restriction of self function, sometimes can cause the user when can mutual part in the WEB page operating, and can't realize corresponding function.For example, at present in a lot of WEB pages can be mutual part be all to realize certain function by the execution that triggers the JavaScript script, if mobile terminal is not supported JavaScript, the user can't realize and the interactivity of the WEB page by mobile terminal, thereby lowered the experience sense that the user uses the mobile terminal accessing internet.
Based on the problems referred to above, be desirable to provide a kind of disposal route and server to the page interactive elements when WEB conversion of page is the WAP page.
Summary of the invention
The purpose of this invention is to provide a kind of address the above problem the WEB conversion of page is the WAP page time to disposal route and the server of page interactive elements.
According to an aspect of the present invention, provide a kind of disposal route to the page interactive elements when WEB conversion of page is the WAP page, the method comprises the following steps:
Server obtains the WEB page according to the request of access of mobile terminal, and identifies the type of interactive elements in the described WEB page;
Described server is converted into the WAP page with the described WEB page, and in conversion process, described server is based on the type of interactive elements in the described WEB page, and the related information of interactive elements in the described WEB page is attached in the described WAP page;
Described server is sent to described mobile terminal with the described WAP page, and after described mobile terminal operates the interactive elements in the WAP page, receives this operation and described related information;
According to described related information, described server transforms into the operation of described mobile terminal to interactive elements in the described WAP page to the operation of interactive elements accordingly in the described WEB page.
According to another aspect of the present invention, also provide a kind of server of page interactive elements being processed when the WEB conversion of page is the WAP page, this server comprises:
The acquisition request device is for the request of access of obtaining mobile terminal;
Page deriving means is used for obtaining the WEB page according to the request of access of described mobile terminal;
The elemental recognition device is for the type of identifying described WEB page interactive elements;
Page reforming unit, be used for the described WEB page is converted into the WAP page, wherein, in conversion process, described page reforming unit is based on the type of interactive elements in the described WEB page, and the related information of interactive elements in the described WEB page is attached in the described WAP page;
Page R-T unit is used for the described WAP page is sent to described mobile terminal, and after described mobile terminal operates the interactive elements in the WAP page, receives described operation and described related information that described mobile terminal sends;
The operation reforming unit is used for according to described related information, and the operation of described mobile terminal to interactive elements in the described WAP page transformed into the operation of interactive elements accordingly in the described WEB page.
compared with prior art, the present invention has the following advantages: have in the process of the WEB page of interactivity at mobile terminal accessing, by server, this interactivity WEB page is changed, the corresponding WAP page that is fit to this mobile terminal is offered mobile terminal, and then be mutual on the WEB page with mobile terminal in the interactive map on the WAP page by server, make in the situation that mobile terminal function limited can't realize and the WEB page between carry out direct interaction, still can guarantee the interactivity between mobile terminal and the WEB page, help to improve the experience sense that the user uses the mobile terminal access to WEB page.
Description of drawings
By reading the detailed description that non-limiting example is done of doing with reference to the following drawings, it is more obvious that other features, objects and advantages of the present invention will become:
Fig. 1 for according to one aspect of the invention the WEB conversion of page is the WAP page time to the process flow figure of page interactive elements;
Fig. 2 (a) and Fig. 2 (b) are the schematic diagram that comprises the mutual WEB page of single-page Session in accordance with a preferred embodiment of the present invention;
Fig. 2 (c), Fig. 2 (d) and Fig. 2 (e) are the schematic diagram that comprises the mutual WEB page of multi-page Session in accordance with a preferred embodiment of the present invention;
Fig. 3 is in accordance with a preferred embodiment of the present invention the method sequential chart that simple submission is processed;
Fig. 4 in accordance with a preferred embodiment of the present invention backfill is submitted to the method sequential chart process;
Fig. 5 in accordance with a preferred embodiment of the present invention to clicking the method sequential chart of processing alternately; And
Fig. 6 for according to a further aspect of the present invention the WEB conversion of page is the WAP page time server schematic diagram that page interactive elements is processed.
Embodiment
Below in conjunction with accompanying drawing, the present invention is described in further detail.
According to an aspect of the present invention, a kind of disposal route to the page interactive elements when WEB conversion of page is the WAP page is provided, please refer to Fig. 1, Fig. 1 for according to one aspect of the invention the WEB conversion of page is the WAP page time to the process flow figure of page interactive elements.As shown in the figure, the step of the method comprises:
In step S101, server obtains the WEB page according to the request of access of mobile terminal, and identifies the type of interactive elements in the described WEB page.
Particularly, when the user wishes to access the WEB page, normally input the address of the WEB page to be visited in the browser in mobile terminal, then submit to.After server receives user's request of access, according to the address of the described WEB page, from the corresponding WEB page of third party's station for acquiring.Described server is identified the interactive elements in this WEB page according to the element property of the HTML in the WEB page, and judges the type of this interactive elements.Wherein, in the WEB page, the type of interactive elements mainly can be divided into following two kinds:
(1) it is mutual that data are submitted class to, and described data submit to class to refer to that alternately the user inputs data to be submitted in the WEB page, and these data are arrived the process of third party's website by Internet Transmission.Further, described data are submitted to class can also be divided into alternately simple submission and backfill and are submitted to, wherein, described simple submission refers to that in the situation that do not relate to the JavaScript script in data exchange process and carry out (perhaps in the situation that ignore the JavaScript script carry out) and just can not realize mutual data interaction type, described backfill submission refers to must carry out the JavaScript script and just can complete mutual data interaction type in data exchange process.
(2) the click class is mutual, and described click submits to class to refer to alternately not need user's hand input-data in reciprocal process, triggers the execution of JavaScript script by clicking operation could respond the process of user's request.Illustrate, the link of clicking in the WEB page triggers the JavaScript script to realize being written into of new window, perhaps by clicking button in the WEB page with the redirect that realizes the page etc.
When once complete reciprocal process comprises above-mentioned multiple type of interaction, and must follow certain order when this multiple type of interaction is operated the time, this reciprocal process is called Session mutual.Wherein, Session can also be further divided into alternately that single-page Session is mutual and multi-page Session is mutual.Described single-page Session refers to alternately to the equal situation in the same WEB page of the operation of a plurality of interactive elements with continuous relationship, as shown in Fig. 2 (a) and Fig. 2 (b), the user selects user's birthplace from combobox, native information comprises province and city, wherein, the user must first select the province just can further select the city, and the user is in the process that province and city are selected, and the URL of this WEB page (as shown in the part that black line in figure encloses) never changes.described multi-page Session refers to a plurality of operations with interactive elements of continuous relationship are appeared at situation in a plurality of WEB pages alternately, as Fig. 2 (c), shown in Fig. 2 (d) and Fig. 2 (e), the user carries out the input of user profile and submits in the WEB page shown in Fig. 2 (c), then a WEB page jump is to the 2nd WEB page shown in Fig. 2 (d), content in the 2nd WEB page is relevant with the user profile of input in Fig. 2 (c), then the user proceeds operation to the interactive elements in Fig. 2 (d), the 2nd WEB page will jump to the 3rd WEB page shown in Fig. 2 (e), from Fig. 2 (c), can find out in Fig. 2 (d) and Fig. 2 (e), these interactive elements have certain continuous relationship, in the process that these interactive elements are operated, the address of the WEB page can change (as shown in the part that black line in figure encloses).
In step S102, described server is converted into the WAP page with the described WEB page, and in conversion process, described server is based on the type of interactive elements in the described WEB page, and the related information of interactive elements in the described WEB page is attached in the described WAP page.
Particularly, can access the WEB page in order to make the user on mobile terminal, at first described server is converted into this WEB page and is applicable to the WAP page that mobile terminal shows.In conversion process, described server need to carry out certain processing to the interactive elements in the described WEB page,, according to the type of interactive elements in the described WEB page, it is carried out corresponding recompile that is.The recompile purpose is, the related information of interactive elements in the described WEB page is attached in the WAP page after conversion, wherein, described related information be with the WEB page in the relevant information of interactive elements, and can make server that the user is converted into operation on the WEB page in the operation on the WAP page by this related information.Illustrate, in the WEB page, the type of interactive elements is mutual for clicking class, and the related information of this interactive elements can be the more specific location information of this interactive elements in the WEB page so.
In step S103, described server is sent to described mobile terminal with the described WAP page, and after described mobile terminal operates the interactive elements in the WAP page, receives this operation and described related information.
Particularly, the WAP page after described server will transform is sent to described mobile terminal, and the user can see this WAP page on the screen of mobile terminal.Then, the user operates the interactive elements in this WAP page by mobile terminal, padding data or carry out clicking operation for example, after EO, mobile terminal is sent to described server with user's content of operation together with the related information in the WAP page.
In step S104, according to described related information, described server transforms into the operation of described mobile terminal to interactive elements in the described WAP page to the operation of interactive elements accordingly in the described WEB page.
Particularly, at first described server extracts content of operation and related information after receiving the content of operation and the related information in the WAP page that mobile terminal sends; Then, based on described content of operation, described server can know what the concrete operations of user on the WAP page are, for example filled what data, and based on related information, described server can be known existing which interactive elements on the WEB page; Then, described server transforms into the user to the operation of interactive elements accordingly in the described WEB page to the operation of interactive elements in the WAP page, and the operating result on the WEB page is sent to third party's website, thereby can realize mutual between mobile terminal and the WEB page.
Below, class is mutual, single-page Session is mutual and the mutual situation of multi-page Session is specifically described respectively to containing above-mentioned simple submission, backfill in the WEB page and submitting to, click with five specific embodiments.
Embodiment one:
Please refer to Fig. 3, Fig. 3 is in accordance with a preferred embodiment of the present invention the method sequential chart that simple submission is processed.
As shown in the figure, in step S301, the request of access that the server mobile terminal receive sends, and in step S302, obtain the WEB page according to the access of mobile terminal from third party's site requests.
Particularly, when the user wishes to access the WEB page, normally input the address of the WEB page to be visited in the browser in mobile terminal (hereinafter the browser in mobile terminal being called the first browser), then submit to.After server receives user's request of access, according to the address of the described WEB page, from the corresponding WEB page of third party's station for acquiring.
In step S303, in the described WEB page of described server identification, the type of interactive elements is simple submission the to.
Particularly, described server is identified the interactive elements in this WEB page according to the element property of the HTML in the WEB page, and judges the type of this interactive elements.In the present embodiment, the type of this interactive elements is simple submission the to.
In step S304, described server is converted into the WAP page with the described WEB page, and wherein, for the interactive elements in the WEB page, described server carries out recompile to it.
Particularly, in order to be that mobile terminal can conduct interviews to the WEB page, described server need to transform into the WEB page WAP page that is applicable to mobile terminal, in conversion process, for meeting the interactive elements of simple submission in the WEB page, server need to carry out recompile to it, and in order to related information is attached in the WAP page after conversion, described related information comprises: the destination address that the character encoding format of the commit method of the WEB page, the WEB page and the WEB page are submitted to.Wherein, described related information is that form with the server customized label is attached to (the label standard of HTML has guaranteed that user's these customized labels when submitting padding data to can be submitted to server) that stores in WAP page data after conversion.
In step S305, described server is sent to described mobile terminal with this WAP page.
In step S306, the user operates the interactive elements in the described WAP page by described mobile terminal, and described operation is committed to server.
Particularly, the user utilizes the first browser to open the WAP page, and carries out the filling of data in this WAP page, then submits action to by triggering such as modes such as button clicks.Described the first browser is sent to described server with data and the related information in customized label (be referred to as and submit data to) that the user fills.
In step S307, after described server receives the submission data of described mobile terminal, with the user in the corresponding operation that is converted into padding data on the WEB page of the operation of padding data on the WAP page.
Particularly, after the submission data of described server mobile terminal receive, this is submitted to data analysis, it is split as two parts, that is, and the related information in customized label and user's padding data.Described server carries out code conversion according to the character encoding format of the WEB page to user's padding data, and the data-switching that user in the WAP page is filled becomes the data that are fit to the WEB page.Because simple submission the to just is committed to third party's website with the data of filling in, operate (for example execution of JavaScript script) and need not to carry out other, and the form of the form of the WAP page after conversion and the original WEB page does not change, so, after server is changed the submission data of mobile terminal, can use the commit method of the WEB page, and the data after change according to the destination address that the WEB page is submitted to are committed to third party's website, thus realized between mobile terminal and the WEB page alternately.
Embodiment two:
Please refer to Fig. 4, Fig. 4 in accordance with a preferred embodiment of the present invention backfill is submitted to the method sequential chart process.As shown in the figure, in step S401, the request of access that the server mobile terminal receive sends, and in step S402, obtain the WEB page according to the request of access of mobile terminal.
In step S403, in the described WEB page of described server identification, the type of interactive elements is that backfill is submitted to.
Particularly, described server is identified the interactive elements in this WEB page according to the element property of the HTML in the WEB page, and judges the type of this interactive elements.In the present embodiment, the type of this interactive elements is that backfill is submitted to.
In step S404, described server is converted into the WAP page with the described WEB page, and wherein, for the interactive elements in the WEB page, described server carries out recompile to it.
Particularly, described server transforms into the WEB page WAP page that is applicable to mobile terminal, wherein, when meeting interactive elements that backfill submits to recode in to the WEB page, the identification information of interactive elements need to be stored in the WAP page after conversion with the form of customized label.In the present embodiment, described identification information comprises a kind of or its combination in any in any attribute that in the HTML standard, label has (comprising ID/NAME, tag types etc.), Xpath path.In other embodiments, described identification information can also comprise other any information that can be used for the identification interactive elements such as the position offset of interactive elements in the WEB page.In addition, according to interactive elements putting in order in the WEB page, also need to form call number for each interactive elements, this call number can be stored in by the form with interactive elements NAME attribute in the WAP page after conversion.
In step S405, described server is sent to described mobile terminal with this WAP page.
In step S406, the user operates the interactive elements in the described WAP page by described mobile terminal, and described operation is committed to server.
Particularly, the user utilizes the first browser to open the WAP page, and carries out the filling of data in this WAP page, then submits action to by triggering such as modes such as button clicks.The call number of interactive elements in the data that described the first browser is filled the user, the content of customized label and the WEB page (be referred to as and submit data to) is sent to described server.At this, mobile terminal does not trigger the execution of JavaScript script afterwards in submission, but in subsequent step, is carried out the execution of this JavaScript script for mobile terminal by server generation.
In step S407, the submission data that described server mobile terminal receive sends, and submit data to based on this, form the backfill data item.
Particularly, after the submission data that described server mobile terminal receive sends, at first, go out from this submission extracting data the data that the call number of interactive elements, content in customized label and user fill when this interactive elements is operated; Then, described server is followed successively by each padding data and distributes a sequence number according to the order of the user's padding data after extracting; Then, the call number of this sequence number and interactive elements is mated, concrete corresponding with which interactive elements in the WEB page with the padding data of confirming the user; After the match is successful, according to the identification information of this interactive elements in customized label, user padding data and the earth-filling method (set or click) to this interactive elements, form a backfill data item.According to the quantity of interactive elements in the WEB page, described server will form one or more complete backfill data item.
In step S408, according to the backfill data item, the browser analog subscriber operation in the WAP page in the WEB page in described server is to realize the execution of JavaScript script.
Particularly, described server is processed browser (hereinafter the browser in server being called the second browser) process that described one or more backfill data item is sent in described server, this processing procedure is as follows: at first, described the second browser is opened the former WEB page; Then, described the second browser process positions in the position of the former WEB page to interactive elements according to the identification information of interactive elements in the backfill data item; Then, described the second browser is according to earth-filling method analog subscriber operation behavior to this interactive elements on the WAP page, namely, if earth-filling method is set, described the second browser is filled to the padding data of user in the backfill data item in this interactive elements in the WEB page, if earth-filling method is click, described the second browser is simulated click to this interactive elements, thereby triggers the execution of JavaScript script; After the JavaScript script carry out to finish, described the second browser was sent to third party website with execution result, thus realized between mobile terminal and the WEB page alternately.
Embodiment three:
Please refer to Fig. 5, Fig. 5 in accordance with a preferred embodiment of the present invention to clicking the method sequential chart of processing alternately.As shown in the figure, in step S501, the request of access that the server mobile terminal receive sends, and in step S502, obtain the WEB page according to the request of access of mobile terminal.
In step S503, in the described WEB page of described server identification, the type of interactive elements is mutual for clicking class.
Particularly, described server is identified the interactive elements in this WEB page according to the element property of the HTML in the WEB page, and judges the type of this interactive elements.In the present embodiment, the type of this interactive elements is mutual for clicking class.Click the mutual main manifestations of class and click the JavaScript script execution that triggers this label after certain label in the WEB page for the user, this execution does not rely on the changeable page data of any user.Below, take click<a〉trigger the JavaScript script after label and subsequent step is described as example.
In step S504, described server is converted into the WAP page with the described WEB page, and wherein, for the interactive elements in the WEB page, described server carries out recompile to it.
Particularly, described server transforms into the WEB page WAP page that is applicable to mobile terminal, wherein, when meeting interactive elements that backfill submits to recode in to the WEB page, right<a〉XPath, ID/NAME, the tag types etc. of the label identification information that can be used as unique location carries out record.In the present embodiment, the URL in this identification information and the WAP page is associated, and is recorded in the WAP page.
In step S505, described server is sent to described mobile terminal with this WAP page.
In step S506, the user carries out clicking operation by described mobile terminal to the interactive elements in the described WAP page, and described operation is committed to server.
Particularly, the user utilizes the first browser to open the WAP page, and in this WAP page, interactive elements is carried out clicking operation.After clicking end, described the first browser is sent to described server with the URL in the WAP page (hereinafter referred to as submitting data to).At this, mobile terminal does not trigger the execution of JavaScript script after clicking operation finishes, but in subsequent step, is carried out the execution of this JavaScript script for mobile terminal by server generation.
In step S507, the submission data that described server mobile terminal receive sends, and submit data to based on this, form the backfill data item.
Particularly, after the submission data that described server mobile terminal receive sends, can parse from URL<a the identification information of label and the address of the original WEB page, and based on<a〉identification information of label, the address of the WEB page and earth-filling method (being by clicking trigger JavaScript script, so earth-filling method is set to click alternately owing to clicking class) form the backfill data item.
In step S508, according to the backfill data item, the browser analog subscriber clicking operation in the WAP page in the WEB page in described server is to realize the execution of JavaScript script.
Particularly, described server is processed the second browser process that described backfill data item is sent in described server, and this processing procedure is as follows: at first, described the second browser is opened the former WEB page; Then, described the second browser process positions in the position of the former WEB page to interactive elements according to the identification information of interactive elements in the backfill data item; Then, described the second browser namely clicks to trigger the execution of JavaScript script according to the operation to interactive elements on the WAP page of earth-filling method analog subscriber to the interactive elements in the WEB page; At last, after the JavaScript script carry out to finish, described the second browser was sent to third party website with execution result, thus realized between mobile terminal and the WEB page alternately.
In other embodiments, if the result after the JavaScript script is carried out is present in the WEB page, namely, after the JavaScript script is carried out, variation has occured in the content of the WEB page, and the corresponding code of these variations is present in the WEB page, in this case, described the second browser need not JavaScript script execution result is sent to third party website, but after directly the JavaScript script being carried out, the resulting WEB page is converted into the WAP page, send to mobile terminal, thereby realized mutual between mobile terminal and the WEB page.
Embodiment four:
The present embodiment describes alternately to realizing the single-page Session between mobile terminal and the WEB page.because single-page Session submits to classes mutual and/or click that class is mutual to be consisted of by a plurality of data, so, each interactive elements in mutual for single-page Session, type of interaction according to this interactive elements, adopt in above-mentioned three embodiment corresponding method that this interactive elements is encoded, namely, if the type of three interactive elements during single-page Session is mutual is respectively simple mutual, backfill is mutual and the click class is mutual, use so the method in embodiment one that type is encoded for simple mutual interactive elements, use the method in embodiment two that type is encoded as the mutual interactive elements of backfill, method in embodiment three is encoded for clicking the mutual interactive elements of class to type.Detailed process for coding does not repeat them here.
Below, server generation is described for the mutual process of the single-page Session between mobile terminal realization and the WEB page, wherein, there are following two kinds of concrete implementations:
Mode one, described server are according to user's request of access, also this WEB conversion of page is become the WAP page from third party's station for acquiring WEB page, then this WAP page is sent to mobile terminal, described mobile terminal is sent to described server with this operation after a plurality of interactive elements in this WAP page are operated successively.Described server is sent to the second browser with the user one by one to the operation of interactive elements, that is, the user is after the operation of completing on the WAP page an interactive elements, and mobile terminal will be sent to server with user's service data.Server receives and processes this service data, namely, data of filling according to the corresponding user of extracting of type of interactive elements or generate the backfill data item, then user's padding data or the backfill data item that extracts is sent to the second browser, in case the second browser is received the user's that server sends padding data or backfill data item, will the operation of analog subscriber carry out data stuffing or click to this interactive elements on the WEB page.After simulation finished, the second browser was with the content caching (for example in hard disk) in memory device of the WEB page, and then described server is closed the second browser.The data that next interactive elements user is filled in of receiving that server sends when the second browser or generate the backfill data item, read out the content of WEB page last time from memory device, and continue mould is carried out in user's operation on this WEB page, until mutual simulation finishes to whole single-page Session, thereby completed by server generation mutual for the single-page Session between mobile terminal realization and the WEB page.
Comprise alternately two interactive elements as example take single-page Session, wherein, according to the priority of these two interactive elements execution sequences, be called respectively interactive elements 1 and interactive elements 2, and suppose that the type of these two interactive elements is the backfill submission.The user is after carrying out data stuffing to interactive elements 1 on the WAP page, mobile terminal is sent to server with the user to padding data and the related information of interactive elements 1, server generates the backfill data item of interactive elements 1 according to the data that receive, and this backfill data item is sent to the second browser, the second browser is completed the simulation that the user is operated based on this backfill data item, namely, on the WEB page, interactive elements 1 is carried out data stuffing, then with the WEB page cache that obtains after data stuffing to hard disk.After buffer memory finished, described server was closed the second browser.At the mobile terminal place, the user continues interactive elements 2 is operated on the WAP page, mobile terminal is sent to server with the user to padding data and the related information of interactive elements 2, server generates the backfill data item of interactive elements 2 according to the data that receive, and this backfill data item is sent to the second browser, at this moment, the second browser from hard disk last time institute's buffer memory the WEB page read out (i.e. the page to obtaining after interactive elements 1 operation), and imitate user's operation on this WEB page, interactive elements 2 is carried out data stuffing.The second browser after the EO to interactive elements 1 and interactive elements 2, is carried out corresponding JavaScript script in the WEB page, and execution result is sent to third party's website.So far, the second browser has been completed and has been imitated user's operating process to whole single-page Session on the WAP page.
In specific implementation aforesaid way one, when described the second browser on the WEB page after the EO of analog subscriber to an interactive elements, described server is based on user's unique identification (UID) and the address of the WEB page, data to this WEB page are carried out buffer memory, wherein, described UID is user for the first time when the access services device, and server-assignment is given this user's identification information, in order to distinguish different users.When the second browser need to be proceeded interactive operation on the WEB page of buffer memory last time when, extract the buffer memory page and operate accordingly on this buffer memory page according to this user's UID and the URL of the WEB page.
Mode two, described server are according to user's request of access, also this WEB conversion of page is become the WAP page from third party's station for acquiring WEB page, then this WAP page is sent to mobile terminal, described mobile terminal is sent to described server with this operation after a plurality of interactive elements in this WAP page are operated successively.Described server with the user to disposable second browser that is sent to of the operation of interactive elements, namely, the user is after the operation of completing on the WAP page an interactive elements, mobile terminal will be sent to server with this operation, described server receives, processes and record this service data (data of filling according to the corresponding user of extracting of type of interactive elements or generate complete backfill data item, and recording user on the WAP page to the sequence of operation of interactive elements), until the user completes all operations at the WAP page.When the user on the WAP page to whole single-page Session after mutual EO, described server is sent to the second browser with all data of its record, the second browser is according to the order of user on the WAP page, carry out corresponding operation on the WEB page, thereby completed by server generation mutual for the single-page Session between mobile terminal realization and the WEB page.
Still comprise alternately that take above-mentioned single-page Session interactive elements 1 and interactive elements 2 are as example.the user in the WAP page successively to interactive elements 1, after interactive elements 2 is carried out data stuffing, described mobile terminal is sent to server with user's padding data, described server generates respectively the backfill data item of interactive elements 1 and interactive elements 2, and these two backfill data item are sent to the second browser, this second browser is simulated user's behavior based on these two backfill data item, namely, correspondingly successively interactive elements 1 and interactive elements 2 are operated on the WEB page, to trigger the execution of corresponding JavaScript script, and execution result is sent to third party's website.So far, the second browser has been completed and has been imitated user's operating process to whole single-page Session on the WAP page.
In specific implementation aforesaid way two, described server need to be preserved user's interactive operation based on user's UID and the address of the WEB page when user's interactive operation is recorded.when described server is received certain user to the operation of interactive elements, obtain this user's UID (if this user accesses described server for the first time, described server is UID of this user assignment) and the address of the WEB page, and search according to the address of this UID and the WEB page and whether have the interactive operation of this user on this WEB page, if exist, this user of buffer memory this to the operation of interactive elements and the mark order to this operation, otherwise will record this operation to interactive elements of this user based on this user's UID and the address of the WEB page, until server gets off whole single-page Session intersection record, being sent to the second browser process processes again.
Embodiment five:
The present embodiment describes alternately to realizing the multi-page Session between mobile terminal and the WEB page.Because multi-page Session submits to classes mutual and/or click that class is mutual to be consisted of by a plurality of data, so the detailed process for coding also repeats no more at this.Below, server generation is specifically described for the mutual process of the multi-page Session between mobile terminal realization and the WEB page.
Particularly, comprise alternately that take multi-page Session two different WEB pages as example describes, wherein, according to sequence of operation, are called a WEB page (address is URL1) and the 2nd WEB page (address is URL2) with these two pages.
The user is by the mobile terminal access to WEB page, request of access is sent to server, and described server obtains this user's UID, if this user sends a request to server for the first time, this server is UID of this user assignment, in order to this user and other users are distinguished.Then, according to user's request of access, server is to the corresponding WEB page of third party's station for acquiring, and third party's website also can send a Cookie to server when this WEB page is back to server.After described server is received this WEB page, this WEB page is converted into a WAP page, wherein, for the interactive elements in this WEB page, it carries out recompile to described server according to the type of this interactive elements.After transforming end, described server is sent to mobile terminal with a WAP page, offers the user and operates.In addition, server also can be associated this user's UID, third party's website and Cookie.
The user operates (data stuffing or click) to the interactive elements in a WAP page after receiving a described WAP page, and after EO, mobile terminal is back to described server with user's operation.
The operation that described the second browser sends based on the user is converted into operation on the WEB page with the operation of this user on a WAP page.After having carried out corresponding operation on the WEB page, a WEB page will jump to the 2nd WEB page.At this moment, server will be according to user's UID and the ULR2 of the 2nd WEB page, can determine that the 2nd WEB page and a previous WEB page that this user accesses belong to same third party's website, so described server is sent to third party website to the request of access of the 2nd WEB page together with Cookie with the user.Third party's website can confirm that according to this Cookie this user had before accessed a WEB page, and has certain relevance between the content of the content of the 2nd WEB page and a WEB page, so, corresponding the 2nd WEB page is sent to server, this server is sent to mobile terminal after the 2nd WEB page is changed into the 2nd WAP page.The user can see the 2nd WAP page on mobile terminal, that is, the results page after the user operates a WAP page, thus realized multi-page Session reciprocal process between mobile terminal and the WEB page.
Compared with prior art, method provided by the present invention has the following advantages: in the process of the mobile terminal access to WEB page, replace mobile terminal and the WEB page to carry out alternately by server generation, make in the situation that mobile terminal function limited can't realize and the WEB page between carry out mutual, still can guarantee the interactivity between mobile terminal and the WEB page, help to improve the experience sense that the user uses the mobile terminal access to WEB page.
According to another aspect of the present invention, a kind of server of page interactive elements being processed when the WEB conversion of page is the WAP page also is provided, please refer to Fig. 6, Fig. 6 for according to a further aspect of the present invention the WEB conversion of page is the WAP page time server schematic diagram that page interactive elements is processed.As shown in the figure, this server 60 comprises acquisition request device 601, page deriving means 602, elemental recognition device 603, page reforming unit 604, page R-T unit 605 and operation reforming unit 606, wherein:
Described request deriving means 601 is for the request of access of obtaining mobile terminal 10;
Described page deriving means 602 is used for obtaining the WEB page according to the request of access of described mobile terminal 10;
Described elemental recognition device 603 is for the type of identifying described WEB page interactive elements;
Described page reforming unit 604, be used for the described WEB page is converted into the WAP page, wherein, in conversion process, described page reforming unit is based on the type of interactive elements in the described WEB page, and the related information of interactive elements in the described WEB page is attached in the described WAP page;
Described page R-T unit 605 is used for the described WAP page is sent to described mobile terminal 10, and after the interactive elements in 10 pairs of WAP pages of described mobile terminal operates, receives described operation and the described related information of described mobile terminal 10 transmissions;
Described operation reforming unit 606 is used for according to described related information, and the operation of interactive elements in 10 pairs of described WAP pages of described mobile terminal is transformed into operation to corresponding interactive elements in the described WEB page.
Below, will the specific works process of said apparatus be described.
When the user wishes to access the WEB page, normally input the address of the WEB page to be visited in the browser in mobile terminal 10, then submit to.Described request deriving means 601 is sent to described page deriving means 602 with this request of access after receiving user's request of access, and described page deriving means 602 is according to the address of the described WEB page, from the corresponding WEB page of third party's station for acquiring.Described elemental recognition device 603 is identified the interactive elements in this WEB page according to the element property of the HTML in the WEB page, and judges the type of this interactive elements.Wherein, in the WEB page, the type of interactive elements mainly can be divided into following two kinds of data submission class alternately and click class mutual.Described data submit to class to refer to that alternately the user inputs data to be submitted in the WEB page, and these data are arrived the process of third party's website by Internet Transmission.Further, described data are submitted to class can also be divided into alternately simple submission and backfill and are submitted to, wherein, described simple submission refers to that in the situation that do not relate to the JavaScript script in data exchange process and carry out (perhaps in the situation that ignore the JavaScript script carry out) and just can not realize mutual data interaction type, described backfill submission refers to must carry out the JavaScript script and just can complete mutual data interaction type in data exchange process.Described click submits to class to refer to alternately not need user's hand input-data in reciprocal process, triggers the execution of JavaScript script by clicking operation could respond the process of user's request.
When once complete reciprocal process comprises above-mentioned multiple type of interaction, and must follow certain order when this multiple type of interaction is operated the time, this reciprocal process is called Session mutual.Wherein, Session can also be further divided into alternately that single-page Session is mutual and multi-page Session is mutual.Described single-page Session refers to alternately to the equal situation in the same WEB page of the operation of a plurality of interactive elements with continuous relationship.Described multi-page Session refers to a plurality of operations with interactive elements of continuous relationship are appeared at situation in a plurality of WEB pages alternately.
In order to make the user can access the WEB page on mobile terminal 10, at first described page reforming unit 604 is converted into this WEB page and is applicable to the WAP page that mobile terminal shows.In conversion process, described page reforming unit 604 need to carry out certain processing to the interactive elements in the described WEB page,, according to the type of interactive elements in the described WEB page, it is carried out corresponding recompile that is.The recompile purpose is, the related information of interactive elements in the described WEB page is attached in the WAP page after conversion, wherein, described related information be with the WEB page in the relevant information of interactive elements, and can make described operation reforming unit 606 that the user is converted into operation on the WEB page in the operation on the WAP page by this related information is follow-up.
The WAP page after described page R-T unit 605 will transform is sent to described mobile terminal 10, and the user can see this WAP page on the screen of mobile terminal 10.Then, the user operates by the interactive elements in 10 pairs of these WAP pages of mobile terminal, padding data or carry out clicking operation for example, after EO, mobile terminal 10 is sent to described page R-T unit 605 with user's content of operation together with the related information in the WAP page.
Content of operation and related information that 606 couples of users of described operation reforming unit send extract; Then, based on described content of operation, described operation reforming unit 606 can know what the concrete operations of user on the WAP page are, for example filled what data, and based on related information, described operation reforming unit 606 can be known existing which interactive elements on the WEB page; Then, described operation reforming unit 606 transforms into the user to the operation of interactive elements accordingly in the described WEB page to the operation of interactive elements in the WAP page, and the operating result on the WEB page is sent to third party's website, thereby can realize mutual between mobile terminal and the WEB page.
Below, class is mutual, single-page Session is mutual and the mutual situation of multi-page Session is specifically described respectively to containing above-mentioned simple submission, backfill in the WEB page and submitting to, click with five specific embodiments.
Embodiment six:
The request of access that described request deriving means 601 mobile terminal receives send, described page deriving means 602 obtains the WEB page according to the access of mobile terminal from third party's site requests.Described elemental recognition device 603 is identified the interactive elements in this WEB page according to the element property of the HTML in the WEB page, and judges the type of this interactive elements.In the present embodiment, the type of this interactive elements is simple submission the to.
Described page reforming unit 604 is converted into the WAP page with the described WEB page, and wherein, for the interactive elements in the WEB page, described page reforming unit 604 carries out recompile to it, in order to related information is attached in the WAP page after conversion.Described related information comprises: the destination address that the character encoding format of the commit method of the WEB page, the WEB page and the WEB page are submitted to.Wherein, described related information is that form with described page reforming unit 604 customized labels is attached in WAP page data after conversion and stores.
Described page R-T unit 605 is sent to described mobile terminal with this WAP page, the user operates by the interactive elements in 10 pairs of described WAP pages of described mobile terminal, and data and the related information in customized label (be referred to as and submit data to) that the user fills is sent to described page R-T unit 605.
After described page R-T unit 605 receives the submission data of described mobile terminals, described operation reforming unit 606 with the user in the corresponding operation that is converted into padding data on the WEB page of the operation of padding data on the WAP page.
Particularly, the submission data analysis that 606 pairs of described operation reforming units receive is split as two parts with it, that is, and and the related information in customized label and user's padding data.Described operation reforming unit 606 carries out code conversion according to the character encoding format of the WEB page to user's padding data, and the data-switching that user in the WAP page is filled becomes the data that are fit to the WEB page.After the submission data of mobile terminal 10 are changed, described operation reforming unit 606 uses the commit method of the WEB page, and the data after change according to the destination address that the WEB page is submitted to are committed to third party's website, thus realized between mobile terminal and the WEB page alternately.
Embodiment seven:
The request of access that described request deriving means 601 mobile terminal receives send, described page deriving means 602 obtains the WEB page according to the access of mobile terminal from third party's site requests.Described elemental recognition device 603 is identified the interactive elements in this WEB page according to the element property of the HTML in the WEB page, and judges the type of this interactive elements.In the present embodiment, the type of this interactive elements is that backfill is submitted to.
Described page reforming unit 604 is converted into the WAP page with the described WEB page, wherein, for the interactive elements in the WEB page, described page reforming unit 604 carries out recompile to it, and the identification information of interactive elements is stored in the WAP page after conversion with the form of customized label.In the present embodiment, described identification information comprises a kind of or its combination in any in any attribute that in the HTML standard, label has (comprising ID/NAME, tag types etc.), Xpath path, in other embodiments, described identification information can also comprise other any information that can be used for the identification interactive elements such as the position offset of interactive elements in the WEB page.In addition, described page reforming unit 604 also needs to form call number according to interactive elements putting in order in the WEB page for each interactive elements, and this call number can be stored in by the form with interactive elements NAME attribute in the WAP page after conversion.
Described page R-T unit 605 is sent to described mobile terminal with this WAP page, the user operates by the interactive elements in 10 pairs of described WAP pages of described mobile terminal, and in the content of the data that the user is filled, customized label and the WEB page, the call number (be referred to as and submit data to) of interactive elements is sent to described page R-T unit 605.
Described operation reforming unit 606 is submitted data to based on this, forms the backfill data item.Particularly, described operation reforming unit 606 goes out from this submission extracting data the data that the call number of interactive elements, content in customized label and user fill when this interactive elements is operated; Then, described operation reforming unit 606 is followed successively by each padding data and distributes a sequence number according to the order of the user's padding data after extracting; Then, described operation reforming unit 606 mates the call number of this sequence number and interactive elements, and is concrete corresponding with which interactive elements in the WEB page with the padding data of confirming the user; After the match is successful, described operation reforming unit 606 formed a backfill data item according to the identification information of this interactive elements in customized label, user padding data and the earth-filling method (set or click) to this interactive elements.According to the quantity of interactive elements in the WEB page, described operation reforming unit 606 will form one or more complete backfill data item.
Described operation reforming unit 606 is processed browser (hereinafter the browser in server 60 being called the second browser) process that described one or more backfill data item is sent in described server 60, this processing procedure is as follows: at first, described the second browser is opened the former WEB page; Then, described the second browser process positions in the position of the former WEB page to interactive elements according to the identification information of interactive elements in the backfill data item; Then, described the second browser is according to earth-filling method analog subscriber operation behavior to this interactive elements on the WAP page, thus the execution of triggering JavaScript script; After the JavaScript script carry out to finish, described operation reforming unit 606 was sent to third party website with execution result, thus realized between mobile terminal 10 and the WEB page alternately.
Embodiment eight:
The request of access that described request deriving means 601 mobile terminal receives send, described page deriving means 602 obtains the WEB page according to the access of mobile terminal from third party's site requests.Described elemental recognition device 603 is identified the interactive elements in this WEB page according to the element property of the HTML in the WEB page, and judges the type of this interactive elements.In the present embodiment, the type of this interactive elements is mutual for clicking class.The below is take click<a〉trigger the JavaScript script after label and describe as example
Described page reforming unit 604 is converted into the WAP page with the described WEB page, wherein, for the interactive elements in the WEB page, described page reforming unit 604 carries out recompile to it, right<a〉identification information that can be used as unique location such as XPath, the ID/NAME of label, tag types carries out record.In the present embodiment, described page reforming unit 604 is associated the URL in this identification information and the WAP page, and is recorded in the WAP page
Described page R-T unit 605 is sent to described mobile terminal with this WAP page, the user carries out clicking operation by the interactive elements in 10 pairs of described WAP pages of described mobile terminal, and the URL in the WAP page (hereinafter referred to as submitting data to) is sent to described page R-T unit 605.
Described operation reforming unit 606 is submitted data to based on this, forms the backfill data item.Particularly, after the submission data that described operation reforming unit 606 mobile terminal receives 10 send, can parse from URL<a the address of the identification information of label and the original WEB page, and based on<a the identification information of label, the address of the WEB page and earth-filling method form the backfill data item.
Described operation reforming unit 606 is processed the second browser process that described backfill data item is sent in described server 10, and this processing procedure is as follows: at first, described the second browser is opened the former WEB page; Then, described the second browser process positions in the position of the former WEB page to interactive elements according to the identification information of interactive elements in the backfill data item; Then, described the second browser namely clicks to trigger the execution of JavaScript script according to the operation to interactive elements on the WAP page of earth-filling method analog subscriber to the interactive elements in the WEB page; At last, after the JavaScript script carry out to finish, described operation reforming unit 606 was sent to third party website with execution result, thus realized between mobile terminal and the WEB page alternately.
Embodiment nine:
The present embodiment describes alternately to realizing the single-page Session between mobile terminal 10 and the WEB page.Wherein, the detailed process of encoding for 604 pairs of interactive elements of described page reforming unit can reference example six to embodiment eight, repeats no more in the present embodiment.
Below, replace the mutual process of single-page Session between mobile terminal 10 realizations and the WEB page to describe to server 60, wherein, there are following two kinds in the implementation of described server 60:
Mode one, described page deriving means 602 are according to user's request of access, from third party's station for acquiring WEB page, described page reforming unit 604 becomes the WAP page with this WEB conversion of page, then described page R-T unit 605 is sent to mobile terminal 10 with this WAP page, after a plurality of interactive elements in 10 pairs of these WAP pages of described mobile terminal operate successively, this operation is sent to described page R-T unit 605.Described operation reforming unit 606 is sent to the second browser with the user one by one to the operation of interactive elements, namely, the user is after the operation of completing on the WAP page an interactive elements, and mobile terminal 10 will be sent to user's service data described operation reforming unit 606.Described operation reforming unit 606 receives and processes this service data, namely, data of filling according to the corresponding user of extracting of type of interactive elements or generate the backfill data item, then user's padding data or the backfill data item that extracts is sent to the second browser, in case the second browser is received the user's that described operation reforming unit 606 sends padding data or backfill data item, will the operation of analog subscriber carry out data stuffing or click to this interactive elements on the WEB page.After simulation finished, described operation reforming unit 606 was with the content caching (for example in hard disk) in memory device of the WEB page, and then described operation reforming unit 606 cuts out the second browser.The data that next interactive elements user is filled in of receiving that described operation reforming unit 606 sends when the second browser or generate the backfill data item, read out the content of WEB page last time from memory device, and continue mould is carried out in user's operation on this WEB page, until mutual simulation finishes to whole single-page Session, thereby completed by server generation mutual for the single-page Session between mobile terminal realization and the WEB page.
Mode two, described page deriving means 602 are according to user's request of access, from third party's station for acquiring WEB page, described page reforming unit 604 becomes the WAP page with this WEB conversion of page, then described page R-T unit 605 is sent to mobile terminal 10 with this WAP page, after a plurality of interactive elements in 10 pairs of these WAP pages of described mobile terminal operate successively, this operation is sent to described page R-T unit 605.described operation reforming unit 606 with the user to disposable second browser that is sent to of the operation of interactive elements, namely, the user is after the operation of completing on the WAP page an interactive elements, mobile terminal 10 will be sent to this operation described operation reforming unit 606, described operation reforming unit 606 receives, process and record this service data (data of filling according to the corresponding user of extracting of type of interactive elements or generate complete backfill data item, and recording user on the WAP page to the sequence of operation of interactive elements), until the user completes all operations at the WAP page.When the user on the WAP page to whole single-page Session after mutual EO, described operation reforming unit 606 is sent to the second browser with all data of its record, the second browser is according to the order of user on the WAP page, carry out corresponding operation on the WEB page, thereby completed by server generation mutual for the single-page Session between mobile terminal realization and the WEB page.
Embodiment ten:
The present embodiment describes alternately to realizing the multi-page Session between mobile terminal 10 and the WEB page.Wherein, the detailed process of encoding for 604 pairs of interactive elements of described page reforming unit can reference example six to embodiment eight, repeats no more in the present embodiment.
Particularly, comprise alternately that take multi-page Session two different WEB pages as example describes, wherein, according to sequence of operation, are called a WEB page (address is URL1) and the 2nd WEB page (address is URL2) with these two pages.
The user is by the mobile terminal 10 access WEB pages, request of access is sent to described request deriving means 601, sign distributor (not shown) obtains this user's unique identification (UID), if this user sends a request to server 60 for the first time, described sign distributor is UID of this user assignment, in order to this user and other users are distinguished.Then, request of access according to the user, described page deriving means 602 is to the corresponding WEB page of third party's station for acquiring, and third party's website also can send a Cookie to described page deriving means 602 when this WEB page is back to described page deriving means 602.After described page deriving means 602 is received this WEB page, described page reforming unit 604 is converted into a WAP page with this WEB page, wherein, for the interactive elements in this WEB page, it carries out recompile to described page reforming unit 604 according to the type of this interactive elements.After transforming end, described page R-T unit 605 is sent to mobile terminal 10 with a WAP page, offers the user and operates.In addition, information association device (not shown) is associated this user's UID, third party's website and Cookie.
The user operates (data stuffing or click) to the interactive elements in a WAP page after receiving a described WAP page, and after EO, mobile terminal 10 is back to described page R-T unit 605 with user's operation.
The operation that described the second browser sends based on the user is converted into operation on the WEB page with the operation of this user on a WAP page.After having carried out corresponding operation on the WEB page, a WEB page will jump to the 2nd WEB page.At this moment, described information association device will be according to user's UID and the ULR2 of the 2nd WEB page, can determine that the 2nd WEB page and a previous WEB page that this user accesses belong to same third party's website, so described operation reforming unit 606 is sent to third party website to the request of access of the 2nd WEB page together with Cookie with the user.Third party's website can confirm that by this Cookie this user had before accessed a WEB page, and has certain relevance between the content of the content of the 2nd WEB page and a WEB page, so, corresponding the 2nd WEB page is sent to described page reforming unit 604, described page reforming unit 604 is sent to mobile terminal 10 after the 2nd WEB page is changed into the 2nd WAP page.The user can see the 2nd WAP page on mobile terminal 10, that is, the results page after the user operates a WAP page, thus realized multi-page Session reciprocal process between mobile terminal 10 and the WEB page.
Implement above-mentioned embodiment, effectively solved the problem that occurs in the prior art.In the prior art, due to the restriction of mobile terminal function, so mobile terminal sometimes can't be realized and the WEB page between mutual.The present invention is in the process of the mobile terminal access to WEB page, utilize server generation to replace mobile terminal and the WEB page to carry out alternately, thereby make the interactivity between mobile terminal and the WEB page be guaranteed, help to improve the experience sense that the user uses the mobile terminal access to WEB page.
Provided by the invention is that the WAP page and the method that keeps page interactivity can realize with the programmable logic device (PLD) combination with the WEB conversion of page, also may be embodied as computer software, can be for example a kind of computer program according to embodiments of the invention, move this program product and make computing machine carry out the method that is used for demonstrating.Described computer program comprises computer-readable recording medium, comprises computer program logic or code section on this medium, is used for realizing that described is the WAP page and the method that keeps page interactivity with the WEB conversion of page.Described computer-readable recording medium can be installed in computing machine built-in medium or can be from the removable medium (for example the hot-plugging technology storage is established) of basic computer dismounting.Described built-in medium includes but not limited to rewritable nonvolatile memory, for example RAM, ROM, flash memory and hard disk.Described removable medium includes but not limited to: optical storage media (for example CD-ROM and DVD), magneto-optic storage media (for example MO), magnetic recording medium (for example tape or portable hard drive), have the media (for example storage card) of built-in rewritable nonvolatile memory and have the media (for example ROM box) of built-in ROM.
Above disclosed is only a kind of preferred embodiment of the present invention, certainly can not limit with this interest field of the present invention, and the equivalent variations of therefore doing according to claim of the present invention still belongs to the scope that the present invention is contained.

Claims (26)

1. one kind is the method for the WAP page with the WEB conversion of page, and the step of the method comprises:
Server obtains the WEB page according to the request of access of mobile terminal, and identifies the type of interactive elements in the described WEB page;
Described server is converted into the WAP page with the described WEB page, and in conversion process, described server is based on the type of interactive elements in the described WEB page, and the related information of interactive elements in the described WEB page is attached in the described WAP page;
Described server is sent to described mobile terminal with the described WAP page, and after described mobile terminal operates the interactive elements in the WAP page, receives this operation and described related information;
According to described related information, described server transforms into the operation of described mobile terminal to interactive elements in the described WAP page to the operation of interactive elements accordingly in the described WEB page.
2. method according to claim 1, wherein:
In the described WEB page type of interactive elements comprise data submit to class mutual, click class a kind of or its combination in mutual.
3. method according to claim 2, wherein:
Described data submit to class to comprise alternately simple submission or backfill submission.
4. method according to claim 3, wherein:
If in the described WEB page, the type of interactive elements is simple submission the to, described related information comprises the commit method of described WEB page character encoding format, the described WEB page and the destination address that the described WEB page is submitted to.
5. method according to claim 3, wherein:
If in the described WEB page, the type of interactive elements is that backfill is submitted to, described related information comprises the call number of interactive elements in the identification information of interactive elements in the described WEB page and the described WEB page.
6. according to claim 4 or 5 described methods, wherein:
In the described WEB page, the related information of interactive elements is recorded in the customized label that described server forms, and this customized label is kept in the described WAP page after conversion.
7. method according to claim 2, wherein:
If in the described WEB page, the type of interactive elements is submitted to for clicking class, described related information comprises the click interactive link that the address by the identification information of interactive elements in the described WEB page and the described WEB page consists of.
8. according to claim 5 or 7 described methods, wherein:
In the described WEB page, the identification information of interactive elements comprises the attribute information of described interactive elements, a kind of or its combination in any in Xpath.
9. method according to claim 4, wherein, according to described related information, described server comprises described mobile terminal to the step that the operation of interactive elements in the described WAP page transforms into the operation of corresponding interactive elements in the described WEB page:
Described server is converted into the padding data in the described WAP page data that are applicable to the WEB page according to described WEB page character encoding format, and according to the destination address that commit method and the described WEB page of the described WEB page are submitted to, the data after transforming are committed to third party's website.
10. method according to claim 5, wherein, according to described related information, described server comprises described mobile terminal to the step that the operation of interactive elements in the described WAP page transforms into the operation of corresponding interactive elements in the described WEB page:
Described server forms the backfill data item according to the padding data in identification information, earth-filling method and the described WAP page of interactive elements in the described WEB page, and this backfill data item is sent to the browser process that is positioned at described server processes;
Described browser process is according to described backfill data item positioning interaction element in the WEB page, and is filled in the described WEB page the padding data in the described WAP page is corresponding, to trigger the execution of JavaScript script;
Described browser process is carried out described JavaScript script, and according to the address of the described WEB page, execution result is sent to third party's website.
11. the method according to claim 7, wherein, according to described related information, described server comprises described mobile terminal to the step that the operation of interactive elements in the described WAP page transforms into the operation of corresponding interactive elements in the described WEB page:
Described server parses the address of identification information and the described WEB page of interactive elements in the described WEB page from described click interactive link;
Described server forms the backfill data item according to the identification information of interactive elements in the described WEB page and earth-filling method, and this backfill data item is sent to the browser process that is positioned at described server processes;
Described browser process is according to described backfill data item positioning interaction element in the WEB page, and this interactive elements is carried out clicking operation to trigger the execution of JavaScript script;
Described browser process is carried out described JavaScript script, and according to the address of the described WEB page, execution result is sent to third party's website.
12. the described method of any one according to claim 1 to 3, wherein:
When a plurality of interactive elements are positioned at the same WEB page, and when the operation of these a plurality of interactive elements has particular order, described server record user to the operation of interactive elements, and is sent to this operation the browser process that is positioned at described server and processes on the WAP page; And
Described browser operates the interactive elements on the WEB page accordingly according to the sequence of operation of user on the WAP page.
13. the described method of any one according to claim 1 to 3, wherein:
When a plurality of interactive elements are positioned at two or more WEB pages, and the operation of these a plurality of interactive elements is when having particular order, and described server carries out association with the Cookie of user's unique identification, third party's website and third party's website;
After described server transforms into operation to corresponding interactive elements in the described WEB page with described mobile terminal to the operation of interactive elements in the described WAP page, the Cookie of this operating result and described third party's website is sent to third party's website.
14. one kind is the server of the WAP page with the WEB conversion of page, comprising:
The acquisition request device is for the request of access of obtaining mobile terminal;
Page deriving means is used for obtaining the WEB page according to the request of access of described mobile terminal;
The elemental recognition device is for the type of identifying described WEB page interactive elements;
Page reforming unit, be used for the described WEB page is converted into the WAP page, wherein, in conversion process, described page reforming unit is based on the type of interactive elements in the described WEB page, and the related information of interactive elements in the described WEB page is attached in the described WAP page;
Page R-T unit is used for the described WAP page is sent to described mobile terminal, and after described mobile terminal operates the interactive elements in the WAP page, receives described operation and described related information that described mobile terminal sends;
The operation reforming unit is used for according to described related information, and the operation of described mobile terminal to interactive elements in the described WAP page transformed into the operation of interactive elements accordingly in the described WEB page.
15. server according to claim 14, wherein:
In the described WEB page type of interactive elements comprise data submit to class mutual, click class a kind of or its combination in mutual.
16. server according to claim 15, wherein:
Described data submit to class to comprise alternately simple submission and backfill submission, wherein, described simple submission refers to the interactive elements in the described WEB page is carried out not triggering after data stuffing the type of interaction of JavaScript script, and the type of interaction that refers to the interactive elements in the described WEB page is carried out triggering after data stuffing the JavaScript script is submitted in backfill to.
17. server according to claim 16, wherein:
If in the described WEB page, the type of interactive elements is simple submission the to, the additional related information of described page reforming unit comprises the commit method of described WEB page character encoding format, the described WEB page and the address of the described WEB page.
18. server according to claim 16, wherein:
If in the described WEB page, the type of interactive elements is that backfill is submitted to, the additional related information of described page reforming unit comprises the call number of interactive elements in the identification information of interactive elements in the described WEB page and the described WEB page.
19. according to claim 17 or 18 described servers, wherein:
Described page reforming unit forms customized label in the described WAP page, and the related information of interactive elements in the described WEB page is recorded in described customized label.
20. server according to claim 15, wherein:
If in the described WEB page, the type of interactive elements is submitted to for clicking class, the additional related information of described page reforming unit comprises the click interactive link that the address by the identification information of interactive elements in the described WEB page and the described WEB page consists of.
21. according to claim 18 or 20 described servers, wherein:
In the described WEB page, the identification information of interactive elements comprises the attribute information of described interactive elements, a kind of or its combination in any in Xpath.
22. server according to claim 17, wherein:
Described operation reforming unit is converted into the padding data in the described WAP page data that are applicable to the WEB page according to described WEB page character encoding format, and according to the address of commit method and the described WEB page of the described WEB page, the data after transforming are committed to third party's website.
23. server according to claim 18 also comprises browser:
Described operation reforming unit forms the backfill data item according to the padding data in identification information, earth-filling method and the described WAP page of interactive elements in the described WEB page, and this backfill data item is sent to described browser processes;
Described browser is according to described backfill data item positioning interaction element in the WEB page, and is filled in the described WEB page the padding data in the described WAP page is corresponding, to trigger the execution of JavaScript script;
Described browser process is carried out described JavaScript script, and according to the address of the described WEB page, execution result is sent to third party's website.
24. server according to claim 20 also comprises browser:
Described operation reforming unit parses the address of identification information and the described WEB page of interactive elements in the described WEB page from described click interactive link;
Described operation reforming unit forms the backfill data item according to the identification information of interactive elements in the described WEB page and earth-filling method, and this backfill data item is sent to described browser processes;
Described browser is according to described backfill data item positioning interaction element in the WEB page, and this interactive elements is carried out clicking operation to trigger the execution of JavaScript script;
Described browser process is carried out described JavaScript script, and according to the address of the described WEB page, execution result is sent to third party's website.
25. according to claim 14 to the described server of any one in 16, wherein:
When a plurality of interactive elements are positioned at the same WEB page, and the operation of these a plurality of interactive elements is when having particular order, and operation reforming unit recording user to the operation of interactive elements, and is sent to browser process with this operation and processes on the WAP page; And
Described browser operates the interactive elements on the WEB page accordingly according to the sequence of operation of user on the WAP page.
26. according to claim 14 to the described server of any one in 16, also comprise:
Sign distributor and information association device, wherein:
When a plurality of interactive elements are positioned at two or more WEB pages, and when the operation of these a plurality of interactive elements has particular order, described information association device carries out association with the Cookie of user's unique identification, third party's website and third party's website, wherein, described user's unique identification is distributed by described sign distributor;
After described operation reforming unit transforms into operation to corresponding interactive elements in the described WEB page with described mobile terminal to the operation of interactive elements in the described WAP page, the Cookie of this operating result and described third party's website is sent to third party's website.
CN 201110384447 2011-11-28 2011-11-28 Method and server of processing page interactive elements at time of converting web page into wireless application protocol (WAP) page Pending CN103136238A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201110384447 CN103136238A (en) 2011-11-28 2011-11-28 Method and server of processing page interactive elements at time of converting web page into wireless application protocol (WAP) page

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201110384447 CN103136238A (en) 2011-11-28 2011-11-28 Method and server of processing page interactive elements at time of converting web page into wireless application protocol (WAP) page

Publications (1)

Publication Number Publication Date
CN103136238A true CN103136238A (en) 2013-06-05

Family

ID=48496073

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201110384447 Pending CN103136238A (en) 2011-11-28 2011-11-28 Method and server of processing page interactive elements at time of converting web page into wireless application protocol (WAP) page

Country Status (1)

Country Link
CN (1) CN103136238A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103365542A (en) * 2013-07-01 2013-10-23 携程计算机技术(上海)有限公司 User click behavior showing method and system
CN104360848A (en) * 2014-10-29 2015-02-18 中国建设银行股份有限公司 Flex page converting method and device
CN104423991A (en) * 2013-08-26 2015-03-18 阿里巴巴集团控股有限公司 Webpage loading and webpage data providing method and device of mobile terminal
WO2015165072A1 (en) * 2014-04-30 2015-11-05 Hewlett-Packard Development Company, L.P. Translation for web services
CN107102978A (en) * 2017-05-24 2017-08-29 北京小度信息科技有限公司 Data earth-filling method, device and mobile terminal
CN108647076A (en) * 2018-05-14 2018-10-12 阿里巴巴集团控股有限公司 A kind of page processing method, device and equipment
CN111443983A (en) * 2019-01-16 2020-07-24 北京右划网络科技有限公司 Application virtualization method and device, electronic equipment and storage medium
CN111443983B (en) * 2019-01-16 2024-04-26 北京右划网络科技有限公司 Application program virtualization method and device, electronic equipment and storage medium

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103365542B (en) * 2013-07-01 2016-08-31 上海携程商务有限公司 User clicks on behavior methods of exhibiting and system
CN103365542A (en) * 2013-07-01 2013-10-23 携程计算机技术(上海)有限公司 User click behavior showing method and system
CN104423991B (en) * 2013-08-26 2018-06-15 阿里巴巴集团控股有限公司 Webpage, the method and device that web data is provided are loaded in mobile terminal
CN104423991A (en) * 2013-08-26 2015-03-18 阿里巴巴集团控股有限公司 Webpage loading and webpage data providing method and device of mobile terminal
WO2015165072A1 (en) * 2014-04-30 2015-11-05 Hewlett-Packard Development Company, L.P. Translation for web services
CN104360848A (en) * 2014-10-29 2015-02-18 中国建设银行股份有限公司 Flex page converting method and device
CN104360848B (en) * 2014-10-29 2018-09-04 中国建设银行股份有限公司 A kind of flex page conversion method and device
CN107102978A (en) * 2017-05-24 2017-08-29 北京小度信息科技有限公司 Data earth-filling method, device and mobile terminal
CN107102978B (en) * 2017-05-24 2020-11-24 北京星选科技有限公司 Data backfilling method and device and mobile terminal
CN108647076A (en) * 2018-05-14 2018-10-12 阿里巴巴集团控股有限公司 A kind of page processing method, device and equipment
WO2019218736A1 (en) * 2018-05-14 2019-11-21 阿里巴巴集团控股有限公司 Page processing method, apparatus, and device
CN108647076B (en) * 2018-05-14 2020-07-24 阿里巴巴集团控股有限公司 Page processing method, device and equipment
CN111443983A (en) * 2019-01-16 2020-07-24 北京右划网络科技有限公司 Application virtualization method and device, electronic equipment and storage medium
CN111443983B (en) * 2019-01-16 2024-04-26 北京右划网络科技有限公司 Application program virtualization method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN101211364B (en) Method and system for social bookmarking of resources exposed in web pages
CN102385594B (en) The kernel control method of multi-core browser and device
CN1905701B (en) Method and system for issuing network message to mobile terminal apparatus
CN104142826A (en) Method, device and system for constructing page
CN103136238A (en) Method and server of processing page interactive elements at time of converting web page into wireless application protocol (WAP) page
CN110362372A (en) Page translation method, device, medium and electronic equipment
CN103729285A (en) Method, device and system for testing web page
WO2007100228A1 (en) A system and method for contents upload using a mobile terminal
WO2009085227A1 (en) Embedding metadata with displayable content and applications thereof
CN101146040B (en) Analyzing web site traffic method and device
CN104112002A (en) Form adaption method, device and system
CN105808587B (en) method, gateway equipment and system for embedding information in webpage
US20090222475A1 (en) Methods for web content optimization in single page display environments and systems thereof
CN102368248B (en) Page downloading control method and system of IE kernel browser
CN103678325A (en) Method and device for providing browsing page corresponding to initial page
US20130097192A1 (en) Identifier assigning method, identifier parsing method, and multimedia reading
CN103577447A (en) Method and equipment used for determining page type information of target pages
US8195762B2 (en) Locating a portion of data on a computer network
CN102023998A (en) Method and device for processing webpage so as to display on handheld equipment
CN104978325B (en) A kind of web page processing method, device and user terminal
CN100553250C (en) The method and apparatus of marking of web pages
CN103718179A (en) Information processing apparatus, information processing method, information processing program, and storage medium having information processing program stored therein
CN102142004B (en) Service processing method and service engine
CN109074401A (en) Extraction to the main contents of lists of links
CN101145936B (en) A method and system for adding tags in Web pages

Legal Events

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

Application publication date: 20130605

RJ01 Rejection of invention patent application after publication