Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: alerts in WebViews not working



Thanks Timothy, I'll try it out.

Ken

On Oct 8, 2006, at 2:22 PM, Timothy Hatcher wrote:

WebView by default will not show an alert, this is a bug I think. You will need to hook up a UI delete and implement something like this:

- (void)webView:(WebView *)sender runJavaScriptAlertPanelWithMessage:(NSString *)message initiatedByFrame:(WebFrame *)frame
{
NSBeginInformationalAlertSheet(@"Alert", nil, nil, nil, [sender window], nil, NULL, NULL, NULL, message);
}


— Timothy Hatcher


On Oct 8, 2006, at 11:11 AM, Ken Tozier wrote:

Hi

Some of my scripts that are loaded into a webview display alerts for error conditions but they never seem to display. I have the "Enable Javascript" and "Allow Javascript to open windows" checkboxes set for the webview in interface builder, but it's not working. Is there some other setting to make alerts work?

Thanks

Ken
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webkitsdk-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webkitsdk-dev/timothy% 40apple.com


This email sent to email@hidden


_______________________________________________ Do not post admin requests to the list. They will be ignored. Webkitsdk-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webkitsdk-dev/email@hidden

This email sent to email@hidden
References: 
 >alerts in WebViews not working (From: Ken Tozier <email@hidden>)
 >Re: alerts in WebViews not working (From: Timothy Hatcher <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.