发明名称 Designer for web pages at a local machine
摘要 One embodiment includes a method that may be practiced in a computing environment. The method enables design and testing of web pages locally at a local machine. After being designed and tested at the local machine, the web pages will be deployed at a remote server remote from the local machine. The web pages include relative references to resources from the perspective of the remote server. The relative references to resources are intended to be resolved by the remote server. The method includes accessing code at a local machine. The code defines a web page. The code includes relative references to resources. The relative references are expressed from the perspective of a remote server remote from the local machine, such that the relative references are only natively resolvable by the remote server. The method further includes translating the relative references to local references. The local references are resolvable by the local machine such that the local machine can resolve the local references to the resources.
申请公布号 US8745582(B2) 申请公布日期 2014.06.03
申请号 US20080138913 申请日期 2008.06.13
申请人 Microsoft Corporation 发明人 Khandelwal Nikhil;Davis Joseph M.
分类号 G06F9/44 主分类号 G06F9/44
代理机构 代理人
主权项 1. In a computing environment, a method of enabling design and testing of web pages locally at a local machine, wherein after being designed and tested at the local machine, the web pages will be deployed at a remote server remote from the local machine, and where the web pages include relative references to resources from the perspective of the remote server, wherein the relative references to resources are intended to be resolved by the remote server, the method comprising: accessing code at a local machine, the code defining a web page, wherein the code includes references to resources, each of the references comprising a relative reference or a token, the references being expressed from the perspective of a remote server remote from the local machine, providing that the references are natively resolvable only by the remote server; for each reference, determining whether the each reference comprises a relative reference or a token; for each token, performing a token lookup by searching for the each token in a list of pre-defined tokens, each pre-defined token being associated with a context Universal Resource Locator (URL); maintaining a table of references which correlates the relative references and local references providing that when one or more of the relative references is encountered when parsing the code, the table is used to resolve the one or more of the relative references; translating the relative references to local references which are references resolvable by the local machine providing that the local machine is enable to resolve the local references to the resources, wherein translating the relative references comprises: concatenating at least a portion of one or more of the relative references with at least a portion of a context reference, the context reference comprising a reference to the remote server; andfor the one or more relative references, providing a reference referencing a web service at the remote server, where the web service at the remote server is enable to obtain the resources providing that the local machine is not required to have an absolute address to the resources; wrapping the web page, including the relative references translated to local references and tokens replaced with the associated context URL, in a web page designer providing that a developer is enable to use the web page designer to visually change how the web page looks, wherein edits to the web page are communicated back to the remote server to get a response from the remote server showing how the edits will look as if they were deployed on the remote server thereby giving the developer immediate feedback for the edited web page; and rendering the web page in full fidelity at the local machine by resolving the local references to the resources providing that when the web page is rendered at the local machine, the web page will appear as if it were rendered by resolving the relative references at the remote server, including: resolving one or more local references to one or more resources by sending an HTTP GET command to the remote server to retrieve image or stylesheet resources; andresolving one or more local references to one or more resources by sending a call to the remote server web services to retrieve a copy of a master page.
地址 Redmond WA US