[go: up one dir, main page]

CN105608078B - A kind of method and apparatus of Webpage live preview - Google Patents

A kind of method and apparatus of Webpage live preview Download PDF

Info

Publication number
CN105608078B
CN105608078B CN201410590006.9A CN201410590006A CN105608078B CN 105608078 B CN105608078 B CN 105608078B CN 201410590006 A CN201410590006 A CN 201410590006A CN 105608078 B CN105608078 B CN 105608078B
Authority
CN
China
Prior art keywords
page
preview
webpage
configuration parameters
user terminal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201410590006.9A
Other languages
Chinese (zh)
Other versions
CN105608078A (en
Inventor
张哲�
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Alibaba Group Holding Ltd
Original Assignee
Alibaba Group Holding Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201410590006.9A priority Critical patent/CN105608078B/en
Publication of CN105608078A publication Critical patent/CN105608078A/en
Application granted granted Critical
Publication of CN105608078B publication Critical patent/CN105608078B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The present invention relates to computer fields, disclose a kind of method and apparatus of Webpage live preview, when carrying out preview to page configuration result to solve attendant, it is easy to appear temporal lag and is easy to appear the inconsistence problems of terminal page and preview page.This method are as follows: service configuration backstage passes through data source middle layer and obtains page configuration parameter on specified pseudo- data backstage, the Webpage of dimension is generated according to the display parameters of user terminal, and page configuration parameter is loaded based on Webpage, generate preview page.In this way, the display parameters and page configuration parameter of user terminal are obtained on pseudo- data backstage by data source middle layer, to generate the preview page for meeting user terminal use demand, not only effectively increase the formation efficiency of preview page, the content consistency for also ensuring preview page and terminal page simultaneously reduces the workload and work difficulty of the maintenance of the later period page.

Description

Method and device for previewing webpage in real time
Technical Field
The invention relates to the field of computers, in particular to a method and a device for previewing a webpage in real time.
Background
In the field of mobile internet services, a service person is required to configure some data and finally present the data to a terminal in the form of a HyperText Markup Language (HTML) page. In order to obtain the configuration result, the service personnel needs to preview the effect during configuration. However, the page presented to the terminal is the configured content, the page presented to the service staff is the content configuration interface and the preview content presented to the terminal, and the interaction mode presented to the terminal and the interaction mode presented to the service staff and the acquisition mode of the display data are greatly different.
In the prior art, there are three main methods for real-time page preview:
the first method is a traditional development process, and service personnel can see the preview effect after configuration by a service configuration background and then release.
However, this technique cannot make real-time preview because it can obtain preview effect only after release, and there is a delay in time.
The second method is that the terminal and the service configuration background are respectively developed, and the terminal and the service configuration background negotiate and apply the same configuration parameters according to actual requirements and then run synchronously.
However, the method is a terminal-oriented system and a service configuration background-oriented system, so that it is difficult to achieve complete consistency between the terminal page and the preview page of the service configuration background, and the cost of maintaining synchronization is high.
The third method is through the page configuration of strong control, this method is that the service personnel "develop" the page in the backstage supporter of service configuration, produce the terminal page according to the page configuration.
The method can be used in a very specific business scene only because the configuration is completed by service personnel and the terminal page is generated according to the fixed style configuration. For example, the service configuration background can only simply configure the picture, font size and color, etc. of the page, and cannot update the page according to the transformation of the use requirement.
Disclosure of Invention
The embodiment of the invention provides a method and a device for previewing a webpage in real time, which are used for solving the problems that in the prior art, when a service worker previews a webpage configuration result, time lag easily occurs and inconsistency between a terminal webpage and a previewed webpage easily occurs.
The embodiment of the invention provides a specific technical method as follows:
a method for previewing a webpage in real time comprises the following steps:
the service configuration background acquires page configuration parameters from the specified pseudo data background through the data source middle layer; the data source middle layer and the data source middle layer of the user terminal acquire page configuration parameters based on the same operation mechanism, and the pseudo data background is a data storage device arranged for the simulation server;
and the service configuration background generates a webpage with corresponding specification according to the display parameters of the user terminal acquired from the server, and loads the webpage configuration parameters based on the webpage to generate a preview page.
Therefore, the preview page of the service configuration background acquires the page configuration parameters in the pseudo data background through the data source intermediate layer based on the same operation mechanism as the foreground, so that the preview page meeting the use requirements of the user terminal is generated, the generation efficiency of the preview page is effectively improved, the content consistency of the preview page and the terminal page is ensured, and the workload and the working difficulty of later page maintenance are reduced.
Preferably, the step of obtaining the page configuration parameters at the specified pseudo data background by the service configuration background through the data source middle layer includes:
acquiring basic display information from a server according to the instruction and registering the basic display information to a pseudo data service desk, or directly acquiring the basic display information according to the instruction and registering the basic display information to the pseudo data service desk;
and when a webpage page preview instruction is received, accessing the pseudo data service desk through the data source intermediate layer to obtain the page configuration parameters based on the basic display information.
Preferably, the latest display parameters of the user terminal are obtained according to a set period, and the locally stored display parameters of the user terminal are updated.
Preferably, further comprising: after a preview page is generated, when an updating instruction is received, acquiring updated page configuration parameters from a server through the data source intermediate layer and registering the updated page configuration parameters to a pseudo data service desk, or directly acquiring the updated page configuration parameters through the data source intermediate layer and registering the updated page configuration parameters to the pseudo data service desk;
and when a webpage page preview instruction is received, generating a webpage with corresponding specification according to the display parameters of the user terminal acquired from the server, and loading the updated page configuration parameters based on the webpage to generate a new preview page.
Preferably, further comprising: and refreshing the preview page after the preview page is generated.
An apparatus for real-time preview of a web page, comprising:
a data source intermediate layer: the method comprises the steps of acquiring page configuration parameters at a specified pseudo data background; the data source middle layer and the data source middle layer of the user terminal acquire page configuration parameters based on the same operation mechanism, and the pseudo data background is a data storage device arranged for the simulation server;
a preview unit: the system comprises a server and a preview page, wherein the server is used for acquiring display parameters of a user terminal from the server, generating a webpage with corresponding specifications according to the display parameters of the user terminal acquired from the server, and loading the page configuration parameters based on the webpage to generate the preview page.
Therefore, the preview page of the service configuration background acquires the page configuration parameters in the pseudo data background through the data source intermediate layer based on the same operation mechanism as the foreground, so that the preview page meeting the use requirements of the user terminal is generated, the generation efficiency of the preview page is effectively improved, the content consistency of the preview page and the terminal page is ensured, and the workload and the working difficulty of later page maintenance are reduced.
Preferably, when the specified pseudo data background obtains the page configuration parameters, the data source intermediate layer is specifically configured to:
acquiring basic display information from a server according to the instruction and registering the basic display information to a pseudo data service desk, or directly acquiring the basic display information according to the instruction and registering the basic display information to the pseudo data service desk;
and when a webpage page preview instruction is received, accessing the pseudo data service desk to acquire the page configuration parameters based on the basic display information.
Preferably, the data source intermediate layer is further configured to:
and acquiring the latest display parameters of the user terminal according to a set period, and updating the locally stored display parameters of the user terminal.
Preferably, the data source intermediate layer is further configured to:
after the preview page is generated, when an updating instruction is received, acquiring updated page configuration parameters from a server and registering the updated page configuration parameters to a pseudo data service desk, or directly acquiring the updated page configuration parameters and registering the updated page configuration parameters to the pseudo data service desk;
the preview unit is further to:
and when a webpage page preview instruction is received, generating a webpage with corresponding specification according to the display parameters of the user terminal acquired from the server, and loading the updated page configuration parameters based on the webpage to generate a new preview page.
Preferably, the preview unit is further configured to:
and after the preview page is generated, calling a set application program to refresh the preview page.
Drawings
Fig. 1 is a specific flow of a user terminal accessing a server in an embodiment of the present invention;
fig. 2 is a specific process of generating a preset page by a service configuration background in the embodiment of the present invention;
FIG. 3 is a specific process of generating a preview page by the service configuration background in the embodiment of the present invention;
FIG. 4 is an update flow of a service configuration background generating a preview page in an embodiment of the present invention;
fig. 5 is a schematic diagram of a service configuration background generating a preset page in the embodiment of the present invention;
FIG. 6 is a schematic diagram of a preview page of a service configuration background generating update according to an embodiment of the present invention;
fig. 7 is a schematic diagram of a service background apparatus according to an embodiment of the present invention.
Detailed Description
In order to solve the problems that time lag is easy to occur and inconsistency between a terminal page and a preview page is easy to occur when a service worker previews a page configuration result, in the embodiment of the invention, a service configuration background acquires page configuration parameters in a specified pseudo data background through a data source middle layer; the data source middle layer and the data source middle layer of the user terminal acquire page configuration parameters based on the same operation mechanism, and the pseudo data background is a data storage device arranged for the simulation server; and generating a webpage with corresponding specification according to the display parameters of the user terminal acquired from the server, and loading the acquired page configuration parameters based on the webpage to generate a preview page.
Preferred embodiments of the present invention will be described in detail below with reference to the accompanying drawings.
Referring to fig. 1, in the embodiment of the present invention, a specific process of a user terminal accessing a server is as follows:
step 100: the user terminal receives an access instruction of a user.
Typically, the access instruction carries a Uniform Resource Locator (URL) address of the target web page.
Step 110: and the user terminal loads the static page according to the obtained access instruction.
In practical application, after obtaining the access instruction, the user terminal may generate a static webpage with a corresponding specification according to the local display parameter.
Step 120: the user terminal obtains the page configuration parameters from the server through a local data source intermediate layer (foreground version data source intermediate layer).
In the embodiment of the invention, the data source intermediate layer is arranged at the user terminal and used for acquiring various data from the server, and the data source intermediate layer is arranged because the back end data of the data source intermediate layer can be automatically set, so that when the background also applies the same data source intermediate layer to acquire data, the destination address of the background can be guided to the pseudo data background, and if the data source intermediate layer is not arranged, the background can only be connected to the server.
Step 130: the user terminal loads the obtained page configuration parameters based on the generated static page to generate a display page;
in practical application, the service configuration background adopts an operation mechanism consistent with that of the user terminal, uses the same code as the user terminal and is embedded in an inline frame element (iframe) form, and data are acquired through a data source middle layer. Specifically, the user terminal obtains the page configuration parameters from the server through the data source middle layer (foreground version data source middle layer), and the service configuration background obtains the page configuration parameters from the pseudo data background through the data source middle layer (background version data source middle layer).
Based on the above principle, referring to fig. 2, in the embodiment of the present invention, a specific process for generating a preset page by a service configuration background is as follows:
step 200: the service configuration background acquires page configuration parameters from the specified pseudo data background through the data source middle layer; the data source middle layer and the data source middle layer of the user terminal acquire page configuration parameters based on the same operation mechanism, and the pseudo data background is a data storage device arranged for the simulation server.
In the embodiment of the present invention, when step 200 is executed, the following two manners may be executed, but not limited to:
1) the service configuration background can acquire basic display information from the server according to the instruction of the service personnel and register the basic display information to the pseudo data service desk. The basic display information refers to various display information in a webpage, such as various pictures, various components, various controls and the like, so that when the service configuration background receives a webpage preview instruction, the service configuration background accesses the pseudo data service desk through the background version data source middle layer to obtain page configuration parameters based on the basic display information, wherein the page configuration parameters are display information which is obtained from the basic display information and used for generating a current preview page, such as a picture ID, a component ID and the like.
2) The service configuration background can directly obtain basic display information according to the instruction of a service staff and register the basic display information to the pseudo data service desk. Therefore, when the service configuration background receives a webpage page preview instruction, the pseudo data service desk is accessed through the background version data source middle layer, and the page configuration parameters based on the basic display information are obtained from the pseudo data service desk.
Step 210: and the service configuration background generates a webpage with corresponding specification according to the display parameters of the user terminal acquired from the server, and loads the webpage configuration parameters based on the webpage to generate a preview page.
In the embodiment of the invention, the display parameters of the user terminal acquired from the server can be various, different display parameters correspond to webpage pages with different specifications, and in practical application, the webpage pages can be respectively generated aiming at various user terminals, namely, the display parameters of the user terminal acquired from the server can be one or more, and can be used by combining with the webpage configuration parameters of the webpage. And what kind of page configuration parameters are selected is obtained according to the webpage page preview instruction, namely, the page configuration parameters are screened from the basic display information according to the preview instruction.
In the embodiment of the present invention, when step 210 is executed, the service configuration background may invoke a page control program, and load the page configuration parameters to the web page with the corresponding specification, so as to generate the preview page.
Therefore, the preview page can be generated according to the webpage preview instruction of the user terminal, and because the service configuration background and the user terminal adopt the same mechanism, the generated preview page is consistent with the page of the user terminal, and the problem of inconsistency existing in the page generation process can be discovered in time.
In the embodiment of the present invention, when step 210 is executed, the service configuration background acquires the latest display parameter of the user terminal according to the set period, and updates the locally stored display parameter of the user terminal, so that the server can acquire the latest display parameter of the user terminal in real time.
Further, after the preview page is generated, the service configuration background may call the page control program to refresh the preview page. Specifically, the service configuration background may re-trigger a document ready (DocumentReady) event of the page by calling the page control program, so that the static HTML of the preview page re-executes the script (javascript), thereby avoiding the interface flicker problem caused by direct iframe refresh.
Further, after the preview page is generated, when the update instruction is received, the following two ways may be executed, but are not limited to:
1) and acquiring the updated page configuration parameters from the server through the background version data source middle layer, and registering the updated page configuration parameters to the pseudo data service desk. And then, when a new preview instruction is received, generating a webpage with a corresponding specification according to the display parameters of the user terminal acquired from the server, and loading the updated page configuration parameters based on the webpage to generate a new preview page.
2) And directly obtaining the updated page configuration parameters through the data intermediate source layer, and registering the updated page configuration parameters to the pseudo data service desk. And then, when a new preview instruction is received, generating a webpage with a corresponding specification according to the display parameters of the user terminal obtained from the server, and loading the updated page configuration parameters based on the webpage to generate a new preview page.
The above embodiments are described in further detail below using two specific application scenarios.
Referring to fig. 3, in the embodiment of the present invention, a specific process of generating a preview page by a service configuration background is as follows:
step 300: and the service configuration background receives an instruction sent by a service worker.
Step 310: and after the service configuration background is started, acquiring basic display information from the server.
Step 320: and the service configuration background performs initialization service configuration and registers the acquired basic display information to the pseudo data service desk.
In this embodiment, during the process of executing step 320, the service configuration background may adopt, but is not limited to, the following two ways:
the first mode is as follows: the service configuration background can acquire basic display information from the server according to the instruction of the service personnel and register the basic display information into the pseudo data background.
In the first mode, after receiving the preview instruction, the service configuration background can access the pseudo data service desk through the background version data source middle layer to obtain the page configuration parameters based on the basic display information. The page configuration parameter is used for indicating various types of information contained in the currently generated page.
The second way is: the service configuration background can directly obtain basic display information according to the instruction of the service personnel and register the basic display information to the pseudo data background.
In a second mode, the basic display information is preset in the pseudo data background, and the service configuration background can access the pseudo data service desk through the background version data source middle layer after receiving the preview instruction, and obtain the page configuration parameters based on the basic display information. .
Step 330: and the service configuration background receives the preview instruction.
Step 340: and the service configuration background loads a static page, accesses the pseudo data background and acquires page configuration parameters based on basic display information.
Step 350: and the service configuration background generates a webpage with corresponding specification according to the display parameters of the user terminal acquired from the server, loads the page configuration parameters and generates a preview page.
Referring to fig. 4, a specific process of generating a preview page based on the service configuration background in the embodiment of the present invention is specifically as follows:
step 400: and the service configuration background receives the update instruction.
Step 410: and the service configuration background adds the updated page configuration parameters to the pseudo data service desk from the server.
Specifically, step 410 is optional, and when the updated page configuration parameters are already stored in the pseudo data service desk, in this case, the service configuration background may directly go to the pseudo data service desk for calling, and may generate a new preview page meeting the current user requirements without obtaining from the server.
Step 420: and the service configuration background receives the preview instruction.
Step 430: and acquiring the updated page configuration parameters from the pseudo data service desk through the middle layer of the background version data source.
Step 440: and the service configuration background generates a webpage with corresponding specification according to the updated display parameters, and calls a page control program to load the updated page configuration parameters based on the webpage to generate a new preview page.
For example, the service configuration background receives an instruction sent by a service person, such as: http:// ma. taobao. com/back. html, obtaining display parameters from the server, and the display parameters are as follows:
<html>
<body>
show some thing
< script > code for acquiring page configuration parameter >
</body>
</html>
And the service configuration background generates a webpage with corresponding specification according to the display parameters of the user terminal acquired from the server.
Initializing service configuration by a service configuration background, and registering the acquired basic display information to a pseudo data background, wherein the configuration is as follows:
when a webpage previewing instruction is received, the service configuration background generates a webpage with corresponding specifications according to the display parameters of the user terminal acquired from the server, and loads the webpage configuration parameters based on the webpage to generate a previewing page. The display effect at this time is shown in fig. 5.
When the service configuration background receives the update instruction, such as: the user inputs the title "dynamically changing content" at the right end, that is, the webpage with the corresponding specification is filled according to the page configuration parameters corresponding to the modified content indicated by the user, and the form is as follows:
and then, the service configuration background initiates an update request, and calls a page control program to load the updated page configuration parameters based on the webpage to generate a new preview page. The display effect at this time is shown in fig. 6.
Based on the above embodiment, referring to fig. 7, in an embodiment of the present invention, an apparatus for previewing a webpage page includes: a data source intermediate layer 70 and a preview unit 71; wherein,
data source intermediate layer 70: the method comprises the steps of acquiring page configuration parameters at a specified pseudo data background; the data source middle layer and the data source middle layer of the user terminal acquire page configuration parameters based on the same operation mechanism, and the pseudo data background is a data storage device arranged for the simulation server;
preview unit 71: and the webpage loading device is used for generating a webpage with corresponding specification according to the display parameters of the user terminal acquired from the server, and loading the webpage configuration parameters based on the webpage to generate a preview page.
Preferably, when the specified pseudo data background obtains the page configuration parameters, the data source intermediate layer 70 is specifically configured to:
acquiring basic display information from a server according to the instruction and registering the basic display information to a pseudo data service desk, or directly acquiring the basic display information according to the instruction and registering the basic display information to the pseudo data service desk;
and when a webpage page preview instruction is received, accessing the pseudo data service desk to acquire the page configuration parameters based on the basic display information.
Preferably, the data source interface layer 70 is further configured to:
and acquiring the latest display parameters of the user terminal according to a set period, and updating the locally stored display parameters of the user terminal.
Preferably, the data source interface layer 70 is further configured to:
after the preview page is generated, when an updating instruction is received, acquiring updated page configuration parameters from a server and registering the updated page configuration parameters to a pseudo data service desk, or directly acquiring the updated page configuration parameters and registering the updated page configuration parameters to the pseudo data service desk;
the preview unit 71 is further configured to:
and when a webpage previewing instruction is received, generating a webpage with a corresponding specification according to the display parameters of the user terminal acquired from the server, and loading the updated page configuration parameters based on the webpage to generate a new previewing page.
Preferably, the preview unit 71 is further configured to:
and after the preview page is generated, calling the set application program to refresh the preview page.
In summary, in the embodiment of the present invention, the service configuration background acquires the page configuration parameters from the specified pseudo data background through the data source intermediate layer, and generates the web page with the corresponding specification according to the display parameters acquired from the server, and loads the page configuration parameters based on the web page to generate the preview page. Therefore, the service configuration background acquires the page configuration parameters in the pseudo data background through the data source middle layer based on the same operation mechanism as the foreground, so that the preview page meeting the use requirements of the user terminal is generated, the generation efficiency of the preview page is effectively improved, the content consistency of the preview page and the terminal page is ensured, and the workload and the work difficulty of later page maintenance are reduced.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the invention.
It will be apparent to those skilled in the art that various modifications and variations can be made in the embodiments of the present invention without departing from the spirit or scope of the embodiments of the invention. Thus, if such modifications and variations of the embodiments of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to encompass such modifications and variations.

