Computer systems and related technology affect many aspects of society. Indeed, the computer system's ability to process information has transformed modern society. Computer systems now commonly perform a host of tasks (e.g., word processing, scheduling, accounting, etc.) that prior to the advent of the computer system were performed manually. More recently, computer systems have been coupled to one another and to other electronic devices to form both wired and wireless computer networks. Such networks allow for transferring electronic data to and from computer systems and other electronic devices.
Oftentimes the transfer of electronic data includes the sharing of data, applications, hyperlinks, photos, and so forth. For example, an individual may be able to almost instantaneously share a recently captured photo with family, friends, and co-workers. Recently, hyperlinks have been used to link, or deep-link, to content within applications and websites other than a homepage of those applications or websites. Deep-linking can allow end users to access desired content without the hassle of navigating through numerous pages of an application or website. For instance, an end user of a web application may receive a hyperlink associated with a particular page of the web application. By selecting the link, the user can navigate directly to the particular page without having to navigate first to the homepage or any other intermediate page.
At least some embodiments described herein relate to navigating directly to a modal dialog overlaying a base web page. For example, embodiments may include detecting user input associated with navigating to a modal dialog overlaying a base web page. In response to detecting the user input, the computer system navigates directly to the modal dialog overlaying the base web page. The base web page acts as a background of the modal dialog, such that interaction with the model dialog is required prior to interaction with the base web page.
Accordingly, distinct uniform resource locators (URL) for each possible component of a web application or web page may allow for deep-linking directly to web pages within an application/website, modal dialogs overlaying base web pages, and tabs of modal dialogs. Deep-linking in this way may allow users of web applications and websites to navigate directly to a desired destination rather than navigating through homepages or any other intermediate page.
Furthermore, intelligent reloading of rendered components is enabled by a URL router that intercepts the ordinary logic of a web browser. Such intelligent reloading creates a smooth and uninterrupted user experience. Finally, individual HTML files associated with each possible component of a web application or web page may be pre-compiled into a single string file that is loaded into memory upon first launch of the web application/website. Once the string file is loaded into memory, the web browser can quickly and efficiently render specified content.
This summary is provided to introduce a selection of concepts in a simplified form that are further described below in the Detailed Description. This Summary is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used as an aid in determining the scope of the claimed subject matter.
In order to describe the manner in which the above-recited and other advantages and features of the invention can be obtained, a more particular description of the invention briefly described above will be rendered by reference to specific embodiments thereof which are illustrated in the appended drawings. Understanding that these drawings depict only typical embodiments of the invention and are not therefore to be considered to be limiting of its scope, the invention will be described and explained with additional specificity and detail through the use of the accompanying drawings in which:
At least some embodiments described herein relate to navigating directly to a modal dialog overlaying a base web page. For example, embodiments may include detecting user input associated with navigating to a modal dialog overlaying a base web page. In response to detecting the user input, the computer system navigates directly to the modal dialog overlaying the base web page. The base web page acts as a background of the modal dialog, such that interaction with the model dialog is required prior to interaction with the base web page.
Accordingly, distinct uniform resource locators (URL) for each possible component of a web application or web page may allow for deep-linking directly to web pages within an application/website, modal dialogs overlaying base web pages, and tabs of modal dialogs. Deep-linking in this way may allow users of web applications and websites to navigate directly to a desired destination rather than navigating through homepages or any other intermediate page.
Furthermore, intelligent reloading of rendered components is enabled by a URL router that intercepts the ordinary logic of a web browser. Such intelligent reloading creates a smooth and uninterrupted user experience. Finally, individual HTML files associated with each possible component of a web application or web page may be pre-compiled into a single string file that is loaded into memory upon first launch of the web application/website. Once the string file is loaded into memory, the web browser can quickly and efficiently render specified content.
Some introductory discussion of a computing system will be described with respect to
Computing systems are now increasingly taking a wide variety of forms. Computing systems may, for example, be handheld devices, appliances, laptop computers, desktop computers, mainframes, distributed computing systems, datacenters, or even devices that have not conventionally been considered a computing system, such as wearables (e.g., glasses). In this description and in the claims, the term “computing system” is defined broadly as including any device or system (or combination thereof) that includes at least one physical and tangible processor, and a physical and tangible memory capable of having thereon computer-executable instructions that may be executed by a processor. The memory may take any form and may depend on the nature and form of the computing system. A computing system may be distributed over a network environment and may include multiple constituent computing systems.
As illustrated in
The computing system 100 also has thereon multiple structures often referred to as an “executable component”. For instance, the memory 104 of the computing system 100 is illustrated as including executable component 106. The term “executable component” is the name for a structure that is well understood to one of ordinary skill in the art in the field of computing as being a structure that can be software, hardware, or a combination thereof. For instance, when implemented in software, one of ordinary skill in the art would understand that the structure of an executable component may include software objects, routines, methods, and so forth, that may be executed on the computing system, whether such an executable component exists in the heap of a computing system, or whether the executable component exists on computer-readable storage media.
In such a case, one of ordinary skill in the art will recognize that the structure of the executable component exists on a computer-readable medium such that, when interpreted by one or more processors of a computing system (e.g., by a processor thread), the computing system is caused to perform a function. Such structure may be computer-readable directly by the processors (as is the case if the executable component were binary). Alternatively, the structure may be structured to be interpretable and/or compiled (whether in a single stage or in multiple stages) so as to generate such binary that is directly interpretable by the processors. Such an understanding of example structures of an executable component is well within the understanding of one of ordinary skill in the art of computing when using the term “executable component”.
The term “executable component” is also well understood by one of ordinary skill as including structures that are implemented exclusively or near-exclusively in hardware, such as within a field programmable gate array (FPGA), an application specific integrated circuit (ASIC), or any other specialized circuit. Accordingly, the term “executable component” is a term for a structure that is well understood by those of ordinary skill in the art of computing, whether implemented in software, hardware, or a combination. In this description, the terms “component”, “service”, “engine”, “module”, “control”, “interceptor” or the like may also be used. As used in this description and in the case, these terms (whether expressed with or without a modifying clause) are also intended to be synonymous with the term “executable component”, and thus also have a structure that is well understood by those of ordinary skill in the art of computing.
In the description that follows, embodiments are described with reference to acts that are performed by one or more computing systems. If such acts are implemented in software, one or more processors (of the associated computing system that performs the act) direct the operation of the computing system in response to having executed computer-executable instructions that constitute an executable component. For example, such computer-executable instructions may be embodied on one or more computer-readable media that form a computer program product. An example of such an operation involves the manipulation of data.
The computer-executable instructions (and the manipulated data) may be stored in the memory 104 of the computing system 100. Computing system 100 may also contain communication channels 108 that allow the computing system 100 to communicate with other computing systems over, for example, network 110.
While not all computing systems require a user interface, in some embodiments, the computing system 100 includes a user interface 112 for use in interfacing with a user. The user interface 112 may include output mechanisms 112A as well as input mechanisms 112B. The principles described herein are not limited to the precise output mechanisms 112A or input mechanisms 112B as such will depend on the nature of the device. However, output mechanisms 112A might include, for instance, speakers, displays, tactile output, holograms and so forth. Examples of input mechanisms 112B might include, for instance, microphones, touchscreens, holograms, cameras, keyboards, mouse of other pointer input, sensors of any type, and so forth.
Embodiments described herein may comprise or utilize a special purpose or general-purpose computing system including computer hardware, such as, for example, one or more processors and system memory, as discussed in greater detail below. Embodiments described herein also include physical and other computer-readable media for carrying or storing computer-executable instructions and/or data structures. Such computer-readable media can be any available media that can be accessed by a general purpose or special purpose computing system. Computer-readable media that store computer-executable instructions are physical storage media. Computer-readable media that carry computer-executable instructions are transmission media. Thus, by way of example, and not limitation, embodiments of the invention can comprise at least two distinctly different kinds of computer-readable media: storage media and transmission media.
Computer-readable storage media includes RAM, ROM, EEPROM, CD-ROM or other optical disk storage, magnetic disk storage or other magnetic storage devices, or any other physical and tangible storage medium which can be used to store desired program code means in the form of computer-executable instructions or data structures and which can be accessed by a general purpose or special purpose computing system.
A “network” is defined as one or more data links that enable the transport of electronic data between computing systems and/or modules and/or other electronic devices. When information is transferred or provided over a network or another communications connection (either hardwired, wireless, or a combination of hardwired or wireless) to a computing system, the computing system properly views the connection as a transmission medium. Transmissions media can include a network and/or data links which can be used to carry desired program code means in the form of computer-executable instructions or data structures and which can be accessed by a general purpose or special purpose computing system. Combinations of the above should also be included within the scope of computer-readable media.
Further, upon reaching various computing system components, program code means in the form of computer-executable instructions or data structures can be transferred automatically from transmission media to storage media (or vice versa). For example, computer-executable instructions or data structures received over a network or data link can be buffered in RAM within a network interface module (e.g., a “NIC”), and then eventually transferred to computing system RAM and/or to less volatile storage media at a computing system. Thus, it should be understood that storage media can be included in computing system components that also (or even primarily) utilize transmission media.
Computer-executable instructions comprise, for example, instructions and data which, when executed at a processor, cause a general purpose computing system, special purpose computing system, or special purpose processing device to perform a certain function or group of functions. Alternatively or in addition, the computer-executable instructions may configure the computing system to perform a certain function or group of functions. The computer executable instructions may be, for example, binaries or even instructions that undergo some translation (such as compilation) before direct execution by the processors, such as intermediate format instructions such as assembly language, or even source code.
Although the subject matter has been described in language specific to structural features and/or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the described features or acts described above. Rather, the described features and acts are disclosed as example forms of implementing the claims.
Those skilled in the art will appreciate that the invention may be practiced in network computing environments with many types of computing system configurations, including, personal computers, desktop computers, laptop computers, message processors, hand-held devices, multi-processor systems, microprocessor-based or programmable consumer electronics, network PCs, minicomputers, mainframe computers, mobile telephones, PDAs, pagers, routers, switches, datacenters, wearables (such as glasses) and the like. The invention may also be practiced in distributed system environments where local and remote computing systems, which are linked (either by hardwired data links, wireless data links, or by a combination of hardwired and wireless data links) through a network, both perform tasks. In a distributed system environment, program modules may be located in both local and remote memory storage devices.
Those skilled in the art will also appreciate that the invention may be practiced in a cloud computing environment. Cloud computing environments may be distributed, although this is not required. When distributed, cloud computing environments may be distributed internationally within an organization and/or have components possessed across multiple organizations. In this description and the following claims, “cloud computing” is defined as a model for enabling on-demand network access to a shared pool of configurable computing resources (e.g., networks, servers, storage, applications, and services). The definition of “cloud computing” is not limited to any of the other numerous advantages that can be obtained from such a model when properly deployed.
As shown, web browser 210 includes navigation controls (e.g., back-page, forward-page, refresh, and so forth). The web browser 210 also includes an address/search bar 280 that allows for user input in the form of search terms, URL's, URI's, and so forth. Web browser 210 also includes rendering portion 290, in which content associated with websites, web pages, web applications, web services (and so forth) are rendered.
The principles described herein may be applied within the context of a particular domain (i.e., a website of a particular domain), as described more fully herein. Likewise, the principles described herein may be applied to a web version of an application. For example, base web page 220 may be a particular web page of a web version of MICROSOFT POWERAPPS™, while modal dialog 230 and the tabs may include content relating to a specific created application(s) within MICROSOFT POWERAPPS. In a more specific example, base web page 220 may be a web page that lists hyperlinks to all of the created applications of a user of a web version of MICROSOFT POWERAPPS. As such, modal dialog 230 may include content regarding a specific created application when a user has selected a hyperlink associated with the specific created application. In such an example, the modal dialog may have one or more tabs that each include content regarding a separate, specific created application. In other embodiments, each tab may include different content associated with the same specific created application. For example, a first tab may include content related to sharing the created application, while a second tab may include general information associated with the created application.
The base web page 220, the modal dialog 230, and each of the tabs may have a distinct URL that individually identifies the base web page, the modal dialog, and each of the tabs (while URL is used throughout the description, uniform resource identifier, or URI, may be equally applicable). Accordingly, a user may be able to navigate directly to any one of the base web page 210, the modal dialog, and/or any one of the tabs (i.e., each component may be deep-linkable). In other words, a web browser will be able to navigate directly to any one of the components described herein without having to first navigate to a homepage URL, or the like. For instance, suppose a user has received a hyperlink in an email or a text message associated with tab1 (as illustrated in
Accordingly, a user may cause a web browser to navigate directly to a modal dialog overlaying a base web page, or any tab of such a modal dialog, in any number of ways. For example, a user may select a link associated with the distinct URL of a modal dialog or tab of a modal dialog that has been received (e.g., received by text, by email, by chat, and so forth). In another example, a user may interact with a navigation control of a web browser. In a more specific example, a user may enter the associated URL in an address bar of a web browser or select a navigation control to return to a previous component.
As illustrated in
More specifically, the web browser 210 may include a URL router that can identify specific portions of the URL that have changed, or not changed, when the overall URL changes. Generally, when such a change occurs, the web browser would attempt to navigate to the new URL, refreshing the entirety of what is being rendered by the web browser (e.g., a base web page, a modal dialog, and one or more tabs of the modal dialog). However, the URL router may intercept the web browser's logic that would ordinarily completely refresh all content that is being rendered by the web browser. The URL router may then inform the web browser of the specific URL portions that changed and therefore, are to be refreshed. In some embodiments, this URL router may only be capable of performing the functions described herein in relation to one or more particular web applications or websites having particular domain names. For example, the URL router may only perform these functions with respect to the domain name fakeapp.com.
In an example, assume that web browser 210 has navigated to the URL provided in
In another example, assume the web browser is currently rendering a base web page and a modal dialog (with or without tabs) overlaying the base web page. If a user closes the modal dialog, the URL will change to that of the base web page rather than the URL of the modal dialog. In response, the URL router may identify that the base web page portion of the URL has remained the same, while the modal dialog portion has changed. The URL router may then intercept the web browser logic that would ordinarily reload the base web page because of the URL change. A combination of the URL router and the web browser may then remove the overlaid modal while leaving the base page as is (i.e., the base page is not reloaded).
As such, the combination of the URL router and web browser would respond to the URL change (i.e., the user closing the modal dialog) in a manner that to an end user appears to simply be closing the modal dialog. Accordingly, regardless of which portions of a URL have changed, the URL router may be able to identify which URL portions have remained the same and which URL portions have changed each time the overall URL changes. In response, the URL router may communicate with the web browser in such a way as to cause the web browser to refrain from reloading the components associated with unchanged URL portions, while reloading/loading the components associated with changed or additional URL portions.
In some embodiments, the URL router may not only listen for URL changes, but may also load base web pages, launch modal dialogs, launch tabs of a modal dialog, and switch between tabs of a modal dialog overlaying the same base web page, as appropriate. Additionally, the URL router may launch a new modal dialog hosted on a current base web page, switch between tabs of a modal dialog overlaying a base web page without reloading/refreshing the base web page and modal dialog, launch a modal dialog hosted on a different base web page, and launch a specific selected tab of a modal dialog. In other embodiments, the previously described functions may all be performed by a web browser. In yet other embodiments, the previously described functions may be performed by a combination of the web browser and the URL router.
Furthermore, the principles described herein may also relate to single-page applications. Accordingly, the URL router and/or web browser may intercept logic of a single-page application that would function contrary to the principles describe herein. In other words, a combination of the URL router and web browser would still function in such a way that only changed URL portions reload, unchanged URL portions do not reload, and each web browser component (i.e., base web pages, modal dialogs, and tabs of modal dialogs) is deep-linkable.
In some embodiments, there may be animations when navigating to components (e.g., between two different tabs of a modal dialog) that help to mitigate or avoid the appearance of reloading a component. For example, assume that a user is attempting to navigate from one tab of a modal dialog to another tab of the same modal dialog. In such a case, rather than simply reloading the second tab, the second tab may be highlighted followed by a subsequent animation that presents the content included within the second tab. While such animations have been described with respect to switching between tabs, animations (or the like) may be used when first rendering or reloading any components.
In response to detecting the user input, the web browser navigates directly to the modal dialog overlaying the base web page (Act 320). For instance, the URL associated with the modal dialog may allow for deep-linking of the modal dialog, such that a user can navigate directly to the modal dialog rather than navigating to a base web page first. For example, the web browser may open in response to a user selecting a link received by the user in a text or email and then directly navigate to the modal dialog 230 overlaying base web page 220. In another example, the web browser may be on a first web page that is different from the base web page and receive input (e.g., entering the modal dialog URL in the web browser's address bar or selecting a hyperlink of the URL) to navigate directly to the modal dialog 230. In response, the web browser may navigate directly to the modal dialog overlaying the base web page.
Along with a distinct URL, each of the components rendered on web browser 210 (i.e., the base web page 220, the modal dialog 230, and the tabs) may also have a distinct hypertext markup language (HTML) file that includes the content to be rendered of the specific component. For instance, base web page 220 may have an associated page.html file, modal dialog 230 may have an associated modal.html file, Tab1 240 may have an associated tab1.html file, and so forth.
Generally, the default manner in which these HTML files are loaded into memory to be rendered includes loading a specific HTML file into memory only when a user has navigated to that particular component. In other words, each distinct view that a user can access (i.e., base web page, modal dialog overlaying a base web page, each tab of a modal dialog, and so forth) has a distinct, associated HTML file. For example, modal.html would only be loaded into memory when a user has navigated to the modal dialog 230. In such an instance, the web browser 210 would issue a hypertext transfer protocol (HTTP) request each time a user navigates to a different component (e.g., navigating from a base web page to a modal dialog). Accordingly, if a user navigated from Tab1 240 to Tab2 250, the web browser would issue an HTTP request for the tab2.html file and render Tab2 upon receiving the HTML file.
The default manner may also require multiple HTTP requests each time a user navigates to a deep-linkable component. For instance, suppose a user is navigating from outside of a base web page directly to a particular tab of a modal dialog overlaying the base web page (e.g., the user navigated there from a hyperlink in a text or email, or the user navigated there from a web page other than the base web page). Accordingly, when the user navigates to that deep-linkable tab, the browser will issue at least three HTTP requests, one for the base web page, one for the modal dialog, and one for the particular tab. As such, navigating between these components that each have both distinct URL's and distinct HTML files can create a substantial amount of HTTP requests that are detrimental to performance. Furthermore, at times, rendering content in response to HTTP requests may not be instantaneous resulting in a lag when rendering the requested HTML file (e.g., a blank screen may appear for a period of time after a user attempts to navigate to a specific component). Accordingly, a poor user experience may result.
As described previously, the principles described herein may be applied within the context of a web version of an application. For example, base web page 220 may be a particular web page of MICROSOFT POWERAPPS, while modal dialog 230 and the tabs may include content relating to a specific created application(s) within MICROSOFT POWERAPPS. Accordingly, to overcome these issues, all of the possible HTML files may be included in the source code of a web application. In other words, each possible base web page HTML file, each possible modal dialog HTML file, and each possible tab HTML file may be included in the web application's source code.
The collection of HTML files may then be converted/compiled into individual string files. For example, the individual string files may comprise JAVASCRIPT™ string files. Once converted into string files, all the strings may be compiled/bundled into a single file that is loaded during a start-up of the associated web application. For instance, all of the individual string files may be bundled into a single JAVASCRIPT string file that is loaded into memory. This effectively causes all of the HTML files to be loaded into memory during the initial loading of the web application, thus avoiding the problems caused by HTTP requests, as described herein. Accordingly, once loaded, the web application may be able to navigate to, and render, any possible component within the web application (i.e., base web pages, modal dialogs overlaying any base web page, and tabs of modal dialogs) by searching for the associated files in memory rather than performing an HTTP request to get HTML files for each component. Furthermore, because all of the component files are loaded in to memory upfront, loading/rendering any component is essentially instantaneous.
Furthermore, the web browser may be informed that all of these files have been loaded into memory such that web browser knows to check for the files in memory rather than issuing HTTP requests. Accordingly,
In response to the received input, the web browser may search for pre-loaded files associated with the specific component (Act 520). In the ongoing example, the web browser may search for the JAVASCRIPT file that corresponds to the base web page, the modal dialog, and the tab to which the web browser is navigating. If less than all of the pre-loaded files are found, the web browser may then issue an HTTP request for an HTML file associated with each component that did not have a pre-loaded file (Act 530). For example, suppose the base web page and the modal dialog each had a pre-loaded file, but the tab did not. In response, the web browser would find the pre-loaded files for the base web page and the modal dialog in memory and perform an HTTP request for the HTML file associated with the tab. However, Act 530 should rarely, if ever occur, because in the context of a web application or website, all of the possible components to be rendered and associated URL's are known to the developers of the web application or website before any launch of the web application/website by an end user. Once the pre-loaded files and the HTML files have been retrieved, all of the retrieved files may be rendered within the web browser (Act 540).
Alternatively, the compiling of HTML files ultimately into a single string file may not include HTML files for every possible component. In some embodiments, a developer may manually determine which components are most likely to be used (and unused), and only compile the HTML files into individual string files (and ultimately a single file loaded into memory) that are deemed to be likely to be used. In other embodiments, HTML files may be compiled into string files based on a type of the associated component. In an example, HTML files associated with base web pages and modal dialogs may be compiled into JAVASCRIPT, while HTML files associated with tabs may not.
In yet other embodiments, some intelligence may be built into the web application or website, such that the use, and/or frequency of use, of components is tracked. Accordingly, based on past history of how components have been used, the web application or website may determine which HTML files to compile to string files. For example, perhaps only the most frequently used components will be compiled. In another example, all components that were recorded as being used at least once may have their associated HTML files compiled into string files. While a few examples have been provided, such intelligence could be implemented in any number of ways without departing from the spirit and essential characteristics of the principles described herein. Regardless of the implementation, with respect to the HTML files that are not pre-compiled into string files and later loaded into memory, the web browser may perform HTTP requests to retrieve those HTML files, just as the web browser would ordinarily do.
In this way, distinct URL's for each possible component of a web application or web page may allow for deep-linking directly to web pages within an application/website, modal dialogs overlaying base web pages, and tabs of modal dialogs. Deep-linking may allow users of web applications and websites to navigate directly to a desired destination rather than navigating through homepages or any other intermediate page.
Furthermore, intelligent reloading of rendered components is enabled by a URL router that intercepts the ordinary logic of a web browser. Such intelligent reloading creates a smooth and uninterrupted user experience. Finally, individual HTML files associated with each possible component of a web application or web page may be pre-compiled into a single string file that is loaded into memory upon first launch of the web application/website. Once the string file is loaded into memory, the web browser can quickly and efficiently render specified content.
Although the subject matter has been described in language specific to structural features and/or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the described features or acts described above, or the order of the acts described above. Rather, the described features and acts are disclosed as example forms of implementing the claims.
The present invention may be embodied in other specific forms without departing from its spirit or essential characteristics. The described embodiments are to be considered in all respects only as illustrative and not restrictive. The scope of the invention is, therefore, indicated by the appended claims rather than by the foregoing description. All changes which come within the meaning and range of equivalency of the claims are to be embraced within their scope.