{"action":"created","issue":{"url":"https://api.github.com/repos/lognormal/boomerang/issues/64","labels_url":"https://api.github.com/repos/lognormal/boomerang/issues/64/labels{/name}","comments_url":"https://api.github.com/repos/lognormal/boomerang/issues/64/comments","events_url":"https://api.github.com/repos/lognormal/boomerang/issues/64/events","html_url":"https://github.com/lognormal/boomerang/issues/64","id":88290561,"number":64,"title":"Examples in documentation don't work","user":{"login":"boomuser","id":12888212,"avatar_url":"https://avatars.githubusercontent.com/u/12888212?v=3","gravatar_id":"","url":"https://api.github.com/users/boomuser","html_url":"https://github.com/boomuser","followers_url":"https://api.github.com/users/boomuser/followers","following_url":"https://api.github.com/users/boomuser/following{/other_user}","gists_url":"https://api.github.com/users/boomuser/gists{/gist_id}","starred_url":"https://api.github.com/users/boomuser/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/boomuser/subscriptions","organizations_url":"https://api.github.com/users/boomuser/orgs","repos_url":"https://api.github.com/users/boomuser/repos","events_url":"https://api.github.com/users/boomuser/events{/privacy}","received_events_url":"https://api.github.com/users/boomuser/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-06-15T02:15:40Z","updated_at":"2015-06-15T12:43:34Z","closed_at":null,"body":"After reading the documentation, I created a test page with a button for executing a bandwidth test. I cut/paste from the documentation into my test, which is a PHP page and nothing happens when I click the button that invokes the boomerang init and subscribe. I would hope that documented stuff would work first time everytime. Disappointed. Can someone fill in what the documentation lacks or assumes as basic boomerang knowledge?\r\nThe beacon url is a JPG. A simple JPG. I tested the URL and the JPG displays. Running Safari on MAC, with debugger enabled. There is no boomer object. created when I click my execute test button. I want a button, so that a bandwidth test is an option for the user.\r\nThis all fails silently. So I don't have any messages to report.\r\n\r\n<?php\r\n#\tRuns as PHP\r\n?>\r\n<html>\r\n<head>\r\n<script src=\"transfer_settings/boomerang.js\" type=\"text/javascript\"></script>\r\n<script type=\"text/javascript\">\r\nfunction bwReport() {\r\nBOOMR.init({\r\n\tbeacon_url: \"http://myweb/test.jpg\"\r\n\t});\r\nalert('AK001 BW');\r\n    BOOMR.subscribe(\"before_beacon\",function() {\r\n        console.log(arguments);\r\n    });\r\n}\r\n</script>\r\n<body>\r\n<table border=\"0\">\r\n<tr><td>&nbsp;</td><td align=\"right\">Bandwidth Report</td><td>&nbsp;<input type=\"button\" value=\"Execute Bandwidth test\" onClick=\"javascript:bwReport();\"></td><td>&nbsp;</td><td>&nbsp;</td></tr>\r\n</table>\r\n</body>\r\n</html>\r\n\r\n\r\n\r\nOr\r\n\r\nBOOMR.init({\r\n\tbeacon_url: \"http://myweb/test.jpg\",\r\n        RT: {\r\n        \tcookie: \"cookie-rt\",\r\n        \tstrict_referrer: false\r\n        \t}\r\n\t});\r\n\t\r\nWhich also fails to do anything."},"comment":{"url":"https://api.github.com/repos/lognormal/boomerang/issues/comments/112052524","html_url":"https://github.com/lognormal/boomerang/issues/64#issuecomment-112052524","issue_url":"https://api.github.com/repos/lognormal/boomerang/issues/64","id":112052524,"user":{"login":"boomuser","id":12888212,"avatar_url":"https://avatars.githubusercontent.com/u/12888212?v=3","gravatar_id":"","url":"https://api.github.com/users/boomuser","html_url":"https://github.com/boomuser","followers_url":"https://api.github.com/users/boomuser/followers","following_url":"https://api.github.com/users/boomuser/following{/other_user}","gists_url":"https://api.github.com/users/boomuser/gists{/gist_id}","starred_url":"https://api.github.com/users/boomuser/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/boomuser/subscriptions","organizations_url":"https://api.github.com/users/boomuser/orgs","repos_url":"https://api.github.com/users/boomuser/repos","events_url":"https://api.github.com/users/boomuser/events{/privacy}","received_events_url":"https://api.github.com/users/boomuser/received_events","type":"User","site_admin":false},"created_at":"2015-06-15T12:43:34Z","updated_at":"2015-06-15T12:43:34Z","body":"When Boomerang.init sits inside a function, it does not run onLoad. In my code test, .init() sat within a function with a diagnostic alert. I only saw the alert when I clicked my button to invoke the function.\nIs it possible for Boomerang to gather data more than once?\n\nDate: Mon, 15 Jun 2015 05:39:56 -0700\nFrom: notifications@github.com\nTo: boomerang@noreply.github.com\nCC: katsampes@hotmail.com\nSubject: Re: [boomerang] Examples in documentation don't work (#64)\n\nYou don't need rt.js specifically. Any boomerang plugin will do as long as\n\nit calls `sendBeacon()`\n\n\n\nYou can set autorun to false to stop it from running on `onload` and only\n\nrun when you call `pageReady`.\n\n\n\nhttp://www.lognormal.com/boomerang/doc/api/BOOMR.html\n\n\n\nI don't think calling pageReady more than once will do what you want\n\nthough. It sets an internal flag.\n\n\n\n—\nReply to this email directly or view it on GitHub.\n\n  \n    \n    \n  \n  \n \t\t \t   \t\t  "}}