Thursday 28 May 2009

The powah of the client side.

I have added some js to parse logs found on the viewed page and make a few simple graphs. (With the help of jquery and google chart)

The magical code can be seen here

http://www.wetgenes.com/js/wetlogs.js

and a link to an example log post can be found here

http://wetlogs.blogspot.com/2009/05/14391.html

Which is to say when you view a raw log file, your browser scans it and turns it into a pretty picture.

This is very shallow parsing but consider it an example of what could be done :)

Obviously it is limited in that it only looks at the current page and it's not very useful information but hey, if I throw in some daily leaderboards here for max amount of time spent online then I'm sure the users will love it :)

Maybe I'll just do a few things this way, it turns out that it is rather simple.

No comments:

Post a Comment

Note: only a member of this blog may post a comment.