UIWebview does not work as a native iPhone browser when interacting with an ASPX page

I am new to iphone development and I tried to create a wrapper application pointing to an aspx web page. The web page loads without any problems in my UIWebview, and the user can select items from two drop-down lists.

The problem is that after the user selects an item from the drop-down menu, the page must refresh to display the selected value. This does not happen in my web review, but it works correctly in Safari on my iphone.

Here's a link to a webpage so you can see what I'm talking about: here

My question is: what are the differences between uiwebview and the native browser that affect the launch of JS or ASPX or other content on a webpage And how can I fix this problem?

Thanks for any help!

+6
source share
2 answers

User agents sent by Safari and UIWebView are different from each other, so your problem may be related to this: The contents of UIWebview and IPhone are not delayed (problems with ASP.NET browser capabilities)

+2
source

Just for others to be updated, I can only find answers to this problem: http://www.tuaw.com/2011/03/18/apple-confirms-some-webkit-optimizations-unavailable-to-ios-apps/

and

http://drnicwilliams.com/2008/11/10/to-webkit-or-not-to-webkit-within-your-iphone-app/

Obviously, Apple limits what users can do with uiwebview, unlike the Safari Mobile browser. In addition, the second link says that JS is one directional. If anyone has a job with my problem, we will be very grateful!

+1
source

Source: https://habr.com/ru/post/900048/


All Articles