in reply to Re: PM XP OS X Widget
in thread PM XP OS X Widget

Yes, it does. Thank you very much indeed.

Originally, I had been getting accurate vote information because I had opened the widget in Safari to check the basic layout and XmlHttpRequest logic (both of which work in Safari); this of course meant that it had picked up the permanent cookie which I already had, so I got the votes. When I opened it in Dashboard to get the preferences and so on working (those need the widget object, which Safari doesn't support), it didn't have that cookie anymore, so poof, no votes.

I figured this out this morning just after I woke up; I'm glad to see that my idea was correct.

Now whether people are going to be comfortable with a widget asking them for their perlmonks password or not is another consideration altogether. At the moment, I've simply got logic in there that ignotes the votes if they come back as -1. The interface will need some reconsideration if I'm to add login as well.

You are correct; the code is indeed all Javascript, and I refrained from posting it for that reason, figuring I'd just tick off yet another set of folks. For anyone who's actually still interested after all this, I'll probably have the widget-without-votes ready on Monday. It's all artistic tweaking after this point - mostly the icon.

Replies are listed 'Best First'.
Re^3: PM XP OS X Widget
by pemungkah (Priest) on Nov 28, 2006 at 07:13 UTC
    Version 1.0 of the widget is now available at href:http://ibiblio.org/mcmahon/widgets/PerlmonksXP.wdgt.zip - it skips the vote stuff for now (but entrprising monks who take a gander at the source code can see that it's ready for it as soon as I decide on a nice way to handle logging in vs. not logging in).

    I'll link this from my home page as well.

    It uses the XP ticker node (see What XML generators are currently available on PerlMonks?) to get the data. and shows you your current XP and title, the number of points to the next level, and and your up/down change since the widget was launched.

    It supports all the standard stuff: multiple instances (so you can watch mulitiple users if you feel like it), internationalization (patches welcome to translate the stirings into other lanfuages). It remembers your ID across restart/logout. It currently restarts the delta tracking on each login; I nay change this to be remembered as well.

    I'm planning on adding the voting soon. I'd also be interested in hearing suggestions for other widgets. It was quite a lot of fun; Javascript can be entertaining to write, at least in this quick-feedback environment.

    Edit:
    Now linked at the top of this thread as well.