{"issue":{"state":"closed","pull_request":{"diff_url":null,"html_url":null,"patch_url":null},"user":{"avatar_url":"https://secure.gravatar.com/avatar/08f94edfd77b037cacedbe21f9cf4497?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"08f94edfd77b037cacedbe21f9cf4497","url":"https://api.github.com/users/vjm-","login":"vjm-","id":1157604},"milestone":null,"labels":[],"assignee":null,"updated_at":"2011-11-02T11:06:29Z","closed_at":"2011-11-02T11:06:29Z","comments":1,"url":"https://api.github.com/repos/jamietre/ImageMapster/issues/30","body":"Hi,\r\njust want to open url when area is clicked but nothing happens :)\r\neverything else is working ok.\r\nIdeas what I'm doing wrong?\r\n\r\n<pre>\r\n<samp>\r\n<script type=\"text/javascript\" src=\"../imagemapster.js\"></script>\r\n<script type=\"text/javascript\">\r\njQuery(function() {\r\njQuery('img').mapster({\r\n   singleSelect: true,\r\n   isSelectable: false,\r\n   fillColor: 'f37135',\r\n   fillOpacity: 1,\r\n   stroke: true,\r\n   strokeColor: 'fff',\r\n   strokeOpacity: 1,\r\n   strokeWidth: 2,\r\n   mapKey: 'laani',\r\n   listKey: 'laani',\r\n   areas: [{\r\n      key: 'lappi',\r\n      onClick: go\r\n}]\r\n});\r\n});\r\n\r\nfunction go() {\r\nwindow.open('myURL')\r\n}\r\n\r\n</script>\r\n</samp>\r\n</pre>","html_url":"https://github.com/jamietre/ImageMapster/issues/30","number":30,"title":"following url onClick","id":2118966,"created_at":"2011-11-02T08:07:19Z"},"action":"closed"}