CN105095360A - Method and device for processing user requests for browser - Google Patents

Method and device for processing user requests for browser Download PDF

Info

Publication number
CN105095360A
CN105095360A CN201510358711.0A CN201510358711A CN105095360A CN 105095360 A CN105095360 A CN 105095360A CN 201510358711 A CN201510358711 A CN 201510358711A CN 105095360 A CN105095360 A CN 105095360A
Authority
CN
China
Prior art keywords
browser
data
request
user
buffer memory
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
CN201510358711.0A
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 Xiaomi Technology Co Ltd
Xiaomi Inc
Original Assignee
Xiaomi Inc
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 Xiaomi Inc filed Critical Xiaomi Inc
Priority to CN201510358711.0A priority Critical patent/CN105095360A/en
Publication of CN105095360A publication Critical patent/CN105095360A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
    • G06F16/972Access to data in other repository systems, e.g. legacy data or dynamic Web page generation

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The disclosure relates to a method and device for processing user requests for a browser. The method comprises storing related user data fed back by a first request which aims at a user and sent from a server end through a browser, acquiring the related user data from a buffer memory, and processing a second request sent by the user through the browser using the related user data. The related user data can be obtained from the buffer memory of the browser, the browser does not need to send a data request to a server end aiming at a second request, the pressure of data interaction between the browser and the server can be reduced.

Description

