CN105404458B - Webpage content updating method and device - Google Patents

Webpage content updating method and device Download PDF

Info

Publication number
CN105404458B
CN105404458B CN201410459398.5A CN201410459398A CN105404458B CN 105404458 B CN105404458 B CN 105404458B CN 201410459398 A CN201410459398 A CN 201410459398A CN 105404458 B CN105404458 B CN 105404458B
Authority
CN
China
Prior art keywords
webpage
sliding
updating
target
web page
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
CN201410459398.5A
Other languages
Chinese (zh)
Other versions
CN105404458A (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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201410459398.5A priority Critical patent/CN105404458B/en
Publication of CN105404458A publication Critical patent/CN105404458A/en
Application granted granted Critical
Publication of CN105404458B publication Critical patent/CN105404458B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention relates to a method for updating webpage content, which in one embodiment comprises the following steps: loading and displaying a webpage; receiving a sliding signal input by a user and used for sliding the webpage; sliding the webpage according to the sliding signal; and updating the content of the target webpage object through a predefined script if the target webpage object is detected to slide to the current display area in the sliding process of the webpage. The invention also comprises a webpage content updating device. According to the method and the device, the data in the webpage are updated in time, and the unsmooth webpage browsing of the terminal is effectively improved.

Description

Webpage content updating method and device
Technical Field
The present invention relates to the field of information technology data updating, and in particular, to a method, an apparatus, and a system for updating web page content.
Background
The development of information technology, more information in life comes from the information released by the internet, resulting in larger and larger amount of information. The data on the network are also mostly displayed through web pages in various terminals for users to view and operate. The data itself is also constantly changing, however, the data display end cannot respond to the current display event in real time, which causes the problems of unsmooth webpage browsing of the electronic terminal, untimely data updating and the like.
Disclosure of Invention
In view of this, the present invention provides a method and an apparatus for updating web page content, which effectively improve the unsmooth data browsing of a terminal.
A webpage content updating method is used for an electronic terminal, and comprises the following steps:
loading and displaying a webpage;
receiving a sliding signal input by a user and used for sliding the webpage;
sliding the webpage according to the sliding signal; and
and updating the content of the target webpage object through a predefined script if the target webpage object is detected to slide to the current display area in the sliding process of the webpage.
A web content updating apparatus for an electronic terminal, the apparatus comprising:
the webpage loading module loads and displays a webpage;
the receiving module is used for receiving a sliding signal which is input by a user and is used for sliding the webpage;
the page sliding module is used for sliding the webpage according to the sliding signal; and
and the updating module is used for updating the content of the target webpage object through a predefined script if the target webpage object is detected to slide to the current display area in the sliding process of the webpage.
According to the embodiment, the content of the target object is updated in time according to the predefined script by monitoring the browsed webpage when sliding. And updating data in the webpage in time, and effectively improving the unsmooth webpage browsing of the terminal.
In order to make the aforementioned and other objects, features and advantages of the invention comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
Fig. 1 is a block diagram of an electronic terminal.
Fig. 2 is a flowchart of a web page content updating method according to a first embodiment.
Fig. 3 is a flowchart of a web page content updating method according to a second embodiment.
Fig. 4 is a flowchart of a web page content updating method according to a third embodiment.
Fig. 5 is a schematic diagram of the web page before the sliding in the above embodiment.
FIG. 6a is a schematic diagram of a web page before a numerical value is changed after a slide in the above embodiment.
FIG. 6b is a schematic diagram of the web page with the changed numerical value after the sliding operation in the above embodiment.
Fig. 7 is a flowchart of a web page content updating method according to a fourth embodiment.
Fig. 8 is a block diagram illustrating a structure of a web content updating apparatus according to a fifth embodiment.
Fig. 9 is a block diagram illustrating a structure of a web content updating apparatus according to a sixth embodiment.
Fig. 10 is a block diagram illustrating a structure of a web content updating apparatus according to a seventh embodiment.
Fig. 11 is a block diagram illustrating a structure of a web content updating apparatus according to an eighth embodiment.
Detailed Description
To further illustrate the technical means and effects of the present invention adopted to achieve the predetermined objects, the following detailed description of the embodiments, structures, features and effects according to the present invention will be made with reference to the accompanying drawings and preferred embodiments.
Fig. 1 shows a block diagram of an electronic terminal. As shown in fig. 1, the electronic terminal 100 includes one or more processors 102 (only one is shown), a memory 104, a storage controller 106, a Radio Frequency (RF) module 108, a network module 110, an input module 112, and a display module 114. It will be understood by those skilled in the art that the structure shown in fig. 1 is only an illustration and is not intended to limit the structure of the electronic terminal 100. For example, the electronic terminal 100 may also include more or fewer components than shown in FIG. 1, or have a different configuration than shown in FIG. 1.
Those skilled in the art will appreciate that all other components are peripheral devices with respect to the processor 102, and that the processor 102 is coupled to the peripheral devices through a plurality of peripheral interfaces 120. The peripheral interface 120 may be implemented based on the following standards: universal Asynchronous Receiver/Transmitter (UART), General Purpose Input/Output (GPIO), Serial Peripheral Interface (SPI), and Inter-Integrated Circuit (I2C), but the present invention is not limited to these standards. In some examples, peripheral interface 120 may include only a bus; in other examples, peripheral interface 120 may also include other components, such as one or more controllers, for example, a display controller for interfacing with a liquid crystal display panel or a memory controller for interfacing with a memory. In addition, the controller may be separate from the peripheral interface 120 and integrated within the processor 102 or a corresponding peripheral.
The memory 104 may be used to store software programs and modules, such as program instructions/modules corresponding to the web content updating method/apparatus in the embodiment of the present invention, and the processor 102 executes various functional applications and data processing by running the software programs and modules stored in the memory 104, so as to implement the above-mentioned web content updating method. The memory 104 may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include memory located remotely from the processor 102, which may be connected to the electronic terminal 100 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The RF module 108 is used for receiving and transmitting electromagnetic waves, and implementing interconversion between the electromagnetic waves and electrical signals, so as to communicate with a communication network or other devices. RF module 108 may include various existing circuit elements for performing these functions, such as an antenna, a radio frequency transceiver, a digital signal processor, an encryption/decryption chip, a Subscriber Identity Module (SIM) card, memory, and so forth. The RF module 108 may communicate with various networks such as the internet, an intranet, a wireless network, or with other devices over a wireless network. The wireless network may comprise a cellular telephone network, a wireless local area network, or a metropolitan area network. The Wireless network may use various Communication standards, protocols, and technologies, including, but not limited to, Global System for Mobile Communication (GSM), Enhanced Mobile Communication (Enhanced Data GSM Environment, EDGE), wideband Code division multiple Access (W-CDMA), Code Division Multiple Access (CDMA), Time Division Multiple Access (TDMA), Wireless Fidelity (WiFi) (e.g., IEEE802.11a, IEEE802.11 b, IEEE802.11g, and/or IEEE802.11 n), Voice over internet protocol (VoIP), world wide mail Access (Microwave for Wireless communications, Max), and any other suitable protocol for instant messaging, and may even include those protocols that have not yet been developed.
The network module 110 is used for receiving and transmitting network signals. The network signal may include a wireless signal or a wired signal. In one example, the network signal is a WiFi signal, and since the operating frequency of WiFi is also in the radio frequency band, the network module may have a hardware structure similar to the RF module 108, that is, may include an antenna, a radio frequency transceiver, a digital signal processor, an encryption/decryption chip, and other elements. In one example, the network signal is a wired network signal. At this time, the network module 110 may include a processor, a random access memory, a converter, a crystal oscillator, and the like.
The input unit 112 may be used to receive input character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. Specifically, the input unit may include a key and a touch surface. The keys may include, for example, character keys for inputting characters, and control keys for triggering control functions. Examples of control keys include a "back to home" key, a power on/off key, a take picture key, and the like. The touch surface may collect touch operations by a user (e.g., operations by a user on or near the touch surface using a finger, a stylus, or any other suitable object or accessory) and drive the corresponding connection device according to a predetermined program. Alternatively, the touch surface may comprise two parts, a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 102, and can receive and execute commands sent by the processor 102. In addition, the touch surface can be realized by various types such as resistance, capacitance, infrared rays and surface acoustic waves. The input unit may include other input devices in addition to the touch surface. Such other input devices include, but are not limited to, one or more of a physical keyboard, trackball, mouse, joystick, and the like.
The display module 114 is used to display information input by the user, information provided to the user, and various graphical user interfaces of the electronic terminal 100, which may be made up of graphics, text, icons, video, and any combination thereof. In one example, the display module 114 includes a display panel. The Display panel may be, for example, a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED) Display panel, an electrophoretic Display (EPD), or the like. Further, the touch surface may be disposed on the display panel so as to be integrated with the display panel. In other embodiments, the display module 114 may also include other types of display devices, including, for example, a projection display device. In contrast to a general display panel, the projection display device needs to further include some components for projection such as a lens group.
The software programs and modules include: an operating system and a real-time response module. The operating system may be LINUX, UNIX, WINDOWS, or a mobile operating system such as Android, IOS, etc., which may include various software components and/or drivers for managing system tasks (e.g., memory management, storage device control, power management, etc.), and may communicate with various hardware or software components to provide an operating environment for other software components. The webpage content updating module runs on the basis of the operating system and provides real-time response and data updating functions for the user.
Further, the real-time response module comprises a detection module for detecting whether a target webpage object exists in the current display area. The real-time response module may further include an update module for updating the content of the target web page object through a predefined script.
First embodiment
Fig. 2 is a flowchart of a web page content updating method provided in this embodiment, as shown in fig. 2, the present embodiment includes the following steps:
and step S101, loading and displaying a webpage.
For example, the loading and displaying a web page may be starting a browser in the electronic terminal 100, and displaying the web page in the browser, where the web page has the content of the currently displayed web page object. In this embodiment, the content of the web page object is changeable content, that is, the web page is a dynamic web page.
And step S102, receiving a sliding signal which is input by a user and is used for sliding the webpage.
In one example, the user slides a slide signal in the screen of the electronic terminal 100 by a finger or a stylus for operating the screen of the electronic terminal. In another example, the user inputs the slide signal by clicking up, down, left, and right function keys in the electronic terminal 100 or by scrolling a scroll key of a mouse.
And step S103, sliding the webpage according to the sliding signal.
The user changes the currently displayed web page content by inputting a slide signal. For example, the content of the currently displayed web page is not completely displayed due to the problem of the length of the electronic terminal, and the non-displayed part can be displayed by sliding. For example, if the user searches for related contents by inputting keywords at the electronic terminal, the electronic terminal display module 114 may not display the entire search result enough to display the hidden contents by sliding up and down.
And step S104, updating the content of the target webpage object through a predefined script if the target webpage object is detected to slide to the current display area in the sliding process of the webpage.
Whether the target webpage object exists or not can be detected by acquiring the current sliding position and the webpage object corresponding to the current position. The acquiring the web page object comprises acquiring the attribute of the web page object. And judging whether the target webpage object is the target webpage object or not according to the attribute of the webpage object.
The target webpage object is an object with operation effect stored in the script library. For example, as shown in fig. 6a and 6b, Demo4 and Demo3 are the above target web page objects, and the web page objects have current display values. As shown in FIG. 6a, Demo4 and Demo3 show current values of 0 and 0, respectively. Demo4 and Demo3 modify the current display value by sliding to the current display area. The current display values of the modified web page objects Demo4 and Demo3 become 68 and 98 points, respectively. Further, the display value is a gradual process, for example, dynamically displaying a plurality of values between 0 and 68 until the target value 68 is reached. Whereas fig. 6a and 6b only show two states before and only after the target value.
The predefined script content may be: for example, the effect of the change in the value in the above-described web object Demo dynamically displays a plurality of values between 0 and 68 until the target value 68 is reached. A user opens a webpage to display the current local used time by inputting the time in a browser input window, obviously the time is data needing to be changed instantly, and the change of the time is displayed at the speed of changing seconds. For example, when a user enters a certain football game and views a football game currently in progress through subtitles, the display effect of the relevant data of the football game changes along with the progress of the football game. For example, the user inputs a stock query to start the web page, and the target web page object may refer to various related index items of the stock of the open web page.
It will be appreciated that sliding the page until the web page stops sliding is a continuous process, so the act of detecting the target web page object and updating the content of the target web page object via the predefined script is also a continuous act as the web page slides.
According to the webpage content updating method of the embodiment, the webpage objects of the current display interface are timely and continuously detected in the process of browsing webpage data, and the content of the webpage objects is updated according to the script increasing effect, so that the data are timely updated, and the unsmooth data browsing of the terminal is effectively improved.
Second embodiment
A web content updating method is provided, and the present embodiment is similar to the first embodiment, and differs in that, referring to fig. 3, after step S101, the method further includes:
step S201, a third-party script library is loaded, and the third-party script library does not adopt an OnScroll interface predefined by a webpage object to trigger a sliding event.
And S202, monitoring the sliding event of the webpage through the third-party script library.
For example, the third-party script library is a JavaScript library iscroll. The onstrol interface defaulted by the window object cannot respond to the problem of an event in real time. In this embodiment, the OnScroll interface predefined by the web object is not used to trigger the slide event. The method comprises the steps of obtaining detection of a webpage object in a current display area and writing the webpage object. For example, a visual effect of updating data may be written, and the effect of changing the value in the above-mentioned webpage object Demo dynamically displays a plurality of values between 0 and 68 until the target value 68 is reached. For example, the content in the target web page object is updated in the form of dynamically changing the value in the current display area or replacing the old page with a new page.
In one example, the following method may be implemented by following partial codes to obtain the sliding position and monitor the sliding webpage by adding the effect of obtaining the current sliding position in the third-party script library:
Figure BDA0000567786400000081
Figure BDA0000567786400000091
and expanding the iSroll.js private method by the codes on the premise of not modifying a third-party script library to acquire the sliding position information of the current interface.
Specifically, whether the iscoll.js controlling the sliding of the display interface exists is judged, the private method of the iscoll.js is expanded under the existing condition, and otherwise, the iscoll.js is loaded. Wherein js is an transliterated script language (javascript), which is hereinafter referred to as js. Js is a js file written using native js, independent of any js framework. The mobile webkit browser is used for solving the problem of area scrolling of a mobile webkit browser, and is compatible with mobile safari, android default browsers, safari, chrome, firefox5+, opera11+, IE9+ and other webkit browsers.
The function of before in the above code is used to obtain the event at the current location and return the attribute of the current event, the function of before returns the definitions representing the attribute of the event, and the attributes of the definitions are special attributes, and the representative attributes can be modified to the corresponding attribute length suitable for the current event according to different current events. The iSscrolling function is used for acquiring the coordinates of the current event of the display interface sliding. And redefining the _ pos function, and transferring the current event acquired by the before function. The onScrolling function added in the functions options is used for responding and processing the current event, for example, the onScrolling function can be directly written into the computation logic, the single machine processes the current event, and for example, the onScrolling function can also be added into the real-time reading server to return the response logic.
And after the third-party script library monitors the sliding event of the webpage, executing the step of updating the content of the target webpage object through a predefined script if the target webpage object is detected to slide to the current display area in the sliding process of the webpage.
In one example, the method of the embodiment can be used for achieving the goal through extending the third-party script library sliding on the control interface. The third-party script library can be based on a third-party open source JavaScript library iStrol.js, and a private method of iStrol.js is expanded. In the partial code, by adding a judgment statement, if the iSroll.js does not exist, the method is interrupted, and abnormal information is returned through a prompt. It can be understood that the exception reminding information is a prompt message displayed in the unloaded example stage. When the method of the embodiment is implemented according to the partial codes, the step of loading the partial codes into the example is a step after whether an instruction for controlling the current sliding interface exists is detected, and the user does not receive the abnormal reminding information in the steps of sliding the display interface, acquiring the positioning information and updating the interface.
According to the method of the embodiment, the third-party script library is expanded, and an original method for monitoring the events is not used, so that the webpage events can be responded in time, and the data can be updated in time.
Third embodiment
A web page content updating method is provided, which is similar to the first embodiment, and the difference is that, referring to fig. 4, before step S104, the method further includes:
step S401 obtains a second end value from a server providing a service for the target web page object.
Step S104 includes gradually changing the number within the target web page object from a first end value to a second end value.
The first end value is an initial value of the target webpage object, and the first end value is not fixed. As shown in fig. 5, 6a and 6b, the first end value is a state value of the target webpage object before updating, and the first end values of different webpage objects may be different. It is to be understood that the second end value of the currently updated value may also be the first end value of the next update data. The number within the target web page object gradually changes from a first end value to a second end value. The effect of the change in value in the web object Demo4 in the above example is to dynamically display a plurality of values between 0 and 68 gradually from the first end value of 0 score until the second end value of 68 scores is reached.
Fig. 5 is a schematic diagram of the web page before the sliding in the above embodiment. Fig. 6a and 6b are schematic diagrams of the web pages before and after the numerical value is changed after the sliding in the above embodiment. In this example, the number of friends online currently and the status of Demoi (i ═ 1,2,3,4,5,6) are displayed in the web page, and different scores are used to represent different statuses. The electronic device 100 receives the sliding signal input by the user to slide from the web page before sliding in fig. 5 to the web pages in fig. 6a and 6 b. Further, by sliding, as the Demo4 and the Demo5 in the webpage object enter the current display area, obtaining the location of the Demo4 and the Demo5 in real time, wherein the obtaining of the location of the Demo4 and the Demo5 is also a process of obtaining the Demo4 and the Demo5 of the webpage object, the obtained content further comprises the attributes and the calculation methods of obtaining the Demo4 and the Demo5, and the like, and the display content is updated according to the calculation methods of the Demo4 and the Demo5, and dynamic display is divided into update processes of 0 to 68, 0 and 2222 respectively. It is understood that as the webpage slides, the Demoi may update the content according to the predefined script as the webpage object of the current display area changes.
According to the method of the embodiment, the data of the display interface is gradually updated according to the logic calculation method, so that the webpage data gradually and dynamically display the updated details, and a user has an updated feeling.
Fourth embodiment
A web page content updating method is provided, and this embodiment is similar to the first embodiment, and the difference is that, referring to fig. 7, step S104 further includes:
and displaying an animation effect on the target webpage object, and sliding the target webpage object along a second direction perpendicular to the first direction indicated by the sliding signal.
The first direction may be a longitudinal sliding of the electronic terminal, and the second direction may be a transverse sliding with respect to the electronic terminal. For example, as shown in fig. 5, 6a and 6b, if the first direction is the direction of arrow 111, the second direction is the direction perpendicular to arrow 111. In one example, the user slides the displayed web page in the direction of arrow 111. The Demo4 and Demo5 perform the current display area, and in one example, as shown in fig. 6a and 6b, the content before updating slides out of the current display area horizontally as Demo4 and Demo5 in fig. 6a, and the content continuously updated slides into the current display area horizontally as Demo4 and Demo5 in fig. 6 b. In another example, the content of the page object entered into the current display area is gradually updated in the current display page, and the first end value in Demo4 in the above embodiment is gradually changed to the second end value. However, the web page has the currently loaded content, and after the currently loaded web page is completely displayed, the electronic terminal 100 still receives the sliding signal, and then the loaded and displayed web page object is horizontally removed, and a new updated web page object is horizontally moved in, where the process of updating the web page object is a continuous process.
According to the method, the dynamic display effect is increased when the webpage object content is updated, so that the picture is more attractive, and the user can experience better.
Fifth embodiment
Referring to fig. 8, the apparatus of this embodiment includes: a web page loading module 401, a receiving module 402, a page sliding module 403 and an updating module 404.
The webpage loading module 401 loads and displays a webpage;
a receiving module 402, configured to receive a sliding signal input by a user for sliding the web page;
a page sliding module 403, configured to slide the web page according to the sliding signal; and
an updating module 404, configured to update the content of the target webpage object through a predefined script if it is detected that the target webpage object slides to the current display area in the sliding process of the webpage.
Further reference may be made to the first embodiment for further details of the apparatus of this embodiment, which will not be repeated here.
According to the webpage content updating device of the embodiment, the webpage objects of the current display interface are timely and continuously detected in the process of browsing webpage data, and the content of the webpage objects is updated according to the script increasing effect, so that the data are timely updated, and the unsmooth data browsing of the terminal is effectively improved.
Sixth embodiment
The present embodiment provides a web content updating apparatus, which can be used in the electronic terminal shown in fig. 1, and is similar to the fifth embodiment, except that referring to fig. 9, the apparatus of the present embodiment further includes:
the script library loading module 501 is configured to load a third-party script library, where the third-party script library does not trigger a sliding event by using an OnScroll interface predefined by a web object.
A sliding monitoring module 502, configured to monitor a sliding event of the web page through the third-party script library. The update module 404 is executed after the sliding listening module 402.
Further reference may be made to the second embodiment for further details of the apparatus of this embodiment, which will not be repeated here.
According to the device of the embodiment, the third-party script library is expanded, and an original method for monitoring the events is not used, so that the webpage events can be responded in time, and the data can be updated in time.
Seventh embodiment
The embodiment provides a web content updating apparatus, which is similar to the fifth embodiment, and the difference is that referring to fig. 10, the updating module 404 further includes a value obtaining module 601, configured to obtain a second end value from a server providing a service for the target web object.
The updating module 404 includes a value changing unit 4041, configured to gradually change the number in the target web page object from the first end value to the second end value.
Further reference may be made to the third embodiment for further details of the apparatus of this embodiment, which will not be repeated here.
According to the device of the embodiment, the data of the display interface is gradually updated according to the logic calculation method, so that the webpage data gradually and dynamically display the updated details, and a user has an updated feeling.
Eighth embodiment
The present embodiment provides a web content updating apparatus, which is similar to the fifth embodiment, except that referring to fig. 11, the updating module 404 includes an animation display unit 4042 for displaying an animation effect on the target web object. The animation display module is further used for enabling the target webpage object to slide along a second direction perpendicular to the first direction indicated by the sliding signal.
Further reference may be made to the fourth embodiment for further details of the apparatus of this embodiment, which will not be repeated here.
According to the device of the embodiment, the dynamic display effect is increased when the webpage object content is updated, so that the picture is more attractive, and the user can experience better.
In addition, an embodiment of the present invention further provides a computer-readable storage medium, in which computer-executable instructions are stored, where the computer-readable storage medium is, for example, a non-volatile memory such as an optical disc, a hard disc, or a flash memory. The computer-executable instructions are used for causing a computer or a similar computing device to perform various operations of the web content updating method.
Although the present invention has been described with reference to the preferred embodiments, it is to be understood that the invention is not limited to the disclosed embodiments, but is intended to cover various modifications, equivalents and alternatives falling within the spirit and scope of the invention.

