----- Original Message -----
From: "Alex du Plessis" <[EMAIL PROTECTED]>
To: "Lazarus mailing list" <[email protected]>
Sent: Monday, November 06, 2006 10:34 AM
Subject: [lazarus] TurboPower IPro
Hello List,
I am trying to use TIPHTMLPanel with TIPFileDataProvider. Everything
works fine until I try to click on an anchor to take me to another page.
Here things go a bit pear shaped - the IPPanel complains it cannot open
the file, even though it is in the same directory as the file containing
the anchor. It seems to be a problem with directory resolution - it says
"Cannot open file -
C|/Dataroot/Projects/Xact/Help/C|/Dataroot/Projects/Xact/Help/index.html".
It seems to be duplicating the directory structure, and of course such a
file does not exist.
Is this a bug or am I doing something wrong?
Thanks
Alex
It's not a bug.
When handling local files you should include how to locate your base
document, so links specified in a relative way as for example: <a
href="test2.html">link</a> can be resolved correctly.
In short you need to first open your document using: 'FILE://' +
'C:\Path\to\base\file.html' and then your relative links should work ok.
Jesus Reyes A.
__________________________________________________
Correo Yahoo!
Espacio para todos tus mensajes, antivirus y antispam ¡gratis!
Regístrate ya - http://correo.yahoo.com.mx/
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives