Thanks Boris.  Guess I didn't realize that was required.  

One problem, however is that the latest build of Mozilla ( build
2001083109 on Win2k (SP2) ) crashes hard on this after I add the '!'
sign.

Talkback ID:  TB34824314Y


Check it out at:

http://www.visi.com/~hoju/resources_test.html


What build of Mozilla did you find this to work successfully???

Are there any bugs that you know of in Bugzilla about the jar:
protocol???

Jake


On Sat, 01 Sep 2001 10:57:07 +0300, Boris Savov <[EMAIL PROTECTED]>
wrote:

>Hi,
>try this
>
><img
>src="jar:http://www.visi.com/~hoju/assets/resources/resources_test.jar!/images/apache_pb.gif";
>alt="Image loaded from jar file" />
>
>important : don't forget the '!' sign after jar extention
>
>
>
>Anyone wrote:
>
>>hmmm... I tried to make this work with an image and nothing showed up.
>>
>>I tried it with the following HTML
>>
>><?xml version="1.0" encoding="UTF-8"?>
>><!DOCTYPE html
>>      PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
>>      "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";>
>><html xmlns="http://www.w3.org/1999/xhtml"; lang="en-US"
>>xml:lang="en-US">
>><head>
>>    <title>Testing :jar protocol: loading resources out of jar
>>files</title>
>></head>
>><body>
>>
>>
>><h1>The image below is being loaded from a .jar archive, not directly
>>off the filesystem!!!</h1>
>><img
>>src="jar:http://www.visi.com/~hoju/assets/resources/resources_test.jar/images/apache_pb.gif";
>>alt="Image loaded from jar file" />
>>
>></body>
>></html>
>>
>>I made sure the jar file exists where I am pointing at in the URL and
>>make sure the image exists in the "images/" path inside the jar file.
>>Does it depend on the server?   Anything I am doing wrong here????
>>
>>Also, like Boris, I'd be very interested n finding out if this could
>>work with relative paths... meaning omitting the protocol and site
>>from the beginning of the URL and just referencing a local jar
>>archive.  Would this still work???
>>
>>Jake
>>
>>
>>On Thu, 30 Aug 2001 10:01:56 -0400, Neil Deakin <[EMAIL PROTECTED]>
>>wrote:
>>
>>>The following should work.
>>>
>>><img src="jar:http://www.yourdomain.com/some.jar!/images/someImage.png";>
>>>
>>>/ Neil
>>>
>>>
>>>Boris Savov wrote:
>>>
>>>>Hello,
>>>>how could I or could I store some files in one single jar file ...
>>>>for example java script files and image files
>>>>and than use in an HTML (load from the net..not installed in chrome)
>>>>something like this:
>>>><script src="some.jar!/scripts/someScript.js"></script>
>>>>bla bla
>>>><img src="some.jar!/images/someImage.png"></script>
>>>>
>>>>best regards
>>>>
>>>>
>>>>
>>>>
>>
>>
>>
>>
>


Reply via email to