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.


In reply to Re^2: PM XP OS X Widget by pemungkah
in thread PM XP OS X Widget by pemungkah

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.