Claims (10)

1. A method for previewing a webpage in real time is characterized by comprising the following steps:
the service configuration background acquires page configuration parameters from the specified pseudo data background through the data source middle layer; the data source middle layer and the data source middle layer of the user terminal acquire page configuration parameters based on the same operation mechanism, and the pseudo data background is a data storage device arranged for the simulation server;
and the service configuration background generates a webpage with corresponding specification according to the display parameters of the user terminal acquired from the server, and loads the webpage configuration parameters based on the webpage to generate a preview page.
2. The method of claim 1, wherein the service configuration background obtains the page configuration parameters in the specified pseudo data background through the data source middle layer, and the method comprises the following steps:
acquiring basic display information from a server according to the instruction and registering the basic display information to a pseudo data service desk, or directly acquiring the basic display information according to the instruction and registering the basic display information to the pseudo data service desk;
and when a webpage page preview instruction is received, accessing the pseudo data service desk through the data source intermediate layer to obtain the page configuration parameters based on the basic display information.
3. The method of claim 1, wherein the latest display parameters of the user terminal are obtained according to a set period, and the locally stored display parameters of the user terminal are updated.
4. The method of claim 1, 2 or 3, further comprising:
after a preview page is generated, when an updating instruction is received, acquiring updated page configuration parameters from a server through the data source intermediate layer and registering the updated page configuration parameters to a pseudo data service desk, or directly acquiring the updated page configuration parameters through the data source intermediate layer and registering the updated page configuration parameters to the pseudo data service desk;
and when a webpage page preview instruction is received, generating a webpage with corresponding specification according to the display parameters of the user terminal acquired from the server, and loading the updated page configuration parameters based on the webpage to generate a new preview page.
5. The method of claim 4, further comprising:
and after the preview page is generated, calling a set application program to refresh the preview page.
6. An apparatus for real-time preview of a web page, the apparatus comprising:
the data source intermediate layer is used for acquiring page configuration parameters at a specified pseudo data background; the data source middle layer and the data source middle layer of the user terminal acquire page configuration parameters based on the same operation mechanism, and the pseudo data background is a data storage device arranged for the simulation server;
and the preview unit is used for generating a webpage with corresponding specification according to the display parameters of the user terminal acquired from the server, and loading the page configuration parameters based on the webpage to generate a preview page.
7. The apparatus of claim 6, wherein when the specified pseudo data background obtains the page configuration parameters, the data source middle layer is specifically configured to:
acquiring basic display information from a server according to the instruction and registering the basic display information to a pseudo data service desk, or directly acquiring the basic display information according to the instruction and registering the basic display information to the pseudo data service desk;
and when a webpage page preview instruction is received, accessing the pseudo data service desk to acquire the page configuration parameters based on the basic display information.
8. The apparatus of claim 7, wherein the data source intermediary layer is further to:
and acquiring the latest display parameters of the user terminal according to a set period, and updating the locally stored display parameters of the user terminal.
9. The apparatus of claim 6, 7 or 8, wherein the data source intermediary layer is further to:
after the preview page is generated, when an updating instruction is received, acquiring updated page configuration parameters from a server and registering the updated page configuration parameters to a pseudo data service desk, or directly acquiring the updated page configuration parameters and registering the updated page configuration parameters to the pseudo data service desk;
the preview unit is further to:
and when a webpage page preview instruction is received, generating a webpage with corresponding specification according to the display parameters of the user terminal acquired from the server, and loading the updated page configuration parameters based on the webpage to generate a new preview page.
10. The apparatus of claim 9, wherein the preview unit is further to:
and after the preview page is generated, calling a set application program to refresh the preview page.
CN201410590006.9A 2014-10-28 2014-10-28 A kind of method and apparatus of Webpage live preview Active CN105608078B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410590006.9A CN105608078B (en) 2014-10-28 2014-10-28 A kind of method and apparatus of Webpage live preview

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410590006.9A CN105608078B (en) 2014-10-28 2014-10-28 A kind of method and apparatus of Webpage live preview