Claims (9)

1. A method for updating web page content, the method comprising the steps of:
loading and displaying a dynamic webpage in a browser;
adding code in a private method of a third-party script library constructed by a native language to extend the private method;
the code is used for acquiring a sliding position to replace a predefined interface of a webpage object to trigger a sliding event;
loading the third-party script library, and monitoring the sliding event of the webpage through the third-party script library;
receiving a sliding signal input by a user and used for sliding the webpage;
sliding the webpage according to the sliding signal to display hidden contents which are not displayed before the sliding signal is received in the webpage; and
in the sliding process of the webpage, the current sliding position and the webpage object corresponding to the current position are acquired in real time through the expanded private method,
if the target webpage object with the operation effect stored in the script library is detected to slide to the current display area, updating the content of the target webpage object through the predefined script so as to enable the target webpage object to slide to the current display area
And gradually changing the number in the target webpage object from an initial value representing the target webpage object before updating to a target value representing the target webpage object after updating.
2. A web content update method according to claim 1, further comprising, before said updating the content of the target web object by the predefined script, obtaining the target value from a server.
3. A web page content updating method according to claim 1, wherein the updating of the content of the target web page object by a predefined script comprises:
and displaying an animation effect on the target webpage object.
4. A web page content updating method according to claim 3, wherein said causing the target web page object to display an animation effect comprises:
and sliding the target webpage object along a second direction which is perpendicular to the first direction indicated by the sliding signal.
5. An apparatus for updating web page contents, the apparatus comprising:
the webpage loading module loads and displays a dynamic webpage in the browser;
the script library loading module is used for adding codes in a private method of a third-party script library constructed by a native language so as to expand the private method; the code is used for acquiring a sliding position to replace a predefined interface of a webpage object to trigger a sliding event; loading the third-party script library;
the sliding monitoring module is used for monitoring the sliding event of the webpage through the third-party script library;
the receiving module is used for receiving a sliding signal which is input by a user and is used for sliding the webpage;
the page sliding module is used for sliding the webpage according to the sliding signal so as to display hidden contents which are not displayed before the sliding signal is received in the webpage; and
an updating module, configured to update the content of the target webpage object through a predefined script if it is detected that the target webpage object slides to the current display area in the sliding process of the webpage, so that the target webpage object is updated according to the predefined script
And gradually changing the number in the target webpage object from an initial value representing the target webpage object before updating to a target value representing the target webpage object after updating.
6. The web content updating apparatus according to claim 5, further comprising, before the updating module, a value obtaining module for obtaining the target value from a server.
7. The web page content updating apparatus of claim 5, wherein the updating module further comprises:
and the animation display unit is used for enabling the target webpage object to display an animation effect.
8. The web page content updating apparatus according to claim 7, wherein the animation display unit further comprises: for sliding the target web page object in a second direction perpendicular to the first direction indicated by the sliding signal.
9. A computer-readable storage medium having stored thereon executable instructions for causing a processor to perform the method for updating web page content of any one of claims 1 to 4 when executed.
CN201410459398.5A 2014-09-10 2014-09-10 Webpage content updating method and device Active CN105404458B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410459398.5A CN105404458B (en) 2014-09-10 2014-09-10 Webpage content updating method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410459398.5A CN105404458B (en) 2014-09-10 2014-09-10 Webpage content updating method and device

