Hi Alex, Thanks for your response. Is there a way to turn off/workaround this security feature on Windows? We are using the same API --> loadHTMLString() on Mac OSX and it loads the html content and stylesheet without any problem.
Thanks in Advance, On Thu, Feb 24, 2011 at 9:34 PM, Alexander Shulgin < [email protected]> wrote: > On 24.02.2011 18:01, Lakshmi P Shanmugam wrote: > >> Hello all, >> >> I'm using the Windows WebKit APIs. >> I'm trying to display html content which uses an external css file as >> stylesheet. I'm using IWebFrame.loadHTMLString(string, baseURL) with >> baseURL=0. >> The content is displayed but the style from the css is not applied on >> the content. The same html content is displayed correctly with the style >> if I save the html content in a file and load the URL. >> I'm not sure why this is happening. >> > > You are violating the security constraints. Basically, only HTML content > loaded through file:// URL is allowed to access other file:// resources. > > You may embed the css using the <stylesheet type="text/css"> tag in the > <head> section of your HTML. > > -- > Alex > _______________________________________________ > webkit-help mailing list > [email protected] > http://lists.webkit.org/mailman/listinfo.cgi/webkit-help > -- *Lakshmi*
_______________________________________________ webkit-help mailing list [email protected] http://lists.webkit.org/mailman/listinfo.cgi/webkit-help
