Programming Forums

Programming Forums (http://www.programmingforums.org/forumindex.php)
-   JavaScript and Client-Side Browser Scripting (http://www.programmingforums.org/forum23.html)
-   -   Tutorial for building widgets (http://www.programmingforums.org/showthread.php?t=15578)

Logical1 Apr 9th, 2008 2:52 PM

Tutorial for building widgets
 
Hello
Do you know of a good tutorial/samples/... for building widgets?
I am particularly interested in the ones that play a selected online radio.
A sample would be greatly appreciated.
Thanks in advance.

Ooble Apr 9th, 2008 2:57 PM

Re: Tutorial for building widgets
 
Widgets for what? Websites? The Mac Dashboard? Konfabulator? KDE?

Sane Apr 9th, 2008 4:59 PM

Re: Tutorial for building widgets
 
I'm assuming since he posted it in the Client-Side Browser Scripting forum, he's asking about Flash.

Ooble Apr 9th, 2008 7:01 PM

Re: Tutorial for building widgets
 
Well, that includes JavaScript, so iGoogle or any other site isn't out of the question.

Logical1 Apr 9th, 2008 8:36 PM

More info
 
No guys I know how to work with flash but I am interested to see if same results can be achieved with JS or XML or other methods.
Since I learn better by example than theory than most I am interested to see a simple code that forms a little window without the ususal borders and ugly status bars, etc. and plain and simple does something. Either play a radio station, play a sound file, show time, anything.
I know very little about javascript and have never used XML so I am not sure what they can do in this department.
If you have any widgets and dont mind sharing the code post it. Thsi is really a general question not for any specific task or project.
Thanks in advance.
PS. I work in PC environment as you have correctly guessed.

Ooble Apr 9th, 2008 10:48 PM

Re: Tutorial for building widgets
 
Ah, gotcha.

I think you have XML confused with something else. XML is a format for storing data, not a scripting language. XHTML is a subset of XML, for example, and is used to represent the data you wish to show in your web pages.

The simplest way to do it would be to have an (X)HTML page with whatever you want to display, and use the window.open JavaScript method to open it. The Mozilla Developer Centre pages have a good reference. It's just one line of JS, and the first two parameters are easy: the URL and the new window's name. The third is the bit you want to play with: it'll let you nuke the window toolbars, status bar, etc. You won't be able to get rid of the border though - the user needs that X button to close the damn thing.

Logical1 Apr 10th, 2008 1:55 PM

Question
 
Thanks OOble. Have you seen the yahoo widgets? They have no frame at all. That's what I am trying to do.

Logical1 Apr 10th, 2008 2:27 PM

I tried to edit that response but did n't let me so here it is:
 
Thanks OOble but there are some questions:
I can use JS to launch a little window without status bar or other compnanets and in a smaller size. But this has to be launched from some HTML or other page. While the widgeths have an icon and you click on it and it starts the damedn thing by itself at that size which means the dimensions and no status bar are part of its own code. How is it done?
2. Have you seen the yahoo widgets? How did they remove the frame all together?

Thanks in advance
PS. If anyone is interested to write a smaple code for me for a small fee I am OK with that too just let me know your fee.

Ooble Apr 10th, 2008 6:07 PM

Re: Tutorial for building widgets
 
Ah, I see. Yahoo Widgets are made for Konfabulator, which I mentioned earlier. They're not made for web browsers. I don't think they have much to do with JavaScript, but I could be wrong.

If that's what you want to do, download the Konfabulator SDK and start playing.

Logical1 Apr 12th, 2008 12:28 PM

Thanks
 
Thanks Ooble I downloads the damend thign and started playing with it. However says Mac stuff are more userfirendly has not seen this piece of junk there is no start of finish and can't find a decent example source code or explanation either.
But you are right it will do the trick when I figure out how to use it.


All times are GMT -5. The time now is 9:27 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC