9613157

Method and Apparatus for Translating Javascript Across Different Host Environments

PublishedApril 4, 2017
Assigneenot available in USPTO data we have
Technical Abstract

Patent Claims
20 claims

Legal claims defining the scope of protection, as filed with the USPTO.

1

1. A computer implemented method comprising: accessing, on a client-computing device, a first document comprising scripting code of a first type; parsing, by the client-computing device, the scripting code of the first type in the first document; tracking, by the client-computing device, a location of an event or action in the first document in which the scripting code of the first type is present; translating, by the client-computing device and prior to execution of the scripting code of the first type, the parsed scripting code of the first type into scripting code of a second type, wherein translating comprises mapping scripting code objects in scripting code of the first type to scripting code objects in scripting code of the second type, wherein there is a one-to-one mapping of scripting code of the first type to scripting code of the second type; merging, by the client-computing device, the translated scripting code into a location in a translated scripting file, wherein the location corresponds to the location tracked in the first document; and exporting, by the client-computing device, the translated scripting file for use with a second document, wherein one of the first document or the second document is a PDF document.

2

2. The method of claim 1 , wherein the scripting code of the first type is Portable Document Format (PDF) scripting code and scripting code of the second type is Browser scripting code.

3

3. The method of claim 1 , wherein the first document comprises at least one application-specific scripting code object.

4

4. The method of claim 3 , wherein mapping scripting code objects in scripting code of the first type to scripting code objects in scripting code of the second type comprises mapping application-specific scripting code objects to browser readable scripting code objects.

5

5. The method of claim 2 , wherein the Browser scripting code is in HyperText Markup Language (HTML).

6

6. The method of claim 4 , wherein translating further comprises: identifying when a scripting code object is an application-specific scripting code object in scripting of the first type; accessing a translation store when the scripting code object is an application-specific scripting code object; and converting the application-specific scripting code of the first type to scripting code of the second type.

7

7. The method of claim 1 , further comprising merging the scripting code into the location in the translated scripting file, without translation, when the scripting code object is not an application-specific object, and wherein the location corresponds to the location tracked in the first document.

8

8. A system comprising: a client-computing device; and at least one non-transitory computer-readable storage medium storing instructions thereon that, when executed by the client-computing device, cause the system to: access a first document comprising scripting code of a first type; parse the scripting code of the first type in the first document; track a location of an event or action in the first document in which the scripting code of the first type is present; translate, prior to execution of the scripting code of the first type, the parsed scripting code into scripting code of a second type, wherein translating comprises mapping scripting code objects in scripting code of the first type to scripting code objects in scripting code of the second type, wherein there is a one-to-one mapping of scripting code of the first type to scripting code of the second type; merge the translated scripting code into a location in a translated scripting file, wherein the location corresponds to the location tracked in the first document; and export the translated scripting file for use with a second document, wherein one of the first document or the second document is a PDF document.

9

9. The system of claim 8 , wherein the scripting code of the first type is Portable Document Format (PDF) scripting code and scripting code of the second type is Browser scripting code and wherein the Browser scripting code is in HyperText Markup Language (HTML).

10

10. The system of claim 8 , wherein the first document comprises at least one application-specific scripting code object.

11

11. The system of claim 10 , wherein mapping scripting code objects in scripting code of the first type to scripting code objects in scripting code of the second type comprises mapping application-specific scripting code objects to browser readable scripting code objects.

12

12. The system of claim 11 , further comprising instructions that executed by the client-computing device cause the system to translate the parsed scripting code by causing the system to: identify when a scripting code object is an application-specific scripting code object in scripting of the first type; access a translation store when the scripting code object is an application-specific scripting code object; and convert the application-specific scripting code of the first type to scripting code of the second type.

13

13. The system of claim 8 , further comprising instructions that, when executed by the client-computing device, cause the system to merge the scripting code into the location in the translated scripting file, without translation, when the scripting code object is not an application-specific object, and wherein the location corresponds to the location tracked in the first document.

14

14. A non-transitory computer readable medium for storing computer instructions that, when executed by at least one processor causes the at least one processor to perform a method for translating scripting code across different host environments comprising: accessing, on a client-computing device, a first document comprising scripting code of a first type; parsing, on the client-computing device, the scripting code of the first type in the first document; tracking, on the client-computing device, a location of an event or action in the first document in which the scripting code of the first type is present; translating, on the client-computing device and prior to execution of the scripting code of the first type, the parsed scripting code of the first type into scripting code of a second type, wherein translating comprises mapping scripting code object in scripting code of the first type to scripting code object in scripting code of the second type, wherein there is a one-to-one mapping of scripting code of the first type to scripting code of the second type; merging, on the client-computing device, the translated scripting code into a location in a translated scripting file, wherein the location corresponds to the location tracked in the first document; and exporting, on the client-computing device, the translated scripting file for use with a second document, wherein one of the first document or the second document is a PDF document.

15

15. The computer readable medium of claim 14 , wherein the scripting code of the first type is Portable Document Format (PDF) scripting code and scripting code of the second type is Browser scripting code.

16

16. The computer readable medium of claim 14 , wherein the first document comprises at least one application-specific scripting code object.

17

17. The computer readable medium of claim 16 , wherein mapping scripting code objects in scripting code of the first type to scripting code objects in scripting code of the second type comprises mapping application-specific scripting code object to browser readable scripting code objects.

18

18. The computer readable medium of claim 15 , wherein the Browser scripting code is in HyperText Markup Language (HTML).

19

19. The computer readable medium of claim 17 , wherein translating further comprises: identifying when a scripting code object is an application-specific scripting code object in scripting of the first type; accessing a translation store when the scripting code object is an application-specific scripting code object; and converting the application-specific scripting code of the first type to scripting code of the second type.

20

20. The computer readable medium of claim 14 , further comprising merging the scripting code into the location in the translated scripting file, without translation, when the scripting code object is not an application-specific object, and wherein the location corresponds to the location tracked in the first document.

Patent Metadata

Filing Date

Unknown

Publication Date

April 4, 2017

Inventors

Nishant Kaushik
Yash Kumar Gupta

Want to explore more patents?

Browse 5M+ US patents with plain-English claim translations and AI-generated analysis.

Citation & reuse

Analysis on this page is generated by Patentable — an AI-powered patent intelligence platform. AI-generated summaries, explanations, and analysis may be reused with attribution and a visible link back to the canonical URL below. Patent abstracts and claims are USPTO public domain.

Cite as: Patentable. “METHOD AND APPARATUS FOR TRANSLATING JAVASCRIPT ACROSS DIFFERENT HOST ENVIRONMENTS” (9613157). https://patentable.app/patents/9613157

© 2026 Patentable. All rights reserved.

Patentable is a research and drafting-assistant tool, not a law firm, and does not provide legal advice. Documents we generate are drafts for review by a licensed patent attorney.