Reference Stat Tracking - UI Almost Complete
Monday, August 24. 2009
Work has finally progressed on the StatTracker. It's taken me a little bit of time to get accustomed to Event Driven programming, but I think I got the hang of it. To be honest, it was kind of nice after I understood what was going on (and created a flowchart to more easily see what I needed to code for). It forces me to go back to my OOP roots in C++. I've been doing procedural PHP for so long, I almost forgot how to spread procedure calls in to separate, more manageable blocks. I now call one function upon application instantiation that runs all other functions, depending on iteration.
Anyhow, the last post I had, I showed a mockup in Photoshop. Here's a live running example of the UI (built directly from the mockup):

What's done?
What small things do I need to fix?
What's left?
I switched tooltip libraries from SimpleTip to qTip, both jQuery tooltip libraries written by Craig Thompson (http://craigsworks.com/). qTip was a rewrite of SimpleTip. It didn't take much time to switch, but there was a bug that he only just fixed this morning that was preventing me from moving forward. Getting the window to properly display in the bottom right portion of the viewport was also "fun", but I'm learning, which is good. Unfortunately, it's all untested in Linux and/or OSX as our library only uses Microsoft Windows, but I can test OSX functionality at home at a later date; or better yet, once this goes up in SVN, anyone else can test it out too, and possibly supply fixes or updates (or if I use GitHub, create their own fork)!
Suggestions, comments, feedback?
Anyhow, the last post I had, I showed a mockup in Photoshop. Here's a live running example of the UI (built directly from the mockup):
Reference Statistics Tracker for SSPL
What's done?
- CakePHP Web-based backend
- Adobe AIR application, can be installed on Linux, OSX, Windows
- Use jQuery JavaScript library with Adobe AIR
- XMLHTTPRequest to backend server from AIR app to dynamically build the UI
What small things do I need to fix?
- Currently, at least in Windows, if you have a :hover state on a button, moving the mouse to the transparent portion of the window does not trigger the mouseout event and disable the :hover state. I will have to overcome this either by JavaScript, AIR properties, or some HTML/CSS trickery.
There is currently no indication that an action has occurred properly (did I press it properly? *click click click CLICK!!!*) as it's such a simple application, I felt it was unnecessary. My boss basically told me I was stupid (with a grin), and I agree.- As of right now, the project only supports up to 9 different question types as the background colors are hardcoded in CSS. This will need to be dynamically coded at a later date. Our library only has a need for 4, so I'm not too overly concerned with this prior to me releasing the code.
What's left?
Attaching onClick events to the buttons to submit a value to the server (very easy, and is the next step)Setting a modal dialog for the Text button to submit data to the server- The hard part: If saving to the server fails for whatever reason, store the data in an internal SQLite DB - constantly check the server at predetermined intervals, and once connection succeeds again, upload all data in the internal DB back to the server, and empty the local DB store
- Backend will (eventually) provide numeric as well as graph/chart-type statistics (I think I'll use ezComponent's ezGraph, I was going to use Open Flash Chart, but Flash based data does not print, and I'd imagine our department heads will want to use the statistics in their monthly reports)
I switched tooltip libraries from SimpleTip to qTip, both jQuery tooltip libraries written by Craig Thompson (http://craigsworks.com/). qTip was a rewrite of SimpleTip. It didn't take much time to switch, but there was a bug that he only just fixed this morning that was preventing me from moving forward. Getting the window to properly display in the bottom right portion of the viewport was also "fun", but I'm learning, which is good. Unfortunately, it's all untested in Linux and/or OSX as our library only uses Microsoft Windows, but I can test OSX functionality at home at a later date; or better yet, once this goes up in SVN, anyone else can test it out too, and possibly supply fixes or updates (or if I use GitHub, create their own fork)!
Suggestions, comments, feedback?
Trackbacks
Trackback specific URI for this entry

As I was redesigning the interface to my "RefStat" (Reference Statistics Tracking) application, I came across a web page that claimed support for CSS3 in Adobe AIR, so immediately began creating the new interface using Safari 4 as a testing ground for my
Tracked: Mar 19, 11:08