{"comment":{"created_at":"2011-10-17T21:52:53Z","body":"@josh-h \r\n\r\nCan you try the same with a fresh phonegap project? \r\n\r\nhttp://www.phonegap.com/start/#ios-x4\r\n\r\nThe fact that I can't reproduce this with phonegap makes me wonder what the difference is and I know very little about native ios development. \r\n\r\n","updated_at":"2011-10-17T21:52:53Z","url":"https://api.github.com/repos/jquery/jquery-mobile/issues/comments/2435321","id":2435321,"user":{"gravatar_id":"20196c9dc97267632ce6e6b778361eae","avatar_url":"https://secure.gravatar.com/avatar/20196c9dc97267632ce6e6b778361eae?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/johnbender","id":23505,"login":"johnbender"}},"action":"created","issue":{"number":2190,"created_at":"2011-08-02T16:38:17Z","pull_request":{"diff_url":null,"patch_url":null,"html_url":null},"body":"The 'X' button, and 'data-rel=\"back\"' links in a dialog are ignored when running in an embedded browser on iOS devices. When running from Safari the close button works fine, but when running from a UIWebView the X button is ignored.\r\n\r\nUsing the latest build \"92ceadf138379eed3583d58994886b94fcf227ea Date: Tue Aug 2 07:25:13 2011 -0700\" I am able to reproduce this with a clean test. The offending html is:\r\n\r\n```html\r\n<!DOCTYPE html> \r\n<html> \r\n\t<head>\r\n\t<meta charset=\"utf-8\">\r\n\t<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\"> \r\n\t<title>jQuery Mobile Framework - Dialog Example</title> \r\n\t<link href=\"http://code.jquery.com/mobile/latest/jquery.mobile.css\" rel=\"stylesheet\" type=\"text/css\" />\r\n\t<script src=\"http://code.jquery.com/jquery-1.6.2.js\"></script>\r\n\t<script src=\"http://code.jquery.com/mobile/latest/jquery.mobile.js\"></script>\r\n\t</head> \r\n<body> \r\n\r\n<div data-role=\"page\">\r\n\t\t<div data-role=\"header\">\r\n\t\t\t<h1>iOS Dialog Test</h1>\r\n\t\t</div>\r\n\r\n\t\t<div data-role=\"content\">\r\n\t\t\t<a href=\"#dialog-inline\" data-role=\"button\" data-rel=\"dialog\" data-close-btn-text=\"foobar\">open inline dialog</a>\r\n\t\t</div>\r\n</div>\r\n\r\n<div data-role=\"page\" id=\"dialog-inline\">\r\n\t<div data-role=\"header\">\r\n\t\t<h1>Dialog inline</h1>\r\n\t</div>\r\n\r\n\t<div data-role=\"content\">\r\n\t\t<p>This is a dialog. When running in an iOS UIWebView the Close button does nothing.</p>\r\n\t\t<a href=\"dialog.html\" data-role=\"button\">Page Navigation</a>\r\n\t\t<a href=\"#\" data-role=\"button\" data-rel=\"back\">close</a> <!-- Link is broken -->\r\n\t</div>\r\n</div>\r\n\r\n</body>\r\n</html>\r\n```\r\n\r\nYou can download an Xcode project (tested in Xcode 3.2 and 4.1), the project creates a UIWebView and loads the above html. http://dl.dropbox.com/u/47403/DialogTest.zip","comments":10,"title":"Unable to close dialog within a UIWebView on iOS","updated_at":"2011-10-17T21:52:54Z","url":"https://api.github.com/repos/jquery/jquery-mobile/issues/2190","id":1331244,"assignee":{"gravatar_id":"fa72320f7fd01aa7d743768f85ccf9ea","avatar_url":"https://secure.gravatar.com/avatar/fa72320f7fd01aa7d743768f85ccf9ea?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/jblas","id":394996,"login":"jblas"},"milestone":{"number":9,"created_at":"2011-09-27T18:19:16Z","due_on":null,"title":"1.0RC2","creator":{"gravatar_id":"4ec3e17536d217f2367be3aebb72a72b","avatar_url":"https://secure.gravatar.com/avatar/4ec3e17536d217f2367be3aebb72a72b?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/toddparker","id":359929,"login":"toddparker"},"url":"https://api.github.com/repos/jquery/jquery-mobile/milestones/9","open_issues":31,"closed_issues":27,"description":"","state":"open"},"closed_at":null,"user":{"gravatar_id":"2afedc836a7ce08f59b0062d52d9da8b","avatar_url":"https://secure.gravatar.com/avatar/2afedc836a7ce08f59b0062d52d9da8b?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/josh-h","id":503754,"login":"josh-h"},"html_url":"https://github.com/jquery/jquery-mobile/issues/2190","labels":[{"name":"5 - Critical","url":"https://api.github.com/repos/jquery/jquery-mobile/labels/5+-+Critical","color":"d44a00"}],"state":"open"},"legacy":{"issue_id":1331244,"comment_id":2435321}}