Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

UIWebview does not work like Native iPhone Browser when interacting with ASPX page

I am fairly new to iphone development and I've been trying to create a "wrapper" app that points to a ASPX webpage. The webpage loads without any issues in my UIWebview and the user can select items from two dropdown boxes.

The issue here is that once the user selects an item from the dropdown menu, the page should refresh to reflect the selected value. This does not happen in my webview but works correctly in Safari on my iphone.

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

My question is.. what are the differences between a uiwebview and the native browser which affect running JS or ASPX or other webpage contents AND how do I fix this issue?

Thanks for any help!

like image 328
mober13 Avatar asked Oct 25 '11 14:10

mober13


2 Answers

The user agents sent by Safari and UIWebView are different, so your problem might be related to this: UIWebview and IPhone content does not postback (ASP.NET Browser Capability issues)

like image 115
Attila Kun Avatar answered Oct 05 '22 13:10

Attila Kun


Just to keep others updated, the only answers I could find regarding this issue is found on: 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/

Apparently Apple limits what users can do on a uiwebview as opposed to the Safari Mobile browser. Also, the second link says that JS is one directional. If anyone has a work around to my problem, it would be greatly appreciated!!

like image 30
mober13 Avatar answered Oct 05 '22 13:10

mober13