WO2014206113A1 - 窗口切换方法、装置及其存储介质 - Google Patents

窗口切换方法、装置及其存储介质 Download PDF

Info

Publication number
WO2014206113A1
WO2014206113A1 PCT/CN2014/073184 CN2014073184W WO2014206113A1 WO 2014206113 A1 WO2014206113 A1 WO 2014206113A1 CN 2014073184 W CN2014073184 W CN 2014073184W WO 2014206113 A1 WO2014206113 A1 WO 2014206113A1
Authority
WO
WIPO (PCT)
Prior art keywords
window
reading
read
page
url
Prior art date
Application number
PCT/CN2014/073184
Other languages
English (en)
French (fr)
Inventor
黄天觉
陈汝龙
赵鸿彬
Original Assignee
广州市动景计算机科技有限公司
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 广州市动景计算机科技有限公司 filed Critical 广州市动景计算机科技有限公司
Publication of WO2014206113A1 publication Critical patent/WO2014206113A1/zh
Priority to US14/998,317 priority Critical patent/US10460001B2/en

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/957Browsing optimisation, e.g. caching or content distillation
    • G06F16/9574Browsing optimisation, e.g. caching or content distillation of access to content, e.g. by caching
    • 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/955Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
    • G06F16/9566URL specific, e.g. using aliases, detecting broken or misspelled links
    • 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/0482Interaction with lists of selectable items, e.g. menus
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04842Selection of displayed objects or displayed text elements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]