For method and the device of browser process user request
Technical field
The disclosure relates to internet arena, particularly relates to a kind of method for browser process user request and device.
Background technology
Browser is the software that can show website and webpage.
In correlation technique, user can be sent to server corresponding to website by the webpage of browser display and send user's request, uses the service that website provides.But the frequent communication of browser in response to user's request and between server, makes the data interaction pressure of browser and server larger, and, be connected once browser and server disconnect network, the request of user cannot be processed, and affect Consumer's Experience.
Summary of the invention
For overcoming Problems existing in correlation technique, the disclosure provides a kind of method for browser process user request and device.
According to the first aspect of disclosure embodiment, a kind of method for browser process user request is provided, comprise: the relevant user data of the first request feedback sent by browser for user by server end is stored into the buffer memory of described browser, from described buffer memory, obtain described relevant user data, use described relevant user data to process the second request that user is sent by browser.
According to the second aspect of disclosure embodiment, a kind of device for browser process user request is provided, comprise: data memory module, the relevant user data that can be configured to the first request feedback sent by browser for user by server end is stored into the buffer memory of described browser.Data acquisition module, can be configured to obtain described relevant user data from described buffer memory.Request processing module, can be configured to use described relevant user data to process the second request that user is sent by browser.
The technical scheme that disclosure embodiment provides can comprise following beneficial effect: the relevant user data due to the first request feedback sent by browser for user by server end is stored into the buffer memory of described browser, described relevant user data is obtained from described buffer memory, described relevant user data is used to process the second request that user is sent by browser, therefore, browser need not send request of data for the second request to server end, the data interaction pressure of browser and server can be reduced, and, be connected even if browser and server disconnect network, browser can rely on the relevant user data stored in buffer memory and process the second request, better user experience.
Should be understood that, it is only exemplary and explanatory that above general description and details hereinafter describe, and can not limit the disclosure.
Accompanying drawing explanation
Accompanying drawing to be herein merged in instructions and to form the part of this instructions, shows and meets embodiment of the present disclosure, and be used from instructions one principle explaining the technical scheme that the disclosure provides.
Fig. 1 is the structural representation of a kind of implementation environment according to an exemplary embodiment.
Fig. 2 is the process flow diagram of a kind of method for browser process user request according to an exemplary embodiment.
Fig. 3 is the process flow diagram of a kind of method for browser process user request according to another exemplary embodiment.
Fig. 4 is the process flow diagram of a kind of method for browser process user request according to another exemplary embodiment.
Fig. 5 is the process flow diagram of a kind of method for browser process user request Gen Ju an exemplary embodiment again.
Fig. 6 is the process flow diagram of a kind of method for browser process user request Gen Ju an exemplary embodiment again.
Fig. 7 is the block diagram of a kind of device for browser process user request according to an exemplary embodiment.
Fig. 8 is the block diagram of a kind of device for browser process user request according to another exemplary embodiment.
Fig. 9 is the block diagram of a kind of device for browser process user request according to another exemplary embodiment.
Figure 10 is the block diagram of a kind of device for browser process user request Gen Ju an exemplary embodiment again.
By above-mentioned accompanying drawing, illustrate the embodiment that the disclosure is clear and definite more detailed description will be had hereinafter.These accompanying drawings and text description be not in order to limited by any mode the disclosure design scope, but by reference to specific embodiment for those skilled in the art illustrate concept of the present disclosure.
Embodiment
Here will be described exemplary embodiment in detail, its sample table shows in the accompanying drawings.When description below relates to accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawing represents same or analogous key element.Embodiment described in following exemplary embodiment does not represent all embodiments consistent with the disclosure.On the contrary, they only with as in appended claims describe in detail, the example of apparatus and method that aspects more of the present disclosure are consistent.
Fig. 1 is the schematic diagram of a kind of implementation environment according to an exemplary embodiment.This implementation environment comprises browser 110, server end 120.
Browser 110 can be run on PC, smart mobile phone, the software on the user terminals such as panel computer.Described browser 110, such as, can include but not limited to InternetExplorer, Firefox etc., also can comprise the various browsers that App (Application, application program) is embedded.PC signal is run on described browser 110 in Fig. 1.
Server end 120 can be the computer system that some can be provided to serve to other machine in network.Such as, can be the computer system of any website or other service suppliers.May be used for the circulation process to business datum, the service etc. of static file.The circulation process of described business datum, such as, can include but not limited to order business, as verification order and user belonging relation, determine order current state, amendment order status is cancellation, returns operating result etc.The service of described static file, such as, can include but not limited to provide pattern file, html file, play up rule, view switching law file etc.
Wherein, the communication network between browser 110 and server end 120 can be wired or wireless network.
Fig. 2 is the process flow diagram of a kind of method for browser process user request according to an exemplary embodiment.The present embodiment is applied to browser shown in Fig. 1 to illustrate in this way.The method can comprise:
In step 210, the relevant user data of the first request feedback sent by browser for user by server end is stored into the buffer memory of described browser.
In a step 220, from described buffer memory, described relevant user data is obtained.
In step 230, described relevant user data is used to process the second request that user is sent by browser.
In sum, server end asks the relevant user data of feedback to be stored into the buffer memory of browser for user's first by the method provided due to the present embodiment, described relevant user data is obtained from described buffer memory, described relevant user data is used to process the second request that user is sent by browser, therefore, browser need not be mutual with server end for second request of user, decrease the data interaction pressure of browser and server, and, be connected even if browser and server disconnect network, browser can rely on the relevant user data stored in buffer memory and process user's request, better user experience.
Fig. 3 is the process flow diagram of a kind of method for browser process user request according to another exemplary embodiment.The present embodiment is applied to browser shown in Fig. 1 to illustrate equally in this way.Such as, in the present embodiment, described browser can be provided with data-interface.Described method can comprise:
In the step 310, browser UI layer sends described first request by described data-interface to described server end.
Such as, described browser logically can be divided into browser UI layer and data-interface this is two-layer.Wherein, described browser UI layer, may be used for playing up the page, the switching of the page, and the renewal display of data, responds user interactions, etc.Described data-interface, may be used for carrying out data interaction with browser UI layer and server end, and, buffer memory relevant user data, etc.Described browser UI layer and described data-interface, can be realized by the program that can realize corresponding function, such as, specifically can show as the executable program that can call or function.Wherein, described data-interface can be stated and the process function that the composition of browser and the mutual data type of server end, data element and attribute, data element possess, the storage organization of data can also be defined, the update strategy of definition data and the process operation after completing renewal.Such as, the update strategy defined and the operation of the process after completing renewal can comprise: in response to the relevant user data receiving server end feedback, the relevant user data tackled in buffer memory upgrades mutually, and the relevant user data interlock after renewal is synchronized to the page of browser UI layer display.Such as, can, by the tag element in the page of described browser is carried out with the data element being used for identifying described relevant user data in described buffer memory the synchronous two-way binding that links, browser UI layer be made to obtain described relevant user data from described buffer memory.It should be noted that, the synchronous embodiment of this interlock is not limited to the present embodiment, and any embodiment involved by the disclosure all can be implemented.
In the present embodiment, the data interaction between described data-interface and server end can ask to realize based on the TCP of browser to server.Described data-interface can provide http request and the websocket request of synchronous/asynchronous two kinds of patterns.
Be understandable that, coming to send described first request to server end by described data-interface, is the embodiment that the present embodiment one is possible.By this embodiment, unified management can be carried out by data-interface to the data interaction between browser and server end, alleviate the complexity that browser UI layer data is mutual, improve the operational efficiency of browser UI layer.In other possible embodiments, can not described data-interface be passed through, send described first request by browser UI layer directly to server end.
In step 320, the relevant user data of the first request feedback sent by browser for user by described data-interface reception server end, and described relevant user data is stored into the buffer memory of described browser.
As required, described relevant user data can be used further to process described first request.Such as, described first request of described process can be render the html page for showing described relevant user data.
In a step 330, described browser UI layer uses described relevant user data to process the second request that user is sent by browser.
Such as, in user's webpage that can be shown by click browser, some button sends the second request.Again such as, can determine to the described second process of asking the need of described relevant user data by browser UI layer, then obtain relevant user data by described data-interface from described buffer memory.Or, again such as, browser UI layer can send described second request to described data-interface, judged the described second process of asking the need of described relevant user data by described data-interface, if needed, then from described buffer memory, obtain described relevant user data and return to browser UI layer.
Wherein, the technical scheme that provides of the disclosure described second request that user is sent by browser and the process of described second request is not limited.Such as, described second request or can be carried out described relevant user data specifying the request calculated for the request that shows described relevant user data.Then can for showing described relevant user data or carrying out specifying the execution calculated to the process of described second request.
In some possible embodiments, described browser can also be provided with the legitimacy verification rule for user's input.In this embodiment, described method when receiving user's input, can also use described legitimacy to verify rule and carrying out legitimacy verification to the user's input received.Such as, the legitimacy verification rule of input can be defined in described data-interface, by described data-interface, legitimacy verification is carried out to the user's input received.Be understandable that, the verification of input legitimacy completed at browser end, the data interaction between browser and server end can be reduced, reduce network data transmission amount, further improve network state not good time Consumer's Experience.
In sum, the method that the present embodiment provides, by arranging the data-interface for carrying out data interaction at browser, unified management can be carried out to the data interaction between browser and server end by described data-interface, define the browser UI layer of subscriber terminal side, data-interface, and, the three-tier architecture of the service layer of server side, alleviate browser and the mutual complexity of servers' data, it is mutual and show that more computational resources can be used for the page by browser UI layer, improve the response efficiency of browser UI layer, and, due to when business data processing does not have larger change, data in buffer memory are stable relatively, therefore, for browser, described relevant user data can be obtained from described buffer memory by described data-interface, and the second request is processed, can avoid because network or service end affect the blank of User when causing responding slack-off, and, synchronous by data linkage, in buffer memory, data single-point upgrades and full view can be made to upgrade.
In addition, come data cached by described data-interface, and legitimacy verification is carried out to input, the lotus root reducing server end business processing and business datum is right, reduce the complexity of server end, reduce website cost of development and reconstruct cost, make service end performance close to the interface capability of API, web services is simplified, improve maneuverability and extendability, by at dissimilar user terminal as mobile phone and the browser of PC arrange the data-interface of corresponding compatibility, the public same server end of dissimilar user terminal can be made, browser also can obtain higher response speed.
Fig. 4 is the process flow diagram of a kind of method for browser process user request according to another exemplary embodiment.The present embodiment is applied to browser shown in Fig. 1 to illustrate equally in this way.The method can comprise:
In step 400, browser sends user right authentication request to server end.
In step 410, server end is for user right authentication request feedback associated user identity data.
At step 420 which, associated user's Identity data store of being fed back for user right authentication request by server end of browser is to the buffer memory of described browser.Such as, associated user's identity data that server end feeds back for user right authentication request can include but not limited to authority and Role Information etc.
In step 430, associated user's identity data that browser feeds back according to server end shows purview certification results page.The shown page can be played up at server end and obtain, and also can play up at browser end and obtain, the disclosure does not limit this.
In step 440, browser sends the service request within the scope of user right to server end.Such as, user can click the button of related service at the page showing business service, makes browser directly or the service request sent to server end by calling data interface within the scope of user right corresponding to this button.Again such as, service request can include but not limited to submit order request to, editing order request, cancellation of order request etc.
In step 450, server end is for the service request feedback associated traffic data within the scope of described user right.
In step 460, server end is stored into the buffer memory of described browser by browser for the associated traffic data that the service request within the scope of described user right is fed back.Such as, correspond to and submit order request to, editing order request or cancellation of order request, server end can include but not limited to order number for the associated traffic data of the service request feedback within the scope of described user right, ordered merchandise news, goods providers information etc.
In step 470, the associated traffic data that browser feeds back according to server end shows service request results page.Such as, correspond to and submit order request to, editing order request or cancellation of order request, order can be shown and submit success or failure page to, editing order success or failure page, cancellation of order success or failure page.
In step 480, browser receives other requests that user is sent by described browser.Such as, order request etc. is inquired about.
In step 490, browser obtains described associated user's identity data or associated traffic data from described buffer memory, to use described associated user's identity data or associated traffic data to process other requests described.Such as, when receiving inquiry order request, the relevant user data that described inquiry order request relates to can be read out from described buffer memory, such as, order number, ordered merchandise news, goods providers information etc., to be presented at these relevant user data in the page of order inquiries result.
It should be noted that, in the technical scheme that the disclosure provides, the associated user's Identity data store fed back for user right authentication request by server end is to the buffer memory of described browser, and, server end is stored into the buffer memory of described browser for the associated traffic data that the service request within the scope of user right is fed back, can select one to implement, also can all implement, the technical scheme that the disclosure provides does not limit this.In the present embodiment shown in Fig. 4, in the mode all implemented, the technical scheme that the disclosure provides is described, and the technical scheme be not used in the disclosure provides limits.
In sum, the method that the present embodiment provides, associated user's Identity data store server end can fed back for user right authentication request is to the buffer memory of described browser, and/or, server end is stored into the buffer memory of described browser for the associated traffic data that the service request within the scope of user right is fed back, thus when the process that other are asked needs described associated user's identity data or associated traffic data, described relevant user data can be obtained from described buffer memory, to use described associated user's identity data or associated traffic data to process other requests, reduce the data interaction pressure of browser and server, and, be connected even if browser and server disconnect network, browser can rely on the relevant user data stored in buffer memory and process user's request, better user experience.
Fig. 5 is the process flow diagram of a kind of method for browser process user request Gen Ju an exemplary embodiment again.The present embodiment is applied to browser shown in Fig. 1 to illustrate equally in this way.The method can comprise:
In step 500, browser is to the linking request of server end transmission to certain webpage.
Such as, can send linking request for website homepage or other any webpages to server end, the chained address related in described linking request is the chained address of website homepage or other any webpages.
In step 510, the html file that browser reception server end feeds back for linking request, and perform to play up to this html file and required play up function file.
Such as, first can obtain the html file of server end feedback, this html file of browser resolves therefrom obtains performing plays up the required list of playing up function file.Play up function file and can include but not limited to pattern file, play up rule file, view switching law file, etc.And then by playing up function file in service end request list, play up function file accordingly from received server-side.
Wherein, described html file, can comprise the UI assembly without playing up, the descriptive text that UI assembly is made up of HTML order, and HTML order can comment, figure, animation, sound, form, link etc.Describedly playing up rule, can be some render instruction.Described pattern file can be by for controlling the file that webpage pattern also allows a kind of markup language be separated with web page contents by style information to be formed, such as, and css file.Described view switching law file, the switching law of the page layout switch corresponding from the display chained address page corresponding to another chained address of display can be comprised, wherein, the mapping relations between the html file that the html file that different linking address is corresponding can provide according to server end and corresponding chained address are determined.
In step 520, browser calls render engine, plays up function file described in using, and carries out page rendering to described html file, obtains the html page after playing up.Described render engine, such as, the command mechanism relying on angularjs (the WEB framework of pure client JavaScript technology of Google exploitation) can be adopted to realize the separation of distinct device platform view pattern, its command file used namely described in play up rule.
In step 530, html page described in browser display.
In some possible embodiments, can also other html files of reception server end feedback, perform to play up to described other html files and required play up function file, and, described mapping relations between other html file and corresponding chained addresses.Such as, while the html file of reception server end feedback website homepage, can receive the html file that the chained address of as interior chain relevant with this website homepage is corresponding, and these HTML execution is played up required play up function file.When needing to show html page corresponding to other chained addresses, such as, when user clicks chain in another html page corresponding in website homepage, or, during to the html page needing Graphics Processing result corresponding after some request process of user, etc., according to described mapping relations, what read out html file corresponding to other chained addresses described and correspondence plays up function file, call render engine, use the html file that reads out and play up function file and carry out page rendering, obtain the html page after playing up, display play up after html page.
In step 540, browser receives the first request that user is sent by operations such as button click or input instructions in the html page of display.
In step 550, browser sends described first request to server end.
In step 560, browser reception server end is for the relevant user data of described first request feedback.
In step 570, server end asks the relevant user data of feedback to be stored into the buffer memory of browser for user's first by browser.
In step 580, receive the second request that user is sent by described browser.
In step 590, obtain from described buffer memory the relevant user data required for the process of described second request, use described relevant user data to process described second request.
In sum, the method that the present embodiment provides, can move on to browser end by page rendering and complete, and reduces the data interaction pressure between browser and server end, reduces network data transmission amount, improve network state not good time Consumer's Experience.
Fig. 6 is the process flow diagram of a kind of method for browser process user request Gen Ju an exemplary embodiment again.The present embodiment is applied to browser shown in Fig. 1 to illustrate equally in this way.The method can comprise:
In step 610, browser UI layer receives the website homepage address of user's input, and browser UI layer initiates to server end the request obtaining website homepage.
In step 611, the unified gateway of server end is by request forward to file service module, and file service module, according to browser place type of user terminal, reads in the homepage html file that this terminal type is corresponding.
In step 612, server end to return to the homepage html file to browser UI layer.
In step 613, browser UI layer resolves homepage html file, and what obtain showing this website homepage plays up function file, other html files, and the static file list of playing up function file of other html files.
In step 614, browser UI layer is to the file in server end request list.
In step 615, the unified gateway of server end is by this request forward to file service module, and the store path corresponding by the file of file service module listed by list, reads in corresponding file.
In step 616, the file that server end is asked in browser UI layer return-list, comprising: html file, and html file play up function file.
In step 617, browser UI layer is initialization data storage object [Session object, service data object] in the buffer.
In step 618, browser UI layer calls render engine, and what use homepage was corresponding plays up function file, carries out page rendering, obtain the homepage page after playing up to homepage html file, the display homepage page.
In step 619, browser UI layer receives the authentication information of user's input by the homepage page, and the verification function of browser UI layer initiates authentication request by calling data interface to service end.
In step 620, described authentication request is forwarded to Service Processing Module by the unified gateway of server end, by Service Processing Module, certification is carried out to described authentication request, generate the cookie information comprising authority and Role Information etc., be written in the Header of authentication result message.
In step 621, server end is to described data-interface return authentication results messages.
In step 622, described data-interface is by the Session object of the associated user's Identity data store to browser rs cache that comprise authority and Role Information etc. in authentication result message.
In step 623, browser UI layer calls render engine, using the function file of playing up for the html file showing authentication result to carry out page rendering to the html file for showing authentication result, obtaining the authentication result html page after playing up, show the authentication result html page after playing up.
In step 624, browser UI layer receives the click of user to chain that is interior in certain page of display, according to the mapping relations in view switching law file between html file and corresponding chained address, determine the html file that clicked chained address is corresponding, so read out html file corresponding to clicked chained address and correspondence play up function file.
In step 625, browser UI layer calls render engine, use the html file that reads out and execution to play up required function file of playing up and carry out page rendering, obtain clicked chained address corresponding play up after html page, show the html page that clicked chained address is corresponding.
In step 626, browser UI layer clicks button of cancelling an order in response to user in the page for cancelling an order, and triggers corresponding function call data-interface of cancelling an order and searches corresponding sequence information in the buffer.It should be noted that, the example of asking using the request of cancelling an order as user first is in the present embodiment described the technical scheme that the disclosure provides, in actual applications, described user first request can be other requests arbitrarily, and the technical scheme that the disclosure provides does not limit this.
In step 627, after there is this sequence information in described data-interface determination buffer memory, send to server end the request of cancelling an order.
In step 628, after the unified gateway of server end receives the request of cancelling an order, to cancel an order request forward to Service Processing Module, and Service Processing Module searches corresponding process function of cancelling an order, and by cancelling an order, process function processes this request of cancelling an order
In step 629, server end returns to described data-interface result of cancelling an order.
In act 630, described data-interface verifies receiving result of cancelling an order, and result of cancelling an order is saved in service data object corresponding to the Session object determined according to user identity, namely in browser rs cache.
In step 631, browser UI layer calls render engine, what use the html file for showing cancellation of order result plays up function file, page rendering is carried out to the html file for showing cancellation of order result, obtain the cancellation of order result html page after playing up, show the cancellation of order result html page after playing up.
In step 632, browser UI layer clicks all Order button of inquiry in response to user in certain page, obtains all sequence informations of this user by calling described data-interface from described buffer memory.
In step 633, browser UI layer calls render engine, using corresponding function file of playing up to carry out page rendering to the html file for showing all sequence informations, obtaining the sequence information html page after playing up, show the sequence information html page after playing up.In this step, page rendering is carried out to the html file of all sequence informations of display, is the process of request user being inquired about to all orders.
Wherein, browser UI layer obtains all sequence informations of this user from described buffer memory embodiment by calling data interface can be such as, browser UI layer is by carrying out with the data element that described data-interface uses when writing corresponding sequence information to buffer memory the synchronous two-way binding that links by being used for the tag element shown in the html file of all sequence informations, described relevant user data is obtained from described buffer memory, wherein, the data element that described data-interface uses when writing corresponding sequence information to buffer memory is in described buffer memory the data element being used for identifying described sequence information.
It should be noted that, the technical scheme that the disclosure provides is described to inquire about all orders as the example that second asks in the present embodiment, in actual applications, described second request can be other requests arbitrarily, and the technical scheme that the disclosure provides does not limit this.
In the present embodiment, for some possible users request, exemplary illustration has been carried out to the technical scheme that the disclosure provides.Visible by these exemplary illustrations, the technical scheme that the disclosure provides can carry out unified management by data-interface to the data interaction between browser and server end, alleviate browser and the mutual complexity of servers' data, it is mutual and show that more computational resources can be used for the page by browser UI layer, improve the response efficiency of browser UI layer, and, page rendering is moved on to browser end complete, reduce the data interaction pressure between browser and server end, reduce network data transmission amount, improve network state not good time Consumer's Experience.
Fig. 7 is a kind of device block diagram for browser process user request according to an exemplary embodiment.With reference to Fig. 7, this device can comprise data memory module 710, data acquisition module 720 and request processing module 730.
This data memory module 710, the relevant user data that can be configured to the first request feedback sent by browser for user by server end is stored into the buffer memory of described browser.
This data acquisition module 720, can be configured to obtain described relevant user data from described buffer memory.
This request processing module 730, can be configured to use described relevant user data to process the second request that user is sent by browser.
In sum, the device that the present embodiment provides, by asking the relevant user data fed back to be stored into the buffer memory of browser for user first server end, receive the second request that user is sent by described browser, obtain the relevant user data required for the process of described second request from described buffer memory, to use described relevant user data to process described second request, therefore, browser need not send request of data for the second request to server end, the data interaction pressure of browser and server can be reduced, and, be connected even if browser and server disconnect network, browser can rely on the relevant user data stored in buffer memory and process the second request, better user experience.
Fig. 8 is a kind of device block diagram for browser process user request according to another exemplary embodiment.In this embodiment, described browser can be provided with data-interface.Described data memory module 710, can be configured to the buffer memory by described data-interface, described relevant user data being stored into described browser.Described data acquisition module 720, can be configured to from described buffer memory, obtain described relevant user data by described data-interface.
Alternatively, this device can also comprise: request sending module 740, can be configured to send described first request by described data-interface to described server end.
Alternatively, described browser can also be provided with the legitimacy verification rule for user's input, described device can also comprise: data check module 750, can being configured to when receiving user's input, using described legitimacy to verify rule and legitimacy verification is carried out to the user's input received.
Alternatively, described data acquisition module 720, the tag element that can be configured in the page by being shown by browser carries out with the data element being used for identifying described relevant user data in described buffer memory the synchronous two-way binding that links, from described buffer memory, obtain described relevant user data.
Alternatively, described data memory module 710, can be configured to associated user's Identity data store of being fed back for the purview certification request of user by server end buffer memory to described browser; And/or, be configured to buffer memory server end being stored into described browser for the associated traffic data that the service request within the scope of user right is fed back.
Alternatively, described device can also comprise: the first file receive module 760, can be configured to the html file that reception server end feeds back for linking request, and performs to play up to this html file and required play up function file.First engine calling module 761, can be configured to call render engine, play up function file described in using, carry out page rendering to described html file, obtain the html page after playing up.First page display module 762, can be configured to the described first engine calling module of display and play up the html page obtained.
Alternatively, described device can also comprise: the second file receive module 770, other html files of reception server end feedback can be configured to, and other html files described corresponding play up function file, and, described mapping relations between other html file and corresponding chained addresses.File read module 771, can be configured to when needing to show html page corresponding to other chained addresses, and according to described mapping relations, what read out html file corresponding to other chained addresses described and correspondence plays up function file.Second engine calling module 772, can be configured to call render engine, the html file using described file read module 771 to read out and play up function file and carry out page rendering, obtains the html page after playing up.Second page display module 773, can be configured to the described second engine calling module 772 of display and play up the html page obtained.
In sum, the technical scheme that the present embodiment provides can carry out unified management by data-interface to the data interaction between browser and server end, alleviate browser and the mutual complexity of servers' data, it is mutual and show that more computational resources can be used for the page by browser UI layer, improve the response efficiency of browser UI layer, and, page rendering is moved on to browser end complete, reduce the data interaction pressure between browser and server end, reduce network data transmission amount, improve network state not good time Consumer's Experience.
About the device in above-described embodiment, wherein the concrete mode of modules executable operations has been described in detail in about the embodiment of the method, will not elaborate explanation herein.
Fig. 9 is the block diagram of a kind of device 900 for browser process user request according to an exemplary embodiment.Such as, device 900 can be mobile phone, computing machine, digital broadcast terminal, messaging devices, game console, tablet device, Medical Devices, body-building equipment, personal digital assistant etc.
With reference to Fig. 9, device 900 can comprise following one or more assembly: processing components 902, storer 904, electric power assembly 906, multimedia groupware 908, audio-frequency assembly 910, the interface 912 of I/O (I/O), sensor module 914, and communications component 916.
The integrated operation of the usual control device 900 of processing components 902, such as with display, call, data communication, camera operation and record operate the operation be associated.Processing components 902 can comprise one or more processor 920 to perform instruction, to complete all or part of step of above-mentioned method.In addition, processing components 902 can comprise one or more module, and what be convenient between processing components 902 and other assemblies is mutual.Such as, processing components 902 can comprise multi-media module, mutual with what facilitate between multimedia groupware 908 and processing components 902.
Storer 904 is configured to store various types of data to be supported in the operation of equipment 900.The example of these data comprises for any application program of operation on device 900 or the instruction of method, contact data, telephone book data, message, picture, video etc.Storer 904 can be realized by the volatibility of any type or non-volatile memory device or their combination, as static RAM (SRAM), Electrically Erasable Read Only Memory (EEPROM), Erasable Programmable Read Only Memory EPROM (EPROM), programmable read only memory (PROM), ROM (read-only memory) (ROM), magnetic store, flash memory, disk or CD.
The various assemblies that electric power assembly 906 is device 900 provide electric power.Electric power assembly 906 can comprise power-supply management system, one or more power supply, and other and the assembly generating, manage and distribute electric power for device 900 and be associated.
Multimedia groupware 908 is included in the screen providing an output interface between described device 900 and user.In certain embodiments, screen can comprise liquid crystal display (LCD) and touch panel (TP).If screen comprises touch panel, screen may be implemented as touch-screen, to receive the input signal from user.Touch panel comprises one or more touch sensor with the gesture on sensing touch, slip and touch panel.Described touch sensor can the border of not only sensing touch or sliding action, but also detects the duration relevant to described touch or slide and pressure.In certain embodiments, multimedia groupware 908 comprises a front-facing camera and/or post-positioned pick-up head.When equipment 900 is in operator scheme, during as screening-mode or video mode, front-facing camera and/or post-positioned pick-up head can receive outside multi-medium data.Each front-facing camera and post-positioned pick-up head can be fixing optical lens systems or have focal length and optical zoom ability.
Audio-frequency assembly 910 is configured to export and/or input audio signal.Such as, audio-frequency assembly 910 comprises a microphone (MIC), and when device 900 is in operator scheme, during as call model, logging mode and speech recognition mode, microphone is configured to receive external audio signal.The sound signal received can be stored in storer 904 further or be sent via communications component 916.In certain embodiments, audio-frequency assembly 910 also comprises a loudspeaker, for output audio signal.
I/O interface 912 is for providing interface between processing components 902 and peripheral interface module, and above-mentioned peripheral interface module can be keyboard, some striking wheel, button etc.These buttons can include but not limited to: home button, volume button, start button and locking press button.
Sensor module 914 comprises one or more sensor, for providing the state estimation of various aspects for device 900.Such as, sensor module 914 can detect the opening/closing state of equipment 900, the relative positioning of assembly, such as described assembly is display and the keypad of device 900, the position of all right pick-up unit 900 of sensor module 914 or device 900 1 assemblies changes, the presence or absence that user contacts with device 900, the temperature variation of device 900 orientation or acceleration/deceleration and device 900.Sensor module 914 can comprise proximity transducer, be configured to without any physical contact time detect near the existence of object.Sensor module 914 can also comprise optical sensor, as CMOS or ccd image sensor, for using in imaging applications.In certain embodiments, this sensor module 914 can also comprise acceleration transducer, gyro sensor, Magnetic Sensor, pressure transducer or temperature sensor.
Communications component 916 is configured to the communication being convenient to wired or wireless mode between device 900 and other equipment.Device 900 can access the wireless network based on communication standard, as WiFi, 2G or 3G, or their combination.In one exemplary embodiment, communications component 916 receives from the broadcast singal of external broadcasting management system or broadcast related information via broadcast channel.In one exemplary embodiment, described communications component 916 also comprises near-field communication (NFC) module, to promote junction service.Such as, can based on radio-frequency (RF) identification (RFID) technology in NFC module, Infrared Data Association (IrDA) technology, ultra broadband (UWB) technology, bluetooth (BT) technology and other technologies realize.
In the exemplary embodiment, device 900 can be realized, for performing said method by one or more application specific integrated circuit (ASIC), digital signal processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD) (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components.
In the exemplary embodiment, additionally provide a kind of non-transitory computer-readable recording medium comprising instruction, such as, comprise the storer 904 of instruction, above-mentioned instruction can perform said method by the processor 920 of device 900.Such as, described non-transitory computer-readable recording medium can be ROM, random access memory (RAM), CD-ROM, tape, floppy disk and optical data storage devices etc.
Figure 10 is the block diagram of a kind of device 1000 for browser process user request according to an exemplary embodiment.Such as, device 1000 may be provided in a server.With reference to Figure 10, device 1000 comprises processing components 1022, and it comprises one or more processor further, and the memory resource representated by storer 1032, can such as, by the instruction of the execution of processing components 1022, application program for storing.The application program stored in storer 1032 can comprise each module corresponding to one group of instruction one or more.In addition, processing components 1022 is configured to perform instruction, the step performed by the server end related to perform the above method.
Device 1000 can also comprise the power management that a power supply module 1026 is configured to actuating unit 1000, and a wired or wireless network interface 1050 is configured to device 1000 to be connected to network, and input and output (I/O) interface 1058.Device 1000 can operate the operating system based on being stored in storer 1032, such as WindowsServerTM, MacOSXTM, UnixTM, LinuxTM, FreeBSDTM or similar.
Those skilled in the art, at consideration instructions and after putting into practice technical scheme disclosed herein, will easily expect other embodiment of the present disclosure.The application is intended to contain any modification of the present disclosure, purposes or adaptations, and these modification, purposes or adaptations are followed general principle of the present disclosure and comprised the undocumented common practise in the art of the disclosure or conventional techniques means.Instructions and embodiment are only regarded as exemplary, and true scope of the present disclosure and spirit are pointed out by claim below.
Should be understood that, the disclosure is not limited to precision architecture described above and illustrated in the accompanying drawings, and can carry out various amendment and change not departing from its scope.The scope of the present disclosure is only limited by appended claim.

Claims (17)

1., for a method for browser process user request, it is characterized in that, comprising:
The relevant user data of the first request feedback sent by browser for user by server end is stored into the buffer memory of described browser;
Described relevant user data is obtained from described buffer memory;
Described relevant user data is used to process the second request that user is sent by browser.
2. method according to claim 1, is characterized in that, described browser is provided with data-interface;
The buffer memory that the relevant user data of described the first request feedback sent by browser for user by server end is stored into described browser comprises: the buffer memory by described data-interface, described relevant user data being stored into described browser;
Describedly from described buffer memory, obtain described relevant user data comprise: from described buffer memory, obtain described relevant user data by described data-interface.
3. method according to claim 2, is characterized in that, also comprises:
Described first request is sent to described server end by described data-interface.
4. the method according to any one of claim 1-3, is characterized in that, described browser is provided with the legitimacy verification rule for user's input, and described method also comprises:
When receiving user's input, using described legitimacy to verify rule and legitimacy verification is carried out to the user's input received.
5. the method according to any one of claim 1-3, is characterized in that, describedly from buffer memory, obtains described relevant user data comprise:
Carry out with the data element being used for identifying described relevant user data in described buffer memory the synchronous two-way binding that links by the tag element in the page that will be shown by browser, from described buffer memory, obtain described relevant user data.
6. the method according to any one of claim 1-3, is characterized in that, the buffer memory that the relevant user data of described the first request feedback sent by browser for user by server end is stored into described browser comprises:
The associated user's Identity data store fed back for the purview certification request of user by server end is to the buffer memory of described browser;
And/or,
Server end is stored into the buffer memory of described browser for the associated traffic data that the service request within the scope of user right is fed back.
7. the method according to any one of claim 1-3, is characterized in that, also comprises:
The html file that reception server end feeds back for linking request, and perform to play up to this html file and required play up function file;
Call render engine, described in using, play up function file, page rendering is carried out to described html file, obtain the html page after playing up;
Show described html page.
8. method according to claim 7, is characterized in that, also comprises:
Reception server end feedback other html files, and other html files described corresponding play up function file, and, described mapping relations between other html file and corresponding chained addresses;
When needing to show html page corresponding to other chained addresses, according to described mapping relations, what read out html file corresponding to other chained addresses described and correspondence plays up function file;
Call render engine, use the html file that reads out and play up function file and carry out page rendering, obtain the html page after playing up;
Show described html page.
9., for a device for browser process user request, it is characterized in that, comprising:
Data memory module, the relevant user data being configured to the first request feedback sent by browser for user by server end is stored into the buffer memory of described browser;
Data acquisition module, is configured to obtain described relevant user data from described buffer memory;
Request processing module, is configured to use described relevant user data to process the second request that user is sent by browser.
10. device according to claim 9, is characterized in that, described browser is provided with data-interface;
Described data memory module, is configured to the buffer memory by described data-interface, described relevant user data being stored into described browser;
Described data acquisition module, is configured to from described buffer memory, obtain described relevant user data by described data-interface.
11. devices according to claim 10, is characterized in that, also comprise:
Request sending module, is configured to send described first request by described data-interface to described server end.
12. devices according to any one of claim 9-11, is characterized in that, described browser is provided with the legitimacy verification rule for user's input, and described device also comprises:
Data check module, is configured to when receiving user's input, uses described legitimacy to verify rule and carries out legitimacy verification to the user's input received.
13. devices according to any one of claim 9-11, it is characterized in that, described data acquisition module, the tag element be configured in the page by being shown by browser carries out with the data element being used for identifying described relevant user data in described buffer memory the synchronous two-way binding that links, from described buffer memory, obtain described relevant user data.
14. devices according to any one of claim 9-11, is characterized in that, described data memory module, are configured to associated user's Identity data store of being fed back for the purview certification request of user by server end buffer memory to described browser; And/or, be configured to buffer memory server end being stored into described browser for the associated traffic data that the service request within the scope of user right is fed back.
15. devices according to any one of claim 9-11, is characterized in that, also comprise:
First file receive module, is configured to the html file that reception server end feeds back for linking request, and performs to play up to this html file and required play up function file;
First engine calling module, is configured to call render engine, plays up function file described in using, and carries out page rendering to described html file, obtains the html page after playing up;
First page display module, is configured to the described first engine calling module of display and plays up the html page obtained.
16. devices according to claim 15, is characterized in that, also comprise:
Second file receive module, be configured to reception server end feedback other html files, and other html files described corresponding play up function file, and, described mapping relations between other html file and corresponding chained addresses;
File read module, is configured to when needing to show html page corresponding to other chained addresses, and according to described mapping relations, what read out html file corresponding to other chained addresses described and correspondence plays up function file;
Second engine calling module, is configured to call render engine, the html file using described file read module to read out and play up function file and carry out page rendering, obtains the html page after playing up;
Second page display module, is configured to the described second engine calling module of display and plays up the html page obtained.
17. 1 kinds, for the device of browser process user request, is characterized in that, comprising:
Processor;
For the storer of storage of processor executable instruction;
Wherein, described processor is configured to:
The relevant user data of the first request feedback sent by browser for user by server end is stored into the buffer memory of described browser;
Described relevant user data is obtained from described buffer memory;
Described relevant user data is used to process the second request that user is sent by browser.
CN201510358711.0A 2015-06-25 2015-06-25 Method and device for processing user requests for browser Pending CN105095360A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510358711.0A CN105095360A (en) 2015-06-25 2015-06-25 Method and device for processing user requests for browser

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510358711.0A CN105095360A (en) 2015-06-25 2015-06-25 Method and device for processing user requests for browser

Publications (1)

Publication Number Publication Date
CN105095360A true CN105095360A (en) 2015-11-25

Family

ID=54575797

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510358711.0A Pending CN105095360A (en) 2015-06-25 2015-06-25 Method and device for processing user requests for browser

Country Status (1)

Country Link
CN (1) CN105095360A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106790158A (en) * 2016-12-29 2017-05-31 郑州云海信息技术有限公司 A kind of data processing method based on B/S frameworks, system and client
CN106875262A (en) * 2017-02-28 2017-06-20 网易无尾熊(杭州)科技有限公司 Method, device and computer-readable recording medium for order processing
CN107203576A (en) * 2016-03-18 2017-09-26 北京京东尚科信息技术有限公司 Information synchronization method and device
CN108881431A (en) * 2018-06-15 2018-11-23 深圳市买买提信息科技有限公司 A kind of front and back end separation method, device and terminal device
CN110543370A (en) * 2019-08-07 2019-12-06 江苏艾佳家居用品有限公司 method for rewriting UE4 rendering engine bottom layer and communication mechanism thereof
CN112000494A (en) * 2020-08-28 2020-11-27 北京焦点新干线信息技术有限公司 Instant data transmission method and system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101201827A (en) * 2006-12-14 2008-06-18 阿里巴巴公司 Method and system for displaying web page
CN102012907A (en) * 2010-11-10 2011-04-13 上海光芒科技有限公司 Method and system for cache at browser client side
US20130198325A1 (en) * 2012-01-26 2013-08-01 Motorola Mobility Llc Provision and running a download script

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101201827A (en) * 2006-12-14 2008-06-18 阿里巴巴公司 Method and system for displaying web page
CN102012907A (en) * 2010-11-10 2011-04-13 上海光芒科技有限公司 Method and system for cache at browser client side
US20130198325A1 (en) * 2012-01-26 2013-08-01 Motorola Mobility Llc Provision and running a download script

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107203576A (en) * 2016-03-18 2017-09-26 北京京东尚科信息技术有限公司 Information synchronization method and device
CN107203576B (en) * 2016-03-18 2020-06-05 北京京东尚科信息技术有限公司 Information synchronization method and device
CN106790158A (en) * 2016-12-29 2017-05-31 郑州云海信息技术有限公司 A kind of data processing method based on B/S frameworks, system and client
CN106875262A (en) * 2017-02-28 2017-06-20 网易无尾熊(杭州)科技有限公司 Method, device and computer-readable recording medium for order processing
CN106875262B (en) * 2017-02-28 2021-03-26 阿里巴巴(中国)有限公司 Method, apparatus and computer-readable storage medium for order processing
CN108881431A (en) * 2018-06-15 2018-11-23 深圳市买买提信息科技有限公司 A kind of front and back end separation method, device and terminal device
CN110543370A (en) * 2019-08-07 2019-12-06 江苏艾佳家居用品有限公司 method for rewriting UE4 rendering engine bottom layer and communication mechanism thereof
CN110543370B (en) * 2019-08-07 2022-07-08 江苏艾佳家居用品有限公司 Method for rewriting UE4 rendering engine bottom layer and communication mechanism thereof
CN112000494A (en) * 2020-08-28 2020-11-27 北京焦点新干线信息技术有限公司 Instant data transmission method and system

Similar Documents

Publication Publication Date Title
CN107943439B (en) Interface moving method and device, intelligent terminal, server and operating system
CN105095360A (en) Method and device for processing user requests for browser
KR101246972B1 (en) System and method for presenting a contextual action
US9313296B1 (en) Method and system for a hosted mobile management service architecture
US9690445B2 (en) Controlling a computing device
CN104778063A (en) Method and device for updating resource
EP3726376B1 (en) Program orchestration method and electronic device
EP3561692A1 (en) Method and device for displaying web page content
CN104462570B (en) Web page contents acquisition methods and device
CN105205072B (en) The methods of exhibiting and system of webpage information
CN105245518A (en) Website hijacking detection method and device
CN113225572A (en) Method, device and system for displaying page elements in live broadcast room
CN110858173A (en) Data processing method and device and data processing device
CN105530165A (en) Instant chat method and device
CN105630949A (en) Page loading and backspacing method and device
CN106066868A (en) Webpage loading method and device
CN111581561A (en) Page display control method and device, client and storage medium
CN106790743A (en) Information transferring method, device and mobile terminal
CN104182505A (en) Webpage rearrangement method and device
KR20140103363A (en) Messenger system and messenger service method in the same
CN108235812A (en) A kind of advertisement demonstration method and terminal
CN105095163A (en) Web page editing method and device
CN104268611A (en) Webpage synchronizing method and device
CN104219299B (en) Data transmission method and device
CN104063424A (en) Webpage picture displaying method and device

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: 20151125

RJ01 Rejection of invention patent application after publication