{"issue":{"user":{"id":459092,"login":"mics","url":"https://api.github.com/users/mics","avatar_url":"https://secure.gravatar.com/avatar/aea367b55859e276d2fbacc8ea25020f?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"aea367b55859e276d2fbacc8ea25020f"},"milestone":null,"title":"Internal #links in Ajax loaded content does not work ","created_at":"2010-10-29T05:48:04Z","labels":[],"state":"closed","updated_at":"2011-12-20T22:57:16Z","id":388406,"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"html_url":"https://github.com/senchalabs/jQTouch/issues/117","closed_at":"2011-12-20T22:57:16Z","number":117,"body":"What steps will reproduce the problem?\r\n1. Ajax loaded content containing internal link, e.g.\r\n<a href=\"#Gravity\">gravity</a>\r\n2. Tap the link\r\n\r\nWhat is the expected output?\r\nI expect the page to scroll to the anchor the link is referring to. Nothing happens.\r\n\r\nWhat version of the product are you using? On what operating system?\r\nRevision 109 on iPhone 4\r\n\r\nI added class=\"xx\" and rel=\"external\" to the link above, and then tried to catch the click event with the following code:\r\n\r\n$(document).ready(function() {\r\n\t$(\"a.xx\").click(function(event) {\r\n\t  event.preventDefault();\r\n\t  location.href = \"#Gravity\";\r\n\t  alert (\"Test\");\r\n\t  return false;\r\n\t});\r\n});\r\n\r\nThis makes the page scroll as expected, but as soon as I respond to the alert (or delete the alert statement)the app reverts to the home screen.","url":"https://api.github.com/repos/senchalabs/jQTouch/issues/117","comments":2,"assignee":null},"comment":{"user":{"id":21713,"login":"davidkaneda","url":"https://api.github.com/users/davidkaneda","avatar_url":"https://secure.gravatar.com/avatar/4f731655f6de1f6728c716448e0ba634?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"4f731655f6de1f6728c716448e0ba634"},"created_at":"2011-12-20T22:57:16Z","updated_at":"2011-12-20T22:57:16Z","id":3226821,"body":"You should use live/delegated events instead. Really testing the limits of better late than never on this response, I know...","url":"https://api.github.com/repos/senchalabs/jQTouch/issues/comments/3226821"},"action":"created"}