Definitions

  • the present invention relates to the field of mobile communication technologies, and in particular, to a window switching method, apparatus, and storage medium thereof. Background technique
  • the current mobile terminal browser has realized the support of the pre-reading function, that is, the webpage pre-reading can be performed according to the pre-reading keyword, and after the pre-reading page is loaded, The browser switches the page, enters the pre-read page, and displays the content on the pre-read page.
  • an object of the present invention is to provide a window switching method, apparatus, and storage medium thereof, which can solve the problem that the content on the pre-read page cannot be completely displayed after switching to the pre-read page in the prior art, resulting in user experience. Low technical issues.
  • a window switching method including:
  • the pre-read window loaded with the pre-read page is switched to the current window.
  • a window switching apparatus including:
  • a pre-reading keyword obtaining unit configured to acquire a first pre-read keyword that meets the requirements in all the content on the page opened through the current window
  • a pre-read URL determining unit configured to determine a first pre-read URL corresponding to the first pre-read keyword
  • a pre-read page loading unit configured to load a pre-read page corresponding to the first pre-read URL by using a pre-read window
  • a window switching unit configured to switch the pre-read window loaded with the pre-read page to a current window upon receiving an instruction to enter the pre-read page.
  • the present invention also provides a mobile terminal including the aforementioned window switching device.
  • the present invention also provides a user equipment including the aforementioned window switching device.
  • the present invention also provides a computer readable storage medium having program code executable by a processor, which, when executed, causes the processor to perform the steps in the aforementioned window switching method.
  • the pre-reading page when page pre-reading is performed, the pre-reading page can be pre-loaded through the created pre-reading window (hidden window), and when the user clicks to enter the pre-reading
  • the current window the first window
  • the pre-reading window are seamlessly switched, thereby improving the user's experience.
  • the seamless switching does not cause the JS environment switching at the bottom of the browser.
  • FIG. 1 is a flowchart of a window switching method according to an embodiment of the present invention
  • FIG. 2 is a schematic diagram of management of a history item according to an embodiment of the present invention.
  • FIG. 3 is a block diagram showing a window switching device according to an embodiment of the present invention.
  • FIG. 4 is a block schematic diagram of a window switching device in accordance with another embodiment of the present invention.
  • the present invention proposes a solution for loading a pre-read page by creating a second window. That is, when the page is pre-read, the pre-reading page is preloaded by creating the second window, and when the user clicks to enter the pre-reading page, the current window and the second window are seamlessly switched, thereby improving The user experience.
  • the solution proposed by the present invention for loading a pre-read page by creating a pre-reading window is to implement a set of double windows on the history item management of the UE browser kernel (WebKit) (the current display window and the pre-read window for loading the pre-read page) ) History item management.
  • WebKit the UE browser kernel
  • History item management the history item management of the UE browser kernel (WebKit) (the current display window and the pre-read window for loading the pre-read page) ) History item management.
  • FIG. 1 shows a flow of a window switching method according to an embodiment of the present invention.
  • the window switching method provided by the present invention includes:
  • Step 101 Acquire a first pre-read keyword that meets the requirements in all the content on the page opened through the current window;
  • the UE (User Equipment) browser opens the corresponding page through the current window (the current window is called the first window), and obtains the display in the first window.
  • the first read-ahead keyword that meets the requirements in all content on the page That is to say, after receiving the user click operation, the UE browser locally scans all the content in the open page, and obtains a pre-read keyword that meets the requirements, wherein the pre-read keyword that meets the requirement is capable of being characterized. Read the required text or characters, such as "next page", "next chapter”, " ⁇ ", """, “ ⁇ ", “>”, etc. From the perspective of the instruction execution of the system, the UE browser obtains the pre-read keyword in the open page by executing the first script language JS code in the first window.
  • one page when a normal page is browsed, one page only corresponds to one window.
  • the UE browser executes the first script language JS code in the first window, and fetches the pre-read keywords in the page.
  • the pre-read keyword may be a text such as "next page” or the content of the next page associated with the current user browsing content.
  • a first pre-read resource uniform identifier (first pre-read URL) corresponding to the first pre-read keyword is determined.
  • the pre-read resource uniform identifier URL, Uniform Resource Locator
  • the pre-read keyword that meets the rule refers to a pre-read keyword that has the possibility of pre-reading or meets the specified pre-read keyword recognition condition.
  • the preset pre-read keyword list may be used. The obtained first pre-read keyword is matched and identified, and the preset grammar rule may also be used to identify whether the acquired first pre-read keyword meets the pre-read keyword of the rule.
  • step 103 the pre-read page corresponding to the determined first pre-read URL is loaded by using the pre-read window;
  • a pre-reading window ie, a hidden window, which may also be referred to as a second window relative to the first window
  • the loading corresponds to the first pre-reading URL.
  • a pre-read page ie, a pre-read page
  • the loading process does not affect the current window (the first window) ) Browse the page.
  • the read-ahead window may be newly created for the pre-read page, or may be an open window other than the current window.
  • the method may further include: determining whether there is a pre-read window, if not, creating a pre-read window; if there is a pre-read window, The pre-read page corresponding to the first pre-read URL is directly loaded using the pre-read window.
  • the first window when browsing a normal page, there is only one window (ie, the first window).
  • a pre-read page needs to be loaded, it is first determined whether there is a pre-reading window (ie, a hidden window or an invisible window).
  • the read-ahead window is used for pre-reading the loading of the page; if it already exists, the pre-reading page corresponding to the first pre-reading URL is loaded using the existing pre-reading window; otherwise, the pre-reading window is created first, and then the created pre-reading is used.
  • the read window loads the pre-read page corresponding to the first pre-read URL.
  • the pre-reading window as the second window will always exist with the current window (ie, the first window), because the pre-reading window remains forward and backward. Historical item.
  • Step 104 Upon receiving the instruction to enter the pre-read page, the browser switches the pre-read window loaded with the pre-read page to the current window.
  • the browser receives the click message and determines whether the current one is being read or pre-read. Reading the completed link, if yes, indicating that an instruction to enter the pre-read page corresponding to the first pre-read URL is received, and the current display window is switched from the first window to the window for loading the pre-read page according to the instruction (ie, pre-reading) In the window or in the second window). That is, regardless of whether the page of the pre-read link (ie, the pre-read page corresponding to the first pre-read URL) is loaded, the embodiment may switch the instruction or enter the pre-read page corresponding to the first pre-read URL. The instruction switches the current display window from the first window to the corresponding window of the page currently being loaded or already loaded. After the switchover is completed, the corresponding read-ahead window becomes the current window.
  • the window in which the pre-read page is loaded in the background can be effectively used, unlike in the prior art, the pre-read page is not loaded. If you switch to the window corresponding to the pre-reading page, you need to reload the pre-reading page. Alternatively, when clicking the forward button on the toolbar, if the pre-read page is being loaded, you can also switch directly to the window of the pre-read page being loaded.
  • the present invention preloads the pre-read page through the created pre-read window (hidden window), and when receiving the user clicks into the pre-read page, the current
  • the seamless switching between the window (the first window) and the pre-reading window (the second window) improves the user experience, and the seamless switching does not cause the JS environment switching at the bottom of the browser.
  • the window switching method may further include: The progress of the pre-read page corresponding to the first pre-read URL is prompted.
  • the specific implementation manner may be: prompting the loading progress of the pre-reading page corresponding to the first pre-reading URL by changing the color of the current toolbar forward button color or the pre-reading keyword in the page, or prompting in the form of a floating prompt window The loading progress of the pre-read page corresponding to the first pre-read URL by the user.
  • the hover prompt window may also display the loading progress of the pre-read page corresponding to the first pre-read URL in a progress bar or other visual form.
  • the color of the pre-reading keyword in the page is changed and/or the current toolbar is changed by executing a piece of JS code in the current window (ie, the first window).
  • the color of the forward button, or a floating prompt window on the current window prompts the loading progress of the pre-read page corresponding to the first pre-read URL. For example, after the pre-reading page is loaded, the color of the pre-read keyword or the color of the forward button of the current toolbar will gradually become a preset color, such as green.
  • the user can obtain a continuous and uninterrupted web browsing experience. After opening the page through the pre-reading window, the user can continue to obtain the second pre-reading of all the content on the page opened through the pre-reading window. a second pre-read URL corresponding to the second pre-reading keyword; loading a page of the second pre-read URL by using the first window; switching to loading the second when receiving the instruction to enter the first window Pre-reading the first window of the URL, and opening the second pre-read URL corresponding page through the first window.
  • the process is similar to the above process, except that the second pre-reading keyword in the page is opened through the second window (current window), and then the first window is used as the new pre-reading window. And the second pre-reading URL corresponding to the pre-reading keyword, and when receiving the page entering the second pre-reading URL, switching to the pre-reading window loaded with the second pre-reading URL (ie, the foregoing first window).
  • one page when browsing a normal page, one page only corresponds to one window, and when there is a pre-read page, a hidden window needs to be created, and the hidden window is used for pre-reading switching.
  • the window will continue to exist along with the current window, because this window retains the history item of the forward and backward.
  • a history item management capable of managing two windows is encapsulated.
  • the management diagram of its historical items is shown in Figure 2. In Fig. 1, taking the pages HI to H6 as an example, it is not limited to this.
  • FIG. 2 illustrates a manner of managing historical items in accordance with an embodiment of the present invention.
  • window W1 when each page is normally browsed, only window W1 is created.
  • window W2 is created, and the two windows are not related to the primary and secondary. Once the window W2 is created, it will only be destroyed when it is closed when the window is closed.
  • pre-reading is a technology that accelerates the startup speed of a program. The main principle is to read the main content of a common program when browsing the web or booting the operating system, so that it takes a lot of time to read the program when it starts. The data.
  • window W1 loads a page that needs to be pre-read
  • window W2 is created to load the pre-read page, and the pre-read page is H2.
  • window W1 is used for pre-reading, and the pre-reading page is H3.
  • the pre-reading page H3 is switched to the H3 history item of the window W1 window.
  • click on a link in H3 because it is not pre-read, it can be directly loaded in the current window.
  • H4o it needs to be pre-read in H4 then it will use window W2 to load this pre-read page, which is H5o.
  • the present invention also provides a window switching device corresponding to the above window switching method, and Fig. 3 shows a logical structure of the window switching device according to an embodiment of the present invention.
  • the window switching apparatus includes a pre-read keyword acquiring unit 31, a pre-reading URL determining unit 32, a pre-reading page loading unit 33, and a window switching unit 34.
  • the pre-reading keyword obtaining unit 31 is configured to obtain the first pre-reading keyword that meets the requirements in all the content on the page opened by the current window; wherein, the pre-reading keyword is a character or a character capable of characterizing the pre-reading requirement. For example, “Next Page”, “Next Chapter”, “ ⁇ ”, “»,,, “ ⁇ ,,, “>”, etc.
  • the pre-read URL determining unit 32 is configured to determine a first pre-reading resource uniform identifier URL corresponding to the first pre-reading keyword; the determining process may be that the database correspondingly searches for the URL corresponding to the JS code.
  • the pre-read page loading unit 33 is configured to load the pre-read page corresponding to the first pre-read URL determined by the pre-read URL determining unit 32 by using the created pre-read window; the window switching unit 34 is configured to receive the entry into the pre-read page. When the instruction is executed, the pre-read window loaded with the pre-read page is switched to the current window.
  • the window switching device provided by the present invention may further include a pre-reading window determining unit 41 and a pre-reading window creating unit 42.
  • the schematic structural diagram is shown in FIG. 4, wherein the pre-reading window determining unit 41 is used for pre-reading.
  • the URL determining unit 32 determines whether there is a pre-reading window; and sends the determination result that the pre-reading window does not exist to the pre-reading window creating unit 42, and the pre-reading is present.
  • the judgment result of the window is sent to the pre-read page loading unit 33;
  • the pre-read window creating unit 42 is configured to create a pre-reading window for loading the pre-reading page when receiving the determination result of the pre-reading window sent by the pre-reading window determining unit;
  • the pre-read page loading unit 33 is further configured to load the pre-read page corresponding to the first pre-read URL with the created pre-read window after the pre-read window creating unit 42 creates the pre-reading window for loading the pre-reading page.
  • the window switching device provided by the present invention may further include a prompting unit 51.
  • the schematic structural diagram is as shown in FIG. 5.
  • the prompting unit 51 is configured to load, in the pre-reading page loading unit 33, a first pre-reading URL. After the pre-reading page is completed, the loading progress of the pre-reading page corresponding to the first pre-reading URL is prompted in the current window.
  • the prompting unit 51 is specifically configured to: after the pre-reading page loading unit loads the pre-reading page corresponding to the first pre-reading URL, change the current button color of the current toolbar and/or change the pre-reading key of the page. The word color or create a hovering prompt window suspended in the current window to prompt the loading progress of the pre-reading page corresponding to the first pre-reading URL.
  • the pre-reading keyword obtaining unit is further configured to obtain a second pre-read keyword that meets the requirements in all the content on the page opened through the pre-reading window after the page is opened through the pre-reading window;
  • the pre-read URL determining unit is further configured to determine a second pre-read URL corresponding to the second pre-read keyword
  • the pre-read page loading unit is further configured to load the page of the second pre-read URL by using the first window
  • the window switching unit is further configured to: when receiving the instruction to enter the page of the second pre-read URL, switch the current window to the first window that loads the second pre-read URL, SP, and load the second pre- The new read-ahead window that reads the URL switches to the current window.
  • the window switching device provided by the present invention may be integrated in the server, or may be independently arranged, which is not limited in this embodiment.
  • the browser receives an instruction from the user to open the PC version of the Taobao website, opens the website, and searches for an item, such as shoes, according to user needs. Then you will enter the search page of the shoes.
  • the browser receives the user's use of JS to fetch the pre-read keywords in the page: the next page (ie, the pre-read page), and returns the URL corresponding to the keyword to the browser.
  • the browser corresponds to the window of the current page, creates an invisible window, and loads the URL corresponding to the keyword using the invisible window.
  • the browser receives the user needs to switch to the pre-read page (ie, the next page), switching between the two windows, that is, switching from the current window to the invisible window, and after the successful switching, is invisible
  • the window acts as the current window, its state becomes visible, and the current window becomes invisible, and its state becomes invisible.
  • the method for pre-reading page switching does not involve the problem that JS cannot be executed because the underlying JS environment switching is not involved, and the pictures of all products of the pre-read page can be Normally loaded back, and JS can be executed correctly.
  • the pre-read page is pre-loaded by creating a hidden window, and when the click advances to the pre-read page, the current window and the hidden window are switched to reach the current page and the pre- Read seamless switching of pages. Moreover, such a switch does not perform the JS environment switching under the WebKit, so it does not affect the JS execution problem of the pre-read page. Therefore, it can be seen that the embodiment of the present invention can be well embodied for the new features of HTML5.
  • the window switching method and device provided by the present invention implements a dual window switching method and device, and seamlessly switches between the current page and the pre-read page, thereby improving the user experience.
  • the technical solution of the present invention is adopted to facilitate the kernel upgrade, and the kernel code is basically not modified, although the pre-read function can be used to switch to the native WebKit kernel, so that the browser kernel can be independently released.
  • JS can be executed normally, stability is improved, and it can also solve the hidden dangers that may exist before.
  • the UE may be any one of the following, and may be static or mobile.
  • the static UE may specifically include a terminal, a mobile station, and a subscriber unit. Or a station, etc.
  • the mobile UE may specifically include a cellular phone, a personal digital assistant (PDA), a modem, a wireless communication device, a handheld device, a laptop computer ( Laptop computer)
  • PDA personal digital assistant
  • WLL wireless local loop
  • “browser” refers to the UE browser.
  • the present invention can be implemented by means of software plus a necessary general hardware platform, and of course, can also be through hardware, but in many cases, the former is a better implementation. the way.
  • the technical solution of the present invention which is essential or contributes to the prior art, may be embodied in the form of a software product, which may be stored in a storage medium such as a ROM/RAM or a disk. , an optical disk, etc., includes instructions for causing a computer device (which may be a personal computer, server, or network device, etc.) to perform the methods described in various embodiments of the present invention or portions of the embodiments.
  • the present invention also provides a computer readable storage medium having program code executable by a processor, which when executed, enables the processor to perform the steps of the aforementioned window switching method.
  • the window switching method, apparatus, and storage medium according to the present invention are described by way of example with reference to the accompanying drawings. However, it will be understood by those skilled in the art that various modifications can be made to the above-described window switching method, apparatus, and storage medium without departing from the scope of the present invention. Therefore, the scope of the invention should be determined by the content of the appended claims.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Human Computer Interaction (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

本发明提供了一种窗口切换方法、装置及其存储介质,其中的方法包括:获取通过当前窗口打开的页面上所有内容中符合要求的第一预读关键字;确定与所述第一预读关键字相对应的第一预读URL;利用预读窗口加载与所述第一预读URL对应的预读页面;在接收到进入所述预读页面的指令时,将加载了所述预读页面的所述预读窗口切换为当前窗口。利用本发明,可实现预读功能,而且还能够解决现有技术中在切换到预读页面后,不能完全显示预读页面上的内容,导致用户体验度低的技术问题。

Description

窗口切换方法、 及其存储介质
技术领域
本发明涉及移动通信技术领域, 更为具体地, 涉及一种窗口切换方法、 装置及其存储介质。 背景技术
随着社会的进步和技术的发展, 人们越来越多地使用接入终端来以无线 的方式接入因特网或企业内部网络来获取信息。 为了提高移动终端浏览器浏 览网页的速度和体验, 目前的移动终端浏览器已经实现了对预读功能的支持, 即可以根据预读关键字进行网页预读, 并且在预读页面加载完成之后, 浏览 器即进行页面切换, 进入预读页面, 并显示预读页面上的内容。
但是, 在现有的利用移动终端浏览器进行预读网页浏览的过程中, 由于 预读的页面内容 (比如商品图片等) 几乎都是使用延迟加载 (LazyLoad) 来 进行加载的, 因此在进行页面切换时会导致脚本语言 (JS, JavaScript) 不能 执行正确的页面切换, 也就是说, 预读页面中的部分内容 (比如部分商品图 片等) 无法加载, 即不能显示, 从而降低了用户体验。 发明内容
鉴于上述问题, 本发明的目的是提供一种窗口切换方法、 装置及其存储 介质, 以解决现有技术中在切换到预读页面后, 不能完全显示预读页面上的 内容, 导致用户体验度低的技术问题。 根据本发明的一个方面, 提供了一种窗口切换方法, 包括:
获取通过当前窗口打开的页面上所有内容中符合要求的第一预读关键 字;
确定与所述第一预读关键字相对应的第一预读 URL;
利用预读窗口加载与所述第一预读 URL对应的预读页面; 在接收到进入所述预读页面的指令时, 将加载了所述预读页面的所述预 读窗口切换为当前窗口。
根据本发明的另一方面, 提供了一种窗口切换装置, 包括:
预读关键字获取单元, 用于获取通过当前窗口打开的页面上所有内容中 符合要求的第一预读关键字;
预读 URL确定单元, 用于确定与所述第一预读关键字相对应的第一预读 URL;
预读页面加载单元, 用于利用预读窗口加载与所述第一预读 URL对应的 预读页面;
窗口切换单元, 用于在接收到进入所述预读页面的指令时, 将加载了所 述预读页面的所述预读窗口切换为当前窗口。
另外, 本发明还提供一种包括前述窗口切换装置的移动终端。
另外, 本发明还提供一种包括前述窗口切换装置的用户设备。
再一方面,本发明还提供一种具有处理器可执行的程序代码的计算机可 读存储介质, 在被执行时, 所述程序代码使得处理器执行前述的窗口切换 方法中的步骤。
利用上述根据本发明的窗口切换方法、 装置及存储介质, 在进行页面预 读时, 可以通过创建的预读窗口 (隐藏窗口) 来对预读页面进行预加载, 当 接收到用户点击进入到预读页面时, 进行当前窗口 (第一窗口) 与预读窗口 的无缝切换, 从而提高了用户的体验度, 同时, 该无缝切换也不会引起浏览 器底层的 JS环境切换。 为了实现上述以及相关目的, 本发明的一个或多个方面包括后面将详细 说明并在权利要求中特别指出的特征。 下面的说明以及附图详细说明了本发 明的某些示例性方面。 然而, 这些方面指示的仅仅是可使用本发明的原理的 各种方式中的一些方式。 此外, 本发明旨在包括所有这些方面以及它们的等 同物。 附图说明
通过参考以下结合附图的说明及权利要求书的内容, 并且随着对本发明 的更全面理解, 本发明的其它目的及结果将更加明白及易于理解。 在附图中: 图 1为根据本发明实施例的窗口切换方法流程图;
图 2为根据本发明实施例的历史项的管理示意图;
图 3为根据本发明实施例的窗口切换装置的方框示意图;
图 4为根据本发明另一实施例的窗口切换装置的方框示意图。
在所有附图中相同的标号指示相似或相应的特征或功能。 具体实施方式
为了解决现有技术中预读页面切换时出现的不能完全显示问题, 本发明 提出了一种通过创建第二窗口加载预读页面的解决方案。 即, 在进行页面预 读时, 通过创建第二窗口来对预读页面进行预加载, 当接收到用户点击需要 进入到预读页面时, 进行当前窗口与第二窗口的无缝切换, 从而提高了用户 的体验度。
下面将结合本发明实施例中的附图, 对本发明的技术方案进行清楚、 完 整的描述, 显然, 所描述的实施例仅仅是本发明一部分实施例, 而不是全部 的实施例。 并且, 在下面的实施例描述中, 出于说明的目的, 为了提供对一 个或多个实施例的全面理解, 阐述了许多具体细节, 很明显, 也可以在没有 这些具体细节的情况下实现这些实施例。 基于本发明中的实施例, 本领域普 通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例, 都属于 本发明保护的范围。
本发明提出的通过创建预读窗口加载预读页面的解决方案,是在 UE浏览 器内核 (WebKit) 的历史项管理之上实现一套双窗口 (当前显示窗口和加载 预读页面的预读窗口) 历史项管理。 具体地, 在进行网页预读时, 通过创建 一个隐藏的窗口 (即前述预读窗口) 来对预读页进行预加载、 预解析、 预排 版以及预渲染, 当接收到用户点击, 需要进入预读页时, 进行当前窗口以及 隐藏窗口之间的切换, 以达到当前页面以及预读页面间的无缝切换。 这样的 切换, 由于没有涉及到 WebKit内核底层的脚本语言 (JS, JavaScript)环境切 换, 所以不会影响预读页面的 JS执行问题, WebKit内核就完全变成了一个黑 盒子。 另外, 这样的处理, 也方便内核升级, 而且不会由于内核的升级而影 响到预读功能的使用。 图 1示出了根据本发明实施例的窗口切换方法流程。
如图 1所示, 本发明提供的窗口切换方法包括:
步骤 101 :获取通过当前窗口打开的页面上所有内容中符合要求的第一预 读关键字;
在该步骤中, UE (User Equipment, 用户设备)浏览器在接收到用户点击 操作后, 通过当前窗口 (此时当前窗口被称为第一窗口) 打开对应的页面, 并获取第一窗口所显示的页面上所有内容中符合要求的第一预读关键字。 也 就是说, UE浏览器在收到用户点击操作后, 通过本地扫描该打开页面中的所 有内容, 并获取符合要求的预读关键字, 其中的符合要求的预读关键字为能 够表征有预读需要的文字或者字符, 比如 "下一页"、 "下一章"、 "^"、 "》"、 "→"、 "> "等。 从系统的指令执行角度而言, UE浏览器通过在第一窗口中执 行第一脚本语言 JS代码, 获取该打开页面中的预读关键字。
本实施例中, 正常页面浏览时, 一个页面只会对应一个窗口。 当用户通 过 UE浏览器打开一个页面, UE浏览器在第一窗口中执行第一脚本语言 JS 代码, 抓取该页面中预读关键字。
其中, 预读关键字可以为 "下一页"等文字, 也可以为与当前用户浏览 内容相关联的下一页的内容。
在获取了第一预读关键字之后, 在步骤 102 中, 确定与第一预读关键字 相对应的第一预读资源统一标识符 (第一预读 URL)。
基于上述步骤,当 UE浏览器获取的第一预读关键字是符合规则的预读关 键字时, 进一步获取与该预读关键字所对应的预读资源统一标识符 (URL, Uniform Resource Locator), 为了便于描述, 本实施例称为第一预读 URL。 其 中, 符合规则的预读关键字指的是具有预读可能的或者满足规定的预读关键 字识别条件的预读关键字, 在具体实现过程中, 可以以预设的预读关键字列 表对获取的第一预读关键字进行匹配识别, 也可以采用预置的语法规则识别 获取的第一预读关键字是否符合规则的预读关键字。
然后, 在步骤 103中, 利用预读窗口加载与所确定的与第一预读 URL对 应的预读页面;
该步骤, 在确定第一预读 URL后, 可以使用预读窗口 (即隐藏窗口, 相 对于第一窗口, 该预读窗口也可以称为第二窗口) 加载与第一预读 URL对应 的预读页面 (即预读页), 也就是说, 将与第一预读 URL对应的网页的内容 预先加载到该预读窗口内, 该加载过程并不会影响到当前窗口 (第一窗口) 中页面的浏览。 当浏览器接收到用户点击打开该第二窗口时, 直接显示该第 二窗口加载的预读页面的内容。
其中, 预读窗口可以是为了预读页面新创建的, 也可以是除当前窗口之 外的已经打开的窗口。
可选的, 在另一实施例中, 在确定第一预读 URL后, 所述方法还可以包 括: 判断是否存在预读窗口, 如果没有, 则创建预读窗口; 如果存在预读窗 口, 则使用该预读窗口直接加载与第一预读 URL对应的预读页面。
另外, 作为示例, 正常页面浏览时, 起初只有一个窗口 (即第一窗口), 当有预读页面需要加载时, 先判断是否存在预读窗口 (即一个隐藏窗口或不 可见的窗口), 该预读窗口用于预读页面的加载; 如果已存在, 则使用已存在 的预读窗口加载与第一预读 URL对应的预读页面; 否则, 先创建预读窗口, 再使用该创建的预读窗口加载与第一预读 URL对应的预读页面。
需要说明的是, 在该实施例中, 在创建该预读窗口后, 该预读窗口作为 第二窗口就会和当前窗口 (即第一窗口) 一直存在, 因为该预读窗口保留着 前进后退的历史项。
步骤 104: 在接收到进入预读页面的指令时, 浏览器将加载了预读页面的 预读窗口切换为当前窗口。
在该实施例中, 如果用户通过人机交互界面点击页面内预读关键字对应 的 URL (链接) 时, 浏览器就会接收到点击的消息, 并判断当前是否点击一 个正在预读或者已经预读完成的链接, 如果是, 则说明接收到了进入与第一 预读 URL对应的预读页面的指令, 根据该指令将当前显示窗口从第一窗口切 换到加载预读页的窗口 (即预读窗口或者第二窗口) 中。 也就是说, 不管预 读链接 (即与第一预读 URL对应的预读页面) 的页面是否加载完成, 本实施 例都可以应切换指令或者进入与第一预读 URL对应的预读页面的指令, 将当 前显示窗口从第一窗口切换到当前正在加载或已经加载的页面对应窗口。 切 换完毕, 相应的预读窗口就变成了当前窗口。
因此, 本实施例中, 即使在预读页面没加载完成的情况下, 也可以有效 的使用后台加载预读页的窗口, 而不像现有技术中, 在预读页面没加载完成 时, 如果切换到预读阅读页面对应的窗口, 则需要重新加载一遍预读页。 或 者, 在点击工具栏的前进按钮时, 如果是正在加载预读页面, 也可以直接切 换到正在加载的预读页的窗口上。
通过上述实施例可以看出, 在进行页面预读时, 本发明通过创建的预读 窗口 (隐藏窗口) 来对预读页面进行预加载, 当接收到用户点击进入到预读 页面时, 进行当前窗口 (第一窗口) 与预读窗口 (第二窗口) 的无缝切换, 从而提高了用户的体验度, 同时, 该无缝切换也不会引起浏览器底层的 JS环 境切换。
可选的, 在本发明的另一实施例中, 在上述实施例的基础上, 即在加载 与第一预读 URL对应的预读页面完成后, 该窗口切换方法还可以包括: 在当 前窗口中提示与第一预读 URL对应的预读页面的加载进度。 具体的实现方式 可以是: 通过改变当前工具栏前进按钮颜色或页面内预读关键字的颜色来提 示与第一预读 URL对应的预读页面的加载进度, 或者以一个悬浮提示窗口的 形式提示用户与第一预读 URL对应的预读页面的加载进度。
另外, 悬浮提示窗口也可以以进度条或者其他可视的形式显示与第一预 读 URL对应的预读页面的加载进度。
也就是说, 在预读窗口的页面加载过程中以及加载完成之后, 在当前窗 口 (即第一窗口) 中通过执行一段 JS代码, 改变页面内预读关键字的颜色和 /或改变当前工具栏的前进按钮的颜色, 或者在当前窗口上显示一个一个悬浮 提示窗口, 来提示与第一预读 URL对应的预读页面的加载进度。 比如, 在预 读页面加载完成后, 预读关键字的颜色或当前工具栏的前进按钮的颜色就会 逐渐变成预先设定的颜色, 比如绿色等。
为了实现持续的预读, 使用户获得持续、 不间断的网页浏览体验, 在通 过预读窗口打开页面后, 还可以继续获取通过预读窗口打开的页面上所有内 容中符合要求的第二预读关键字; 进而确定该第二预读关键字对应的第二预 读 URL; 利用第一窗口加载第二预读 URL的页面; 在接收到进入第一窗口的 指令时, 切换到加载了第二预读 URL的第一窗口, 并通过第一窗口打开第二 预读 URL对应页面。
也就是说, 在将当前窗口切换到第二窗口后, 即原预读窗口成为当前窗 口, 相应地, 第一窗口成为隐藏窗口 (新的预读窗口), 如果此时需要继续预 读页面, 该过程同上述过程类似, 只不过, 是先获取通过第二窗口 (当前窗 口) 打开页面中的第二预读关键字, 然后, 使用前述第一窗口作为新的预读 窗口加载第二预读关键字对应的第二预读 URL, 并在接收到进入到第二预读 URL的页面时, 切换到加载了第二预读 URL的预读窗口 (即前述第一窗口)。
本发明实施例中, 在正常页面浏览时, 一个页面只会对应一个窗口, 而 当有预读页面的时候, 就需要创建出一个隐藏窗口, 该隐藏窗口用于预读切 换。 但需要说明的是, 一旦建立隐藏窗口, 该窗口就会伴随着当前窗口一起 一直存在, 因为这个窗口保留着前进后退的历史项。
也就是说, 对于浏览器内核(WebKit), 封装了一个能够管理两个窗口的 历史项管理。 其历史项的管理示意图如图 2所示。 图 1中, 以页面 HI 至 H6 为例, 当并不限于此。
图 2示出了根据本发明实施例的历史项的管理方式。 在图 2中, 每个页 面正常浏览时, 只会创建窗口 W1 , 当需要预读时, 就会创建窗口 W2, 这两 个窗口不分主次。 一旦窗口 W2创建之后, 只会等待关闭窗口时才会跟窗口 W1—起被销毁掉。 其中, 预读是采用的一种加速程序进程启动速度的技术, 主要原理是在网页浏览或开机加载操作系统的时候读取常用程序的主要内容 以备该程序启动时耗费大量时间来读取本身的数据。
当窗口 W1加载一个需要预读的页面时, 如果前页以 HI为例, 然后就创 建窗口 W2来加载预读页, 预读页为 H2。 在从 HI切换到 H2, 即 H2为当前 页时, 又需要预读, 那么, 就使用窗口 W1来进行预读, 预读页为 H3。 再次 切换到预读页 H3时, 也就是切换到窗口 W1窗口的 H3历史项中。 然后, 在 H3 中点击某个链接, 因为不是预读, 那么直接可以在当前窗口中加载, 为 H4o在 H4中又需要进行预读, 那么就会使用窗口 W2来加载这个预读页, 为 H5o 然后在 H5中点击链接, 就会直接在当前窗口 (W2) 中加载, 变成 H6。
当点击后退时, 比如在 H5 时, 点击后退按钮, 那么就需要切换到窗口
W1来显示。 因为窗口 W1当前的页面时 H4, 所以无需调用 WebKit的前进后 退。 再次点击后退, 在当前窗口 W1 , 调用 WebKit的前进后退功能, 后退到 H3o 再次点击后退时, 应该是后退到 H2。 而窗口 W2当前显示的是 H5, 那 么就需要调用窗口 W2的 WebKit前进后退功能后退到 H2, 之后就进行窗口 W1和窗口 W2的切换, 将窗口 W2上的内容显示出来。 而对于用户所知道的历史项就是最上层的 H1-H6, 完全是按照顺序的。 而对于浏览器来说, 就需要一个管理器来将两个窗口错乱的历史项给拼接起 来。 而这个就是双窗口历史项管理所需要做的事情。
基于上述方法的实现的过程, 本发明还提供一种与上述窗口切换方法相 对应的窗口切换装置, 图 3 示出了根据本发明实施例的窗口切换装置的逻辑 结构。
如图 3所示, 本发明提供的窗口切换装置包括预读关键字获取单元 31, 预读 URL确定单元 32, 预读页面加载单元 33和窗口切换单元 34。
其中, 预读关键字获取单元 31用于获取通过当前窗口打开的页面上所有 内容中符合要求的第一预读关键字; 其中, 预读关键字为能够表征有预读需 要的文字或者字符, 比如 "下一页"、 "下一章"、 "^"、 "»,,、 "→,,、 "> "等。
预读 URL确定单元 32用于确定与第一预读关键字相对应的第一预读资 源统一标识符 URL; 其确定的过程, 可以是从数据库总査找该 JS代码对应的 URL。 预读页面加载单元 33用于利用创建的预读窗口加载预读 URL确定单 元 32所确定的与第一预读 URL对应的预读页面; 窗口切换单元 34用于在接 收到进入预读页面的指令时, 将加载了预读页面的预读窗口切换为当前窗口。
可选的, 本发明提供的窗口切换装置还可以包括预读窗口判断单元 41和 预读窗口创建单元 42, 其结构示意图如图 4所示, 其中, 预读窗口判断单元 41用于在预读 URL确定单元 32确定第一预读关键字对应的第一预读 URL后, 判断是否存在预读窗口; 并将不存在预读窗口的判断结果发送给预读窗口创 建单元 42, 将存在预读窗口的判断结果发送给预读页面加载单元 33;
预读窗口创建单元 42用于在接收到预读窗口判断单元发送的不存在预读 窗口的判断结果时, 创建用于加载预读页面的预读窗口;
预读页面加载单元 33,还用于在预读窗口创建单元 42创建了用于加载预 读页面的预读窗口之后, 利用创建的预读窗口加载与第一预读 URL对应的预 读页面。
可选的, 本发明提供的窗口切换装置还可以包括提示单元 51, 其结构示 意图如图 5所示, 提示单元 51用于在所述预读页面加载单元 33加载与第一 预读 URL对应的预读页面完成后, 在当前窗口中提示与第一预读 URL对应 的预读页面的加载进度。 其中, 所述提示单元 51具体用于在预读页面加载单元加载与所述第一预 读 URL对应的预读页面完成后,通过改变当前工具栏前进按钮颜色和 /或改变 页面的预读关键字颜色或者创建一个悬浮于当前窗口的悬浮提示窗口来提示 与所述第一预读 URL对应的预读页面的加载进度。
可选的, 预读关键字获取单元, 还用于在通过预读窗口打开页面后, 获 取通过预读窗口打开的页面上所有内容中符合要求的第二预读关键字;
预读 URL 确定单元还用于确定与第二预读关键字相对应的第二预读 URL;
预读页面加载单元还用于利用所述第一窗口加载所述第二预读 URL的页 面;
窗口切换单元, 还用于在接收到进入第二预读 URL的页面的指令时, 将 当前窗口切换到加载所述第二预读 URL的所述第一窗口, SP, 将加载了第二 预读 URL的新的预读窗口切换为当前窗口。
可选的, 本发明提供的窗口切换装置可以集成在服务器中, 也可以独立 布置, 本实施例不作限制。
并且, 本发明提供的窗口切换装置中的各个单元的功能和作用的实现过 程详见上述方法中对应步骤的实现过程, 在此不再赘述。
为了便于本领域技术人员的理解, 下面以具体的实例来说明。
首先,假设浏览器接收到用户打开 PC版的淘宝网站的指令,打开该网站, 对按照用户需求对某个商品进行搜索, 例如鞋子。 那么就会进入到鞋子的搜 索页面。
其次,浏览器接收到用户使用 JS抓取该页面内的预读关键字:下一页(即 预读页), 并返回该关键字所对应的 URL给浏览器。
再后, 浏览器对应当前页面的窗口, 创建一个不可见的窗口, 并使用所 述不可见的窗口对该关键字所对应 URL进行加载。
再后, 当浏览器接收到用户需要切换到预读页 (即下一页) 时, 进行两 个窗口之间的切换, 即从当前窗口切换到不可见窗口, 并在切换成功后, 不 可见窗口作为当前窗口, 其状态变为可见状态, 而当前窗口变为不可见窗口, 其状态变为不可见。
也就是说, 现有技术中, 淘宝搜索页的预读页的商品图片都是使用延迟 加载 (LazyLoad) 来进行加载的, 而对于 UC浏览器现有的预读功能, 是可 以将这个页面预加载回来的, 但是切换到预读页之后, 会发现该页面的几十 个商品的图片只有三四个显示出来了, 其他的都无法显示出来。 这种情况就 是当前的预读功能的切换存在问题, 从而导致 JS不能够正确执行。 基于此, 按照本发明实施例提供的技术方案进行预读页切换的方式, 因为不涉及底层 的 JS环境切换,所以就不会出现 JS不能执行的问题,预读页的所有商品的图 片都可以正常加载回来, 而且 JS都可以正确执行。
另外, 对于未来的 HTML5的发展, 会带来更多的新功能, 比如传感器之 类的功能都可以在预读页面上进行执行。对于 HTML5的新特性,现有技术中, 是通过一段 JS代码就可以获取到传感器的一些信息和数据, 而在预读页面中 因为 JS代码不能够执行, 那么也就执行不了对应的传感器功能, 而本发明实 施例所述技术方案中, 通过创建一个隐藏的窗口来对预读页进行预加载, 当 点击前进到预读页时, 进行当前窗口以及隐藏窗口的切换, 以达到当前页面 以及预读页面的无缝的切换。 而且这样的切换, 不会进行 WebKit底层的 JS 环境切换, 所以不会影响预读页面的 JS执行问题, 因此可见, 本发明实施例 可以针对 HTML5的新特性进行很好体现。
由此可见, 本发明提供的窗口切换方法及装置通过实现一套双窗口切换 的方法及装置, 进行当前页面以及预读页面的无缝切换, 提高了用户的体验 度。 而且采用本发明所述技术方案, 方便内核升级, 基本上不用修改内核代 码, 尽管切换到原生 WebKit内核也可以使用预读功能, 使得浏览器内核可以 独立发布。 另外, JS 可以正常执行, 稳定性提高, 同时, 也可以解决之前可 能存在的崩溃隐患。
在本发明实施例中, UE可以为以下任意一种, 可以是静态的, 也可以是 移动的,静止的 UE具体可以包括为终端(terminal)、移动台(mobile station )、 用户单元 (subscriber unit) 或站台 (station) 等, 移动的 UE具体可以包括蜂 窝电话 (cellular phone )、 个人数字助理 (PDA, personal digital assistant )> 调制解调器(modem),无线通信设备、手持设备(handheld)、笔记本电脑(laptop computer) 无绳电话 (cordless phone)或无线本地环路 (WLL, wireless local loop ) 台等, 上述 UE可以分布于整个无线网络中。 并且在上述的实施例描述 中, "浏览器"指的就是 UE浏览器。 需要说明的是, 在本文中, 诸如第一和第二等之类的关系术语仅仅用来 将一个实体或者操作与另一个实体或操作区分开来, 而不一定要求或者暗示 这些实体或操作之间存在任何这种实际的关系或者顺序。 而且, 术语"包括"、 "包含 "或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要 素的过程、 方法、 物品或者设备不仅包括那些要素, 而且还包括没有明确列 出的其他要素, 或者是还包括为这种过程、 方法、 物品或者设备所固有的要 素。在没有更多限制的情况下, 由语句 "包括一个 ...... "限定的要素, 并不排除 在包括所述要素的过程、 方法、 物品或者设备中还存在另外的相同要素。
通过以上的实施方式的描述, 本领域的技术人员可以清楚地了解到本发 明可借助软件加必需的通用硬件平台的方式来实现, 当然也可以通过硬件, 但很多情况下前者是更佳的实施方式。 基于这样的理解, 本发明的技术方案 本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来, 该计算机软件产品可以存储在存储介质中, 如 ROM/RAM、 磁碟、 光盘等, 包括若干指令用以使得一台计算机设备 (可以是个人计算机, 服务器, 或者 网络设备等) 执行本发明各个实施例或者实施例的某些部分所述的方法。
因此,本发明还提供一种具有处理器可执行的程序代码的计算机可读存 储介质, 在被执行时, 该程序代码能够使得处理器执行前述窗口切换方法 中的步骤。 如上参照附图以示例的方式描述根据本发明的窗口切换方法、 装置及存 储介质。 但是, 本领域技术人员应当理解, 对于上述本发明所提出的窗口切 换方法、 装置及存储介质, 还可以在不脱离本发明内容的基础上做出各种改 进。 因此, 本发明的保护范围应当由所附的权利要求书的内容确定。

Claims

权 利 要 求 书
1、 一种窗口切换方法, 包括:
获取通过当前窗口打开的页面上所有内容中符合要求的第一预读关键 字;
确定与所述第一预读关键字相对应的第一预读 URL;
利用预读窗口加载与所述第一预读 URL对应的预读页面;
在接收到进入所述预读页面的指令时, 将加载了所述预读页面的所述预 读窗口切换为当前窗口。
2、 根据权利要求 1所述的窗口切换方法, 其中,
在确定所述第一预读 URL后, 判断是否存在所述预读窗口; 其中, 如果不存在所述预读窗口, 则创建所述预读窗口, 然后利用所创建的所 述预读窗口加载与所述第一预读 URL对应的预读页面;
如果存在所述预读窗口, 则直接利用所述预读窗口加载与所述第一预读
URL对应的预读页面。
3、 根据权利要求 1或 2所述的窗口切换方法, 其中, 在加载与所述第一 预读 URL对应的预读页面完成后, 还包括:
在所述当前窗口中提示与所述第一预读 URL对应的预读页面的加载进#。
4、 根据权利要求 3所述的窗口切换方法, 其中, 在提示与所述第一预读 URL对应的预读页面的加载进度的过程中,
通过改变当前工具栏前进按钮颜色来提示与所述第一预读 URL对应的预 读页面的加载进度。
5、 根据权利要求 3所述的窗口切换方法, 其中, 在提示与所述第一预读 URL对应的预读页面的加载进度的过程中,
通过改变当前页面内预读关键字的颜色来提示与所述第一预读 URL对应 的预读页面的加载进度
6、 根据权利要求 3所述的窗口切换方法, 其中, 在提示与所述第一预读 URL对应的预读页面的加载进度的过程中,
通过创建一个悬浮于所述当前窗口的提示窗口来提示与所述第一预读
URL对应的预读页面的加载进度。
7、 根据权利要求 1所述的窗口切换方法, 其中, 在将加载了所述第一预 读 URL的所述预读窗口切换为当前窗口后,原当前窗口被视为新的预读窗口, 并且, 所述窗口切换方法还包括:
获取通过当前窗口打开的页面上所有内容中符合要求的第二预读关键 字;
确定所述第二预读关键字对应的第二预读 URL;
利用所述新的预读窗口加载所述第二预读 URL的页面;
在接收到进入所述第二预读 URL的页面的指令时, 将加载了所述第二预 读 URL的所述新的预读窗口切换为当前窗口。
8、 一种窗口切换装置, 包括:
预读关键字获取单元, 用于获取通过当前窗口打开的页面上所有内容中 符合要求的第一预读关键字;
预读 URL确定单元, 用于确定与所述第一预读关键字相对应的第一预读 URL;
预读页面加载单元, 用于利用预读窗口加载与所述第一预读 URL对应的 预读页面;
窗口切换单元, 用于在接收到进入所述预读页面的指令时, 将加载了所 述预读页面的所述预读窗口切换为当前窗口。
9、 根据权利要求 8所述的窗口切换装置, 还包括预读窗口判断单元和预 读窗口创建单元, 其中,
预读窗口判断单元, 用于在所述预读 URL确定单元确定所述第一预读 URL后, 判断是否存在预读窗口; 并将不存在窗口的判断结果发送给所述预 读窗口创建单元, 将存在预读窗口的判断结果发送给所述预读页面加载单元; 所述预读窗口创建单元, 用于在接收到所述预读窗口判断单元发送的不 存在预读窗口的判断结果时, 创建预读窗口;
所述预读页面加载单元, 还用于在所述预读窗口创建单元创建了用于加 载预读页面的预读窗口之后, 利用创建的所述预读窗口加载与所述第一预读 URL对应的预读页面。
10、 根据权利要求 8或 9所述的窗口切换装置, 还包括:
提示单元, 用于在所述预读页面加载单元加载与所述第一预读 URL对应 的预读页面完成后, 在所述当前窗口中提示与所述第一预读 URL对应的预读 页面的加载进度。
11、 根据权利要求 10所述的窗口切换装置, 其中, 所述提示单元通过下 述方式来提示与所述第一预读 URL对应的预读页面的加载进度:
与第一预读 URL对应的预读页面改变当前工具栏前进按钮颜色和 /或改 变页面的预读关键字颜色; 或者,
或者创建一个悬浮于当前窗口的悬浮提示窗口与第一预读 URL对应的预 读页面的加载进度。
12、 根据权利要求 8所述的窗口切换装置, 其中,
在所述窗口切换单元将加载了所述第一预读 URL的所述预读窗口切换为 当前窗口后, 原当前窗口被视为新的预读窗口; 并且,
所述预读关键字获取单元继续获取通过所述当前窗口打开的页面上所有 内容中符合要求的第二预读关键字;
所述预读 URL确定单元确定所述第二预读关键字对应的第二预读 URL; 所述预读页面加载单元利用所述新的预读窗口加载所述第二预读 URL的 页面;
所述窗口切换单元在接收到进入所述第二预读 URL的页面的指令时, 将 加载了所述第二预读 URL的所述新的预读窗口切换为当前窗口。
13、 一种移动终端, 包括如权利要求 8〜12 中任一项所述的窗口切换装 置。
14、 一种用户设备, 包括如权利要求 8〜12 中任一项所述的窗口切换装 置。
15、 一种具有处理器可执行的程序代码的计算机可读存储介质, 在被 执行时, 所述程序代码使得处理器执行如下的步骤: 然
获取通过当前窗口打开的页面上所有内容中符合要求的第一预读关键 字;
确定与所述第一预读关键字相对应的第一预读 URL;
利用预读窗口加载与所述第一预读 URL对应的预读页面;
在接收到进入所述预读页面的指令时, 将加载了所述预读页面的所述预 读窗口切换为当前窗口。 然
根据权利要求浮 M述的具有处理器可执行的程序代码的计算机可 读存储介质, 其中, 然
在确定所述第一预读 URL后, 判断是否存在所述预读窗口; 其中, 如果不存在所述预读窗口, 则创建所述预读窗口, 然后利用所创建的所 述预读窗口加载与所述第一预读 URL对应的预读页面;
如果存在所述预读窗口, 则直接利用所述预读窗口加载与所述第一预读
URL对应的预读页面。 然
PCT/CN2014/073184 2013-06-28 2014-03-11 窗口切换方法、装置及其存储介质 WO2014206113A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US14/998,317 US10460001B2 (en) 2013-06-28 2015-12-24 Window switching method and device and storage medium thereof

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201310269566XA CN103376974A (zh) 2013-06-28 2013-06-28 一种窗口切换方法及装置
CN201310269566.X 2013-06-28

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US14/998,317 Continuation US10460001B2 (en) 2013-06-28 2015-12-24 Window switching method and device and storage medium thereof

Publications (1)

Publication Number Publication Date
WO2014206113A1 true WO2014206113A1 (zh) 2014-12-31

Family

ID=49462163

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/073184 WO2014206113A1 (zh) 2013-06-28 2014-03-11 窗口切换方法、装置及其存储介质

Country Status (3)

Country Link
US (1) US10460001B2 (zh)
CN (1) CN103376974A (zh)
WO (1) WO2014206113A1 (zh)

Families Citing this family (30)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103376974A (zh) 2013-06-28 2013-10-30 广州市动景计算机科技有限公司 一种窗口切换方法及装置
CN105278797A (zh) * 2014-06-27 2016-01-27 中兴通讯股份有限公司 页面切换的显示方法及装置
CN105335139B (zh) * 2014-07-24 2019-05-17 广州市动景计算机科技有限公司 网页显示方法和装置
CN105224167B (zh) * 2015-08-31 2018-07-06 深圳市茁壮网络股份有限公司 一种窗口切换方法及装置
CN106886550A (zh) * 2015-09-09 2017-06-23 阿里巴巴集团控股有限公司 移动终端中页面的显示方法和装置以及移动终端
CN105183890B (zh) * 2015-09-28 2020-07-10 北京奇虎科技有限公司 基于浏览器的网页加载方法和浏览器装置
CN105956152A (zh) * 2016-05-13 2016-09-21 北京金山安全软件有限公司 一种加载网页的方法、装置及电子设备
CN108628645B (zh) * 2018-04-28 2021-01-01 Oppo广东移动通信有限公司 应用程序预加载方法、装置、存储介质及终端
CN108595224B (zh) * 2018-04-28 2021-01-12 Oppo广东移动通信有限公司 应用程序提示方法、装置、存储介质及终端
CN108647052B (zh) * 2018-04-28 2020-12-01 Oppo广东移动通信有限公司 应用程序预加载方法、装置、存储介质及终端
CN108595228B (zh) 2018-05-10 2021-03-12 Oppo广东移动通信有限公司 应用程序预测模型建立方法、装置、存储介质及移动终端
CN108614722B (zh) 2018-05-10 2020-09-08 上海瑾盛通信科技有限公司 应用程序预加载方法、装置、存储介质及终端
CN108595227A (zh) 2018-05-10 2018-09-28 Oppo广东移动通信有限公司 应用程序预加载方法、装置、存储介质及移动终端
CN108647057B (zh) * 2018-05-10 2020-04-24 上海瑾盛通信科技有限公司 屏幕方向设置方法、装置、存储介质及终端
CN108664286B (zh) * 2018-05-10 2021-07-09 Oppo广东移动通信有限公司 应用程序预加载方法、装置、存储介质及移动终端
CN108647056B (zh) * 2018-05-10 2020-04-24 上海瑾盛通信科技有限公司 应用程序预加载方法、装置、存储介质及终端
CN108664285A (zh) * 2018-05-10 2018-10-16 Oppo广东移动通信有限公司 应用程序预加载方法、装置、存储介质及移动终端
CN108710512B (zh) * 2018-05-15 2020-01-14 Oppo广东移动通信有限公司 应用程序的预加载方法、装置、存储介质及智能终端
CN108710513B (zh) 2018-05-15 2020-07-21 Oppo广东移动通信有限公司 应用程序启动方法、装置、存储介质及终端
CN108733429B (zh) * 2018-05-16 2020-01-21 Oppo广东移动通信有限公司 系统资源配置的调整方法、装置、存储介质及移动终端
CN108681475B (zh) * 2018-05-21 2021-11-26 Oppo广东移动通信有限公司 应用程序预加载方法、装置、存储介质及移动终端
CN108762836B (zh) * 2018-05-21 2022-04-19 Oppo广东移动通信有限公司 预加载应用的管理方法、装置、存储介质及智能终端
CN108363593B (zh) * 2018-05-21 2020-01-21 Oppo广东移动通信有限公司 应用程序预加载方法、装置、存储介质及终端
CN110598137A (zh) * 2018-05-23 2019-12-20 北京三快在线科技有限公司 页面显示方法和装置以及计算设备
CN108833980B (zh) * 2018-05-24 2021-04-27 烽火通信科技股份有限公司 一种基于多窗口实现的iptv页面生成和重现的方法
CN108762844B (zh) * 2018-05-29 2021-09-07 Oppo广东移动通信有限公司 应用程序预加载方法、装置、存储介质及终端
CN108845838B (zh) * 2018-05-30 2021-07-09 Oppo广东移动通信有限公司 应用程序预加载方法、装置、存储介质及终端
CN108804157A (zh) 2018-06-05 2018-11-13 Oppo广东移动通信有限公司 应用程序预加载方法、装置、存储介质及终端
CN109874060B (zh) * 2019-01-04 2021-04-27 烽火通信科技股份有限公司 一种浏览器嵌套隐藏页面的错误提示方法及系统
CN110032702A (zh) * 2019-04-08 2019-07-19 腾讯科技(深圳)有限公司 网页显示方法、装置、设备及存储介质

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101763267A (zh) * 2010-01-21 2010-06-30 深圳市同洲电子股份有限公司 嵌入式浏览器的实现方法、装置和数字电视接收终端
CN102663003A (zh) * 2012-03-16 2012-09-12 掌中帷幄(北京)科技有限公司 移动终端多web页面应用中的页面切换方法及系统
CN103376974A (zh) * 2013-06-28 2013-10-30 广州市动景计算机科技有限公司 一种窗口切换方法及装置

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7007237B1 (en) * 2000-05-03 2006-02-28 Microsoft Corporation Method and system for accessing web pages in the background
CN101460945B (zh) * 2004-09-27 2012-03-28 Bt网络解决方案有限责任公司 用于增进式浏览的方法和装置
US20080022229A1 (en) * 2005-12-23 2008-01-24 Soujanya Bhumkar Methods and systems for enhancing internet experiences using previews
CN101075236A (zh) * 2006-06-12 2007-11-21 腾讯科技(深圳)有限公司 一种加快浏览器网页显示的装置和方法
KR100881668B1 (ko) * 2006-11-09 2009-02-06 삼성전자주식회사 웹 페이지 프리페치 장치 및 방법
US8473859B2 (en) * 2007-06-08 2013-06-25 Apple Inc. Visualization and interaction models
CN101325602A (zh) * 2008-07-30 2008-12-17 广州市动景计算机科技有限公司 一种微浏览器智能预读网页的方法及系统
KR20120048886A (ko) * 2010-11-08 2012-05-16 삼성전자주식회사 웹 페이지 출력 방법 및 장치

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101763267A (zh) * 2010-01-21 2010-06-30 深圳市同洲电子股份有限公司 嵌入式浏览器的实现方法、装置和数字电视接收终端
CN102663003A (zh) * 2012-03-16 2012-09-12 掌中帷幄(北京)科技有限公司 移动终端多web页面应用中的页面切换方法及系统
CN103376974A (zh) * 2013-06-28 2013-10-30 广州市动景计算机科技有限公司 一种窗口切换方法及装置

Also Published As

Publication number Publication date
CN103376974A (zh) 2013-10-30
US10460001B2 (en) 2019-10-29
US20160162595A1 (en) 2016-06-09

Similar Documents

Publication Publication Date Title
WO2014206113A1 (zh) 窗口切换方法、装置及其存储介质
US11907642B2 (en) Enhanced links in curation and collaboration applications
TWI690812B (zh) 頁面元件動態佈局方法、裝置及客戶端
US10678871B2 (en) Accelerating find in page queries within a web browser
US8041763B2 (en) Method and system for providing sharable bookmarking of web pages consisting of dynamic content
US9208316B1 (en) Selective disabling of content portions
US9436482B2 (en) Input content to application via web browser
US8904012B2 (en) Client-server input method editor architecture
US9503499B1 (en) Concealing latency in display of pages
WO2019072201A1 (zh) 网页内容提取方法以及终端设备
US10853319B2 (en) System and method for display of document comparisons on a remote device
US11334374B2 (en) Modifying readable and focusable elements on a page during execution of automated scripts
WO2016168983A1 (en) Method and electronic device for displaying web page
US8788927B2 (en) System and method for displaying web page content
US20170032494A1 (en) Methods for displaying a webpage fragment on a desktop and systems for taking a snapshot of webpage fragment for displaying on a desktop
US20150058713A1 (en) Method and apparatus for sharing media content and method and apparatus for displaying media content
US11157576B2 (en) Method, system and terminal for performing search in a browser
US20150188980A1 (en) Systems and Methods for Hosted Application Marketplaces
CN108345683B (zh) 网页显示方法、装置、终端及存储介质
CN114586005A (zh) 用于在浏览器内托管另一浏览器的系统和方法
CN113656737B (zh) 网页内容展示方法、装置、电子设备以及存储介质
WO2023025322A1 (zh) 一种会话中链接的处理方法、装置、系统及存储介质
CN114528510A (zh) 网页数据处理的方法、装置、电子设备及介质
CN115525305A (zh) 数据处理、应用启动方法、装置、计算机设备和存储介质
CN113778303A (zh) 一种文字提取的方法、装置及计算机可读存储介质

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 14818294

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 14818294

Country of ref document: EP

Kind code of ref document: A1