Publications (2)

Publication Number Publication Date
CN105608078A CN105608078A (en) 2016-05-25
CN105608078B true CN105608078B (en) 2019-03-12

Family

ID=55988022

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410590006.9A Active CN105608078B (en) 2014-10-28 2014-10-28 A kind of method and apparatus of Webpage live preview

Country Status (1)

Country Link
CN (1) CN105608078B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107092634B (en) * 2017-02-13 2021-04-27 口碑控股有限公司 Method and device for realizing page preview
CN108334451B (en) * 2018-01-30 2022-02-01 无线生活(杭州)信息科技有限公司 Page compatibility testing method and device
CN108363775B (en) * 2018-02-09 2022-08-12 上海宝尊电子商务有限公司 High-expansibility online environment previewing method based on rule engine
CN109740096B (en) * 2018-12-28 2021-04-20 广州华多网络科技有限公司 Method, device and system for realizing real-time preview and storage medium
CN112449228B (en) * 2019-08-30 2024-05-31 青岛海信宽带多媒体技术有限公司 Method and equipment for synchronizing states of player and page
CN113076499B (en) * 2021-04-30 2024-09-10 北京字节跳动网络技术有限公司 Page interaction method, device, equipment, medium and program product

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101067819A (en) * 2007-06-07 2007-11-07 北京大学 Method and system for publishing web resources
CN103353886A (en) * 2013-06-28 2013-10-16 优视科技有限公司 Method and system for previewing webpage
CN104090979A (en) * 2014-07-23 2014-10-08 上海天脉聚源文化传媒有限公司 Method and device for editing webpage

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1267276A1 (en) * 2001-06-12 2002-12-18 Telefonaktiebolaget L M Ericsson User selective reload of images

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101067819A (en) * 2007-06-07 2007-11-07 北京大学 Method and system for publishing web resources
CN103353886A (en) * 2013-06-28 2013-10-16 优视科技有限公司 Method and system for previewing webpage
CN104090979A (en) * 2014-07-23 2014-10-08 上海天脉聚源文化传媒有限公司 Method and device for editing webpage

Also Published As

Publication number Publication date
CN105608078A (en) 2016-05-25

Similar Documents

Publication Publication Date Title
CN105608078B (en) A kind of method and apparatus of Webpage live preview
JP4857349B2 (en) Method, system, and computer program for providing asynchronous portal pages within a portal system
US8245125B1 (en) Hybrid rendering for webpages
US10347023B2 (en) Data drawing method and apparatus, terminal, and storage medium
WO2016026384A1 (en) Client page display method, device and system
JP2019032883A (en) Method, apparatus, server and system for implementing web application
CN109313661A (en) Accelerate for the webpage of the network application of trustship in primary mobile application
CN106155673B (en) Method, device, server and user equipment for realizing page content editor
US8516041B1 (en) Pre-fetching asynchronously requested content
CN107463563B (en) Information service processing method and device of browser
CN104572114A (en) Binding device, application updating device and method and application
CN111079048B (en) Page loading method and device
AU2016202576B2 (en) Techniques for evaluating applications through use of an auxiliary application
CN103955495B (en) The method for down loading and device of page child resource
CN104361004B (en) The processing method and browser of browser collection folder data
CN106874519A (en) Webpage representation method and apparatus
CN108595457A (en) A kind of rendering intent and device of the waterfall stream page
US9059959B2 (en) Client side management of HTTP sessions
JP2016540333A (en) Terminal marking method, terminal marking device, program, and recording medium
CN111880789A (en) Page rendering method, device, server and computer-readable storage medium
US20140245124A1 (en) System and method thereof for browser agnostic extension models
CN103488735A (en) Method and terminal for refreshing and displaying pages of terminal browser
US8396920B1 (en) Clean URLs in web applications
US20180192121A1 (en) System and methods thereof for displaying video content
RU2634221C2 (en) Method and device for drawing presentation of electronic document on screen

Legal Events

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