Polling plugin for Typo III... 2
Well I promised an update, and here it is. Not much progress to report. I am stalled on the sidebar issue, trying to have AJAX links in the sidebar panel to vote with and then updating the sidebar DIV with the results. Typo sidebars load fine from the SidebarController, but trying to hit them directly fails with uninitialized constant Plugin at the bottom of the error trace it mentions the controller file and the plugin.rb file.
Apparently plugin.rb is not loaded when you go to the controller directly. I wish sidebars worked more like the TextFilters. I tried to hack it up, but didn't have much success. I do notice that while the TextFilters are technically plugins, the controller for them lives inside the main Typo application, whereas the sidebar controller lives in the components directory... Long story short I've asked for help on the typo mailing list.
In the meantime I've been researching ways to display polling results. OpenLaszlo looked like a great candidate for this, especially for fitting into the small amount of real estate a sidebar allows. I had high hopes for its PieChart control, but it is still beta quality. I messed around with it a bit, but I wasn't satisfied with how it looks and also mouse events aren't supported yet. I spent quite a bit of time getting the demo up and running mostly because when you check it out from source some of the files have moved and thus the demos don't work. I will be keeping an eye on this project though especially now that there is a Ruby on Rails integration gem available from Oliver Steele.
Better news for Horizontal CSS graphing though. I was able to implement a helper based on Geoff Grosenbach's Vertical Bar CSS graphing code. At this point I will just be excited to see something show up in the sidebar for results... (grumble)
Apparently plugin.rb is not loaded when you go to the controller directly. I wish sidebars worked more like the TextFilters. I tried to hack it up, but didn't have much success. I do notice that while the TextFilters are technically plugins, the controller for them lives inside the main Typo application, whereas the sidebar controller lives in the components directory... Long story short I've asked for help on the typo mailing list.
In the meantime I've been researching ways to display polling results. OpenLaszlo looked like a great candidate for this, especially for fitting into the small amount of real estate a sidebar allows. I had high hopes for its PieChart control, but it is still beta quality. I messed around with it a bit, but I wasn't satisfied with how it looks and also mouse events aren't supported yet. I spent quite a bit of time getting the demo up and running mostly because when you check it out from source some of the files have moved and thus the demos don't work. I will be keeping an eye on this project though especially now that there is a Ruby on Rails integration gem available from Oliver Steele.
Better news for Horizontal CSS graphing though. I was able to implement a helper based on Geoff Grosenbach's Vertical Bar CSS graphing code. At this point I will just be excited to see something show up in the sidebar for results... (grumble)