[webkit-help] JavaScriptCore Framework Reference

Alexander Shulgin alexander.shulgin at yessoftware.com
Thu Dec 23 05:09:25 PST 2010


On 23.12.2010 13:40, Nimish Nayak wrote:
>
> 2) Using the IWebFrame Interface, loadHTMLString function we can load
> the HTML string when the WinLauncher App starts. But I would like to
> give the location of the File from the local Disk How to achieve this

Just use loadRequest method with UrlRequest object intialized with 
file:// URL.

> 3)I have observed that an alert on a JS page does not get called. which
> is quite weird. Is this a bug? How to enable the alerts so that if
> someone on the page goes alert("hi"); it would actually
> alert like firefox and Safari

Showing actual alert messageboxes is delegated to application for 
customization purposes.  Just implement the 
IWebUIDelegate::runJavaScriptAlertPanelWithMessage() method and be sure 
set the UI delegate.

Others might be able to help you with your first question.

--
Regards,
Alex


More information about the webkit-help mailing list