SergeantFTC Posted December 14, 2014 Share Posted December 14, 2014 (edited) Following the example on the wiki results in an almost completely broken infusion. After typing it all in myself, I tried literally copying and pasting the contents of all three of the files from the wiki, with exactly the same results. Clicking on the refresh button does nothing, as in no notification, and no refresh of the DNSSpoof status. The DNSSpoof checking itself however does work correctly. Entering and submitting some text in the large view results in a redirect to a broken webpage. I've attached a screenshot. I assume this is because the wiki's content is out-of-date, and that it worked at one time. What changed, and how do we make it work? P.S. Does this topic belong in the main Pineapple forum instead of the infusion forum? Edited December 14, 2014 by SergeantFTC Quote Link to comment Share on other sites More sharing options...
newbi3 Posted December 14, 2014 Share Posted December 14, 2014 The reason why stuff is breaking is because whoever created this example put <head> tags in the HTML which should not be in there.. Replace your small tile code with this: <script type="text/javascript"> function refreshSmall();{ refreshSmallTile(ExampleInfusion); notify('You used the Refresh button!'); } </script> <?php exec("pgrep dnsspoof", $dnsspoofrunning); if(empty($dnsspoofrunning)) { echo "DNSSpoof is not Running."; } else { echo('DNSSpoof is Running'); } ?> <a href="#" onClick="refreshSmall();">[Refresh]</a> That should work just fine. Also for API documentation: http://wiki.wifipineapple.com/index.php/Webinterface_API Quote Link to comment Share on other sites More sharing options...
SergeantFTC Posted December 14, 2014 Author Share Posted December 14, 2014 Thanks, but making that change unfortunately gives me exactly the same results. :( Besides, an error in the code for the small tile shouldn't have broken the large tile, should it have? For clarity's sake, I'm on FW version 2.1.1. Quote Link to comment Share on other sites More sharing options...
Sebkinne Posted December 14, 2014 Share Posted December 14, 2014 The information may be outdated - I'll get to it next week. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.