On 7/9/10 6:28 AM, Cyril wrote:
Please help me to find a solution of the following problem: there is some zip-archive which contains html, css, js etc. I need a browser calls to my code and then the code takes the data from zip-archive. Is it possible to realize it without the new protocol of OS (a solution should be cross-platform)? Thank you.
Mozilla already has a built-in protocol which would let you navigate this data directly, the jar: protocol. A JAR is just a ZIP file served with a specific MIME type.
jar:http://www.example.com/foo.jar!/index.html will load /index.html from within foo.jar. foo.jar needs to be served with the application/java-archive MIME type.
https://developer.mozilla.org/en/Security_and_the_jar_protocol has a few more details.
--BDS _______________________________________________ dev-embedding mailing list dev-embedding@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-embedding