Widget Question

The geek forum. PHP, Perl, HTML, hardware questions etc.. it's all in here. Got a techie question? We'll sort you out. Ask your questions or post a link to your own site here!

Widget Question

Postby Kenshin17 » Fri Jun 15, 2007 8:56 am

Anybody here knowledgeable about OS X widgets? I want to make one and I am not sure how to begin...or even if it can be done.

I want to create a widget that will check my PMs on a website and allow me to view and create PMs without the need to actually go to the site in Fireox or Safari.

Anybody know how to do that?
A nightingale in a golden cage
That's me locked inside reality's maze
Come someone make my heavy heart light
Come undone, bring me back to life
It all starts with a lullaby
User avatar
Kenshin17
 
Posts: 860
Joined: Tue Nov 02, 2004 9:17 am
Location: On the earth, perhaps

Postby Mithrandir » Sat Jun 16, 2007 8:10 am

This is certainly possible. In fact, if you know javascript, it's fairly easy. Here's an article from ADC on how to write widgets:

http://developer.apple.com/macosx/dashboard.html

If you can wait until October, it's rumored that there'll be something called "dashcode"

http://www.apple.com/macosx/leopard/developer/dashcode.html

THAT looks promising; it's pretty easy to use. Not that I would have seen it already, or anything. :sweat:
User avatar
Mithrandir
 
Posts: 11071
Joined: Fri Jun 27, 2003 12:00 pm
Location: You will be baked. And then there will be cake.

Postby Kenshin17 » Sat Jun 16, 2007 3:18 pm

Hm...I saw that whilst I was drooling over the beauty of Leopard....and grinning over how it will make Vista look....well dull.

Hm...maybe I will just wait.

Edit: I prolly couldn't write one line of javascript code XD
A nightingale in a golden cage
That's me locked inside reality's maze
Come someone make my heavy heart light
Come undone, bring me back to life
It all starts with a lullaby
User avatar
Kenshin17
 
Posts: 860
Joined: Tue Nov 02, 2004 9:17 am
Location: On the earth, perhaps

Postby Mithrandir » Sun Jun 17, 2007 6:38 am

Hmm... If you can't write javascript, you might have a tough time writing any widgets. It's not that difficult, if you are willing to start with someone else's code, you might be able to get something running.

BTW: Most online forums clear your "get new" function if you check your PMs, so you might run into a process problem as well. Just throwing that out there.
User avatar
Mithrandir
 
Posts: 11071
Joined: Fri Jun 27, 2003 12:00 pm
Location: You will be baked. And then there will be cake.

Postby Kenshin17 » Mon Jun 18, 2007 5:00 pm

So would I have to do research to figure out how to let the widget get my PMs? Where would I even start?
A nightingale in a golden cage
That's me locked inside reality's maze
Come someone make my heavy heart light
Come undone, bring me back to life
It all starts with a lullaby
User avatar
Kenshin17
 
Posts: 860
Joined: Tue Nov 02, 2004 9:17 am
Location: On the earth, perhaps

Postby Mithrandir » Mon Jun 18, 2007 7:19 pm

You would probaly need to engineer a way for it to:
1. Login to the system.
2. Navigate to the PMs page.
3. Strip out all the text you don't want.
4. Prints what you DO want.

Of course, I think Leopard has a neat little "drag and drop" thing to pull out only what you want from a website and store it as a widget. Check the keynote from last monday for more information.
User avatar
Mithrandir
 
Posts: 11071
Joined: Fri Jun 27, 2003 12:00 pm
Location: You will be baked. And then there will be cake.

Postby Kenshin17 » Mon Jun 18, 2007 7:55 pm

I see....but what about the interface.

And you mean go to the page and bring up the code?
A nightingale in a golden cage
That's me locked inside reality's maze
Come someone make my heavy heart light
Come undone, bring me back to life
It all starts with a lullaby
User avatar
Kenshin17
 
Posts: 860
Joined: Tue Nov 02, 2004 9:17 am
Location: On the earth, perhaps


Return to Computing and Links

Who is online

Users browsing this forum: No registered users and 181 guests