Publications (2)

Publication Number Publication Date
CN105404458A CN105404458A (en) 2016-03-16
CN105404458B true CN105404458B (en) 2021-02-05

Family

ID=55469969

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410459398.5A Active CN105404458B (en) 2014-09-10 2014-09-10 Webpage content updating method and device

Country Status (1)

Country Link
CN (1) CN105404458B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106951450B (en) * 2017-02-22 2020-04-07 麒麟合盛网络技术股份有限公司 Webpage information acquisition method and device and computing equipment
CN107273031B (en) * 2017-06-23 2020-10-16 阿里巴巴(中国)有限公司 Information flow page loading method and device
CN107508807A (en) * 2017-08-14 2017-12-22 平伟功 A kind of web page contents renewal, the method and system of data storage
CN107391763A (en) * 2017-08-30 2017-11-24 北京金山安全软件有限公司 Information display method and device
CN110753914B (en) * 2017-10-31 2024-04-12 深圳市欢太科技有限公司 Information processing method, storage medium and mobile terminal
CN110311959B (en) * 2019-06-19 2022-04-26 广州方硅信息技术有限公司 Method and device for message pushing and page updating and data processing system
CN112464121A (en) * 2020-11-27 2021-03-09 金蝶软件(中国)有限公司 Data loading method and device, computer equipment and storage medium
CN112464125A (en) * 2020-12-07 2021-03-09 北京小米松果电子有限公司 Page display method and device, electronic equipment and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103678622A (en) * 2013-12-18 2014-03-26 百度在线网络技术(北京)有限公司 Method and device for dynamic rendering of waterfall-type picture
CN103793421A (en) * 2012-10-31 2014-05-14 北京拓尔思信息技术股份有限公司 Method for dynamically acquiring, updating and scheduling information on basis of web page structures

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7085832B2 (en) * 2002-04-30 2006-08-01 International Business Machines Corporation Method and apparatus for enabling an internet web server to keep an accurate count of page hits
US7685515B2 (en) * 2003-04-04 2010-03-23 Netsuite, Inc. Facilitating data manipulation in a browser-based user interface of an enterprise business application
CN100462964C (en) * 2005-12-22 2009-02-18 腾讯科技(深圳)有限公司 Updating display method for webpage data
US8584147B2 (en) * 2006-12-21 2013-11-12 Microsoft Corporation Managed execution environment for software application interfacing
CN101159739B (en) * 2007-09-19 2011-07-06 腾讯科技(深圳)有限公司 Subtitling display process and communication system and related equipment
CN101599001B (en) * 2009-07-13 2012-11-14 青岛海信移动通信技术股份有限公司 Update method for touch-screen display interface and multimedia electronic equipment
CN102591963A (en) * 2011-12-30 2012-07-18 奇智软件(北京)有限公司 Method and device for controlling webpage content loading

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103793421A (en) * 2012-10-31 2014-05-14 北京拓尔思信息技术股份有限公司 Method for dynamically acquiring, updating and scheduling information on basis of web page structures
CN103678622A (en) * 2013-12-18 2014-03-26 百度在线网络技术(北京)有限公司 Method and device for dynamic rendering of waterfall-type picture

