Ok, I've got it now.
I understand quick if explained slowly sometimes ;-)
Cheers,
Youri
Sven E Olsson wrote:
On Jun 06, 2006, at 8:43 AM, Youri wrote:
Sorry Maarten, but I don't get it.
I understand that with this method I can render html from a string
within my Application without having to save a temporary file on my
Hard Disk, right?
There is three methods to 'load' html stuff ..
1 - HTMLViever.LoadUrl as a url string like this:
file:///Users/sveneolsson/Documents/Data/HomePagesAtWork/xhtmlsoft/screenshoot.html
2 - HTMLViewer.LoadPage as a folderitem
3 - HTMLViewer.LoadPage myHTMLStr, RelativeTo a Site Folder
Therefore what is the use for "FolderItemForRelativePath", if there is
NO file to point to?
Point to a folder not a file, this methods are used by what that many
HTML Editors call LivePreview, so if you have links in your source
(EditField), then the HTML Viewer must know where to start to find the
files that you have in your unsaved html file (the string from your
EditField) eg point to a folder that the file should be saved later..
You also need this to point to a CSS file in your site folder (if you
have one)
If you only should render a string, you not need the 'relative to' I
think you could set it to Nil o something else...
Youri
OS X 10.4.6 Intel RB2006r2
Sven E Olsson
[EMAIL PROTECTED]
http://www.xhtmlsoft.com/dev/realbasic.html
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>
--
A+
Youri
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>