Hi All, I'm trying to embed a WebView inside a UIView/TableView so as to implement the combobox. The WebView will have the select element , after the selection the value should be returned to the main UIView. I'm not sure how to implement this.
In the ViewDidFinishLoad, I try to run the JavaScript like this:
- (void)webViewDidFinishLoad:(UIWebView *)aWebView {<pre>
if (initialLoad) {
initialLoad = NO;//NO initially
}
NSString *scriptCode = @"var selectmenu=document.getElementById(\"mymenu\"); selectmenu.onchange= this.options[this.selectedIndex].value; ";
NSString *translatable = [webLoader stringByEvaluatingJavaScriptFromString:scriptCode];
NSLog(@"isTranslatable: %@", translatable);
}
This is not working...! Could someone please tell me how to do it....? Thanks