Also Published As

Publication number Publication date
CN105404458A (en) 2016-03-16

Similar Documents

Publication Publication Date Title
CN105404458B (en) Webpage content updating method and device
EP2854010B1 (en) Method and apparatus for displaying messages
CN109189300B (en) View circulation display method and device
EP2854012A1 (en) Method, apparatus and terminal device for selecting character
CN106156097B (en) Method and device for processing browser input records
CN106372076B (en) Method and device for switching web pages in browser
CN106991150B (en) Webpage data display method and mobile terminal
CN106844572B (en) Search result processing method and device for search result processing
CN111813305A (en) Application program starting method and device
CN105095259B (en) Waterfall flow object display method and device
CN113407075B (en) Icon sorting method and device and electronic equipment
CN113836089A (en) Application program display method and device, electronic equipment and readable storage medium
CN112783594A (en) Message display method and device and electronic equipment
CN112445967B (en) Information pushing method and device, readable storage medium and information pushing system
CN105446608A (en) Information searching method, information searching device and electronic device
EP4351117A1 (en) Information display method and apparatus, and electronic device
KR20130056636A (en) Apparatus and method for displaying a logo image in a portable terminal
CN112578961B (en) Application identifier display method and device
CN111796736B (en) Application sharing method and device and electronic equipment
CN104407763A (en) Content input method and system
CN110619102B (en) Method and device for monitoring page elements
CN114416264A (en) Message display method and device
CN116048348A (en) Component control method and device, electronic equipment and storage medium
CN113672136A (en) Information display method, device, equipment and storage medium
CN103034468A (en) Method and device for displaying text

Legal Events

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