How can I call Java Script a function form of my C object class

I show the url in uiwebview and I get the list in the popover controller, now my requirement is when the user selects any element from this popover list, then I need to call the JavaScript function with the parameters I selected, and according to my choice, the JavaScript function will change the content of the URL.

The code I'm trying to call the JS function is given below, but it does not work for me:

[self.myWebview stringByEvaluatingJavaScriptFromString:@"loadpano(\"panoXML.php?params=panoId=9572|lang=de|parkourId=342\",null,MERGE,BLEND(1));"]; 

Please provide me any solution for this.

+4
source share

All Articles