• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
baseURL problems in WebView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: baseURL problems in WebView
      • From: Steven Kramer <email@hidden>
  • Prev by Date: Desktop Window Level?
  • Next by Date: text layout crash
  • Previous by thread: Re: Desktop Window Level?
  • Next by thread: Re: baseURL problems in WebView
  • Index(es):
    • Date
    • Thread