Edit-time redirect for HTML documents
First Claim
1. A computer-implemented method for opening on a computer system an electronic document comprising a primary file and one or more supporting files, the method comprising the acts of:
- placing an internal marker in each of the one or more supporting files during a file save event for the electronic document, the marker identifying that the primary file is associated with the one or more supporting files;
determining whether a supporting file includes the marker in response to an open file event for the supporting file;
in response to determining that the supporting file includes the marker, locating on the computer system the primary file based on the marker in the supporting file; and
opening the primary file to complete the open file event.
2 Assignments
0 Petitions
Accused Products
Abstract
Redirecting an editing environment to open a primary file instead of an associated supporting file. Each supporting file can be provided with a marker identifying it as a supporting file and specifying the location of the primary file associated with that supporting file. This can be done in response to the initiation of a file save event for saving the supporting file. For opening a file in the editing environment, the file open process relies on the presence of a marker in the file to determine if the file is a supporting file. If so, the editing environment is redirected to open the primary file with which the supporting file is associated. For example, for an HTML document containing a primary file and a supporting file, the editing environment is directed to open the primary file rather than the supporting file to support the presentation of the entire content of the HTML document for editing by the user.
16 Citations
33 Claims
-
1. A computer-implemented method for opening on a computer system an electronic document comprising a primary file and one or more supporting files, the method comprising the acts of:
-
placing an internal marker in each of the one or more supporting files during a file save event for the electronic document, the marker identifying that the primary file is associated with the one or more supporting files;
determining whether a supporting file includes the marker in response to an open file event for the supporting file;
in response to determining that the supporting file includes the marker, locating on the computer system the primary file based on the marker in the supporting file; and
opening the primary file to complete the open file event. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10)
determining whether the supporting file represents embedded content of the primary file; and
if so, then displaying at least a portion of the embedded content in response to opening the primary file.
-
-
4. The method of claim 1, wherein the primary file and supporting file are formatted in HyperText Markup Language (HTML) format.
-
5. The method of claim 4, wherein the marker comprises an HTML <
- link>
tag placed in a <
head>
section of the supporting file.
- link>
-
6. The method of claim 5, wherein the <
- link>
tag comprises a relative Universal Resource Identifier (URI) specifying a location on the computer system of the primary file relative to the supporting file.
- link>
-
7. The method of claim 6, wherein the <
- link>
tag comprises the format <
link id=Main-File rel=Main-File href= “
RelURI”
>
, wherein the “
RelURI”
parameter defines the relative URI specifying the location on the computer system of the primary file relative to the supporting file.
- link>
-
8. The method of claim 7, wherein the act of detecting the marker comprises parsing the <
- head>
section of the supporting file to determine if the supporting file contains the <
link>
tag.
- head>
-
9. The method of claim 8, further comprising the act of combining the relative URI with an absolute URI specifying a location on the computer system of the supporting file to produce an absolute URI specifying a location on the computer system of the primary file, wherein the act of locating the primary file is completed by use of the absolute URI.
-
10. A computer-readable medium having computer-executable instructions for performing the acts of claim 1.
-
11. A computer-implemented method for opening electronic files stored on a computer system, wherein each electronic file comprises a primary file and at least one supporting file, the method comprising the acts of:
-
detecting a file open event for opening a file;
in response to the file open event, determining if the file includes a marker indicating that the file is a supporting file and that a primary file is associated with the supporting file; and
if the file includes a marker indicating that the file is a supporting file and that a primary file is associated with the supporting file, locating the primary file based on the marker and opening the primary file to complete the open file event. - View Dependent Claims (12, 13, 14, 15, 16, 17, 18, 19, 20)
combining the relative URI specifying the location on the computer system of the primary file relative to the supporting file with an absolute URI specifying a location on the computer system of the supporting file to produce an absolute URI specifying a location on the computer system of the primary file;
locating the primary file on the computer system using the absolute URI; and
opening the primary file.
-
-
19. The method of claim 11, wherein the opening act comprises:
opening the supporting file, wherein the opening of the supporting file and the primary file are included as steps of a file open event for an electronic file comprising the supporting file and the primary file.
-
20. A computer-readable medium having computer-executable instructions for performing the acts of claim 11.
-
21. A computer-implemented method for opening electronic files stored on a computer system, wherein each electronic file comprises a primary file and at least one supporting file, the method comprising the acts of:
-
detecting a file open event for opening a file;
determining whether the file includes a marker indicating that the file is a supporting file for a primary file;
if the file does not include a marker indicating that the file is a supporting file for a primary file, opening the file to complete the open file event; and
if the file includes a marker indicating that the file is a supporting file for a primary file, locating the primary file based on the marker and opening the primary file to complete the open file event. - View Dependent Claims (22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33)
opening the supporting file, wherein the opening of the supporting file and the primary file are included as steps of a file open event for an electronic file comprising the supporting file and the primary file.
-
-
23. The method of claim 21, wherein the marker further identifies a location on the computer system of the primary file.
-
24. The method of claim 21, further comprising the acts of:
-
determining whether the supporting file represents embedded content of the primary file; and
if so, then displaying at least a portion of the embedded content in response to opening the primary file.
-
-
25. The method of claim 21, wherein the primary file and the supporting file are formatted in HyperText Markup Language (HTML) format.
-
26. The method of claim 25, wherein the marker includes an HTML <
- link>
tag placed in a <
head>
section of the supporting file.
- link>
-
27. The method of claim 26, wherein the <
- link>
tag includes a relative Universal Resource Identifier (URI) specifying a location on the computer system of the primary file relative to the supporting file.
- link>
-
28. The method of claim 27, wherein the <
- link>
tag includes the format <
link id=Main-File rel=Main-File href=“
RelURI”
>
, wherein the “
RelURI”
parameter defines the relative URI specifying the location on the computer system of the primary file relative to the supporting file.
- link>
-
29. The method of claim 28, wherein the act of detecting the marker comprises parsing the <
- head>
section of the supporting file to determine if the supporting file contains the <
link>
tag.
- head>
-
30. The method of claim 29, further comprising the act of combining the relative URI with an absolute URI specifying a location on the computer system of the supporting file to produce an absolute URI specifying a location on the computer system of the primary file, wherein the act of locating the primary file is completed by use of the absolute URI.
-
31. The method of claim 21, wherein the file open event is for opening the electronic file in an editing environment.
-
32. The method of claim 21, further comprising the act of placing the marker in the supporting file in response to a file save event for saving the file.
-
33. A computer-readable medium having computer-executable instruction for performing the acts of claim 21.
Specification