{"issue":{"user":{"id":587875,"login":"davidhhh","url":"https://api.github.com/users/davidhhh","avatar_url":"https://secure.gravatar.com/avatar/b8ac793768b0402c0b3485302139023e?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"b8ac793768b0402c0b3485302139023e"},"milestone":null,"title":"Issues with using goTo and goBack with Onclick events","created_at":"2011-01-28T16:45:49Z","labels":[],"updated_at":"2011-12-21T06:44:16Z","state":"closed","id":559332,"closed_at":"2011-12-21T06:44:16Z","pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"html_url":"https://github.com/senchalabs/jQTouch/issues/186","body":"Have a simple application with two div (#NewDiv and #openWnd).\r\nIn the < a > tag we have < a onclick='ourFunction() >Test< /a >\r\n\r\nfunction ourFunction does couple other step:\r\n\r\n            jQT.goTo('#openWnd','flip',false);\r\nThe goTo does not change the hash on the window URL to say #openWnd.\r\nWe click on a second button which has \r\n\r\ngoBack();\r\n\r\nHowever, the goBack does nothing.\r\n\r\nusing the latest source code 161\r\n\r\n-----------------------------------------------------\r\nUpdates:\r\n----------------------------------------------------\r\nI changed the line above to:\r\njQT.goTo('#openWnd',null,false);\r\nand now it works. but no animation.\r\n\r\nHowever, I am running into another issue now. If I click and slide to a #NewDiv, and if by accident the finger is on a link that executes the goTo('#openWnd') function before a certain period of time (not sure what that is), the #NewDiv is stuck. It has the #openWnd in the url but it still displays the #NewDiv div. It does not let you move forward or back.\r\n\r\nIt does not seem that jqtouch support onclick events on the < a > tags. It skips executing them intermitantly. any suggestions on that.\r\n\r\nAny help would be appreciated\r\n\r\nThanks\r\nDavid\r\n","number":186,"url":"https://api.github.com/repos/senchalabs/jQTouch/issues/186","comments":3,"assignee":null},"action":"closed"}