HtmlView.dll and relative paths

A

Agustin

Hi. I'm using the htmlview.dll library to include an HTML native control
in my application. I'm just using it for render html, I download the
pages from the Web not using the navigate dll message (DTM_NAVIGATE) but
using a WebRequest in my application. When I finish download the page I
use the DTM_ADDTEXT mesagge to update the control. The thing is that
when the page has an image (<image src=''></image>) if the src attribute
has an absolute path (http:\\www.ssss.com\imges\hello.gif) the control
render it without problem and display the image, but when it has a
relative path it doesn't display the image.
I saw that using the DTM_NAVIGATE message it display images with
relative path. So I think that the DTM_NAVIGATE message set in some
place the URL to resolve relative paths. The problem is that I don't
want to use the DTM_NAVIGATE messsage. So, is there any way to say the
control how to resolve relative paths? Or to set the URL of the page?

Thank you
 
A

Agustin

What I'm developing is some kind of Web navigator that sends extra
non-traditional information in the http request header (meta data to my
web application)depending on what the users try to do , so if I use the
conventional web navigation (htmlview.dll)I cannot write on that header.
I need to control the navigation procces 100%. I also have to do some
extra proccesing when the user clicks on some special html elements (for
example some kind of links that I have that contains meta data) that
don't trigger the navigation procces, unless some conditions are given,
so if I use the conventional navigation (htmlview.dll DTM_NAVIGATE),
once the user clicks a link, although I can do some pre proccesing, I
can't avoid navigation.
This prototype is for my degree thesis. I'm sutdent from Licenciatura en
Informatinca in La Plata Argentina.


Marcantonio escribió:
 
M

Marcantonio

Agustin said:
place the URL to resolve relative paths. The problem is that I don't
want to use the DTM_NAVIGATE messsage. So, is there any way to say the
control how to resolve relative paths? Or to set the URL of the page?

Agustin,

you could try using the BASE URL tag in your documents.

see here:

http://www.freesoft.org/CIE/RFC/1808/27.htm

However, I do not advocate it. This would mean altering the original
documents.

Can I ask you why you are trying to avoid conventional web navigation?

Marcantonio
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top