Hi,
I am a student from Spain. I am working on a project related to mobile
communications and we are interested in sending webpages to mobiles as a
one simple file. The mobile makes just one request and receives a kind
of multipart/related file which contains the html part, the images, etc...
For this reason I've developed an streamconverter, similar to
nsMultiMixedConverter, which divides the file into parts and stores them
into the cache. At the end, it returns, to the httpchannel, the html part.
Now, in order to send back the html part to httpchannel at the
beginning, I scan the html part (which is the first one) searching for
the images that channel would request and I store "empty" images with
this names into the cache. My idea is start showing the html and
continue refreshing it once I continue obtaining and storing the nexts
parts.
But (there is always a "but") I haven't achieved this second point. I
don't know how to manage to reload or refresh the html showing the new
(the real) images stored in the cache, instead of the first ones (the
empty ones). Changing loadflags? (LOAD_RELOAD_BYPASS_CACHE?
LOAD_REFRESH?) ...
any idea?
pd: I send the part to the httpchannel with a function very similar to
SendData from nsMultiMixed
pd2: if you think that my work could be interesting for mozilla project
just make me know. I will be very happy it helps and if anybody wants to
continue it with me ;)
_______________________________________________
Mozilla-netlib mailing list
Mozilla-netlib@mozilla.org
http://mail.mozilla.org/listinfo/mozilla-netlib