Suppose I have one Webview over another and i am loading a page inside the inner web view. Now I want to disable all the user interactions of the outer Webview. How can I achieve this in desktop programming?
Here goes the code segment:
IBOutlet WebView *innerWebView;
IBOutlet WebView *outerWebView;
- (void)applicationDidFinishLaunching:(NSNotification *)aNotification
{
// Insert code here to initialize your application
// NSString *path = [[NSBundle mainBundle] pathForResource:@"main" ofType:@"html"];
// NSURL *url = [NSURL fileURLWithPath:path];
[[myWebView mainFrame] loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:@"http://icicibank.com"]]];
[outerWebView setDrawsBackground:NO];
[outerWebView setEditable:NO];
}
- (void)webView:(WebView *)webView decidePolicyForNewWindowAction:(NSDictionary *)actionInformation request:(NSURLRequest *)request newFrameName:(NSString *)frameName decisionListener:(id < WebPolicyDecisionListener >)listener{
[myWebView setDrawsBackground:NO];
[myWebView setEditable:NO];
[outerWebView setDrawsBackground:YES];
[outerWebView setEditable:YES];
NSLog(@"hello");
[[outerWebView mainFrame] loadRequest:request];
[outerWebView webViewShow:outerWebView];
}
These are the outlets.