UIWebview handle popup view

Posted by Tuan Nguyen on Stack Overflow See other posts from Stack Overflow or by Tuan Nguyen
Published on 2014-06-05T03:21:21Z Indexed on 2014/06/05 3:25 UTC
Read the original article Hit count: 238

Filed under:
|
|

I've a webpage with one text-box and one button. Click on button will show a popup for searching. On popup page,has 2 buttons, "Search" and "Close". Input the text and click Search, the result will display on a list on this popup, click on a row will close the popup and fill the value to text-box on main-page.

  1. On Destop browser, it works fine
  2. On Safari on iPad, it will open new tab instead of a popup but work fine.
  3. UIWebview in my app, on main-page, click the button, I will go to Search page, but when click Search button and close button, nothing happened, I know because 2 buttons will close the popup or the tab, but I don't know how to handle on my Webview, and also I can fill data to main-page or not?

Could anyone point me away? Thanks,

© Stack Overflow or respective owner

Related posts about ios

Related posts about uiwebview