baseURL problems in WebView
baseURL problems in WebView
- Subject: baseURL problems in WebView
- From: Moray Taylor <email@hidden>
- Date: Sun, 7 Nov 2004 22:02:24 +0000
Hi,
I'm having difficulty using the
loadHTMLString: baseURL:
method in WebFrame, when I call it like this
[[[self previewView] mainFrame] loadHTMLString:HTML baseURL:nil];
it works fine, but since the baseURL is set to nil, relative images
don't work.
When I try to call it like this, where BaseURL is an URL that points to
the folder that is the path that contains the file where the HTML came
from, the page doesn't render at all, I'm left with a blank page.
[[[self previewView] mainFrame] loadHTMLString:HTML baseURL:BaseURL];
When I call the description: method on BaseURL, it comes back with
file://localhost/Users/mugen/Desktop/Test/Pages/
which is correct (although the 'localhost' bit looks a bit odd).
What am I doing wrong?
Thanks
Moray
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden