The MP3car.com Store  

Welcome to the MP3Car.com forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. Registering will also remove advertisements. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

Go Back   MP3Car.com > Mp3Car Technical > Software & Software Development

Reply
 
Thread Tools Display Modes
Old 08-16-2005, 02:53 AM   #1
FLAC
 
SFiorito's Avatar
 
Join Date: May 2004
Vehicle: 2006 Impreza WRX Limited
Posts: 1,152
My Photos: (0)
HTA XM Player (using FrodoXMService)...

HTA == HTML Application

As some of you know I've been playing around with Mozilla Application development using XUL. It's really powerful and cool, but I wanted to try out the same idea in IE. HTA's are basically HTML pages, with a *.hta extension instead of *.htm. You run them just like any other EXE, just double-click. They run in a full-rights IE shell. Anyways, this was simply a proof of concept. It's not meant to look pretty (both code-wise and UI). You need FrodoXMService installed obviously. I use an XML "data island" and XSLT for the channel list to make sorting easier and faster (you can click on the column names to sort). XUL has much better UI elements than your basic HTML which is what you have to use for HTA's so I had to hack a scrolling list box. It works, so whatever...

So anyways, HTA's are pretty cool because you've got full support for everything in Windows. XUL is a lot better for UI work, but it's limited to mostly XPCOM for components which is not as "easy" to write for as .NET or COM. There's an ActiveX plugin for Mozilla/Firefox but it doesn't support events in XUL mode (in HTML mode it does) so I can't use FrodoXMService client in XUL. However, I've written a rough XUL client using JavaXM. It's pretty cool, I can load local Java libraries with JavaScript in XUL and run them no problem. But there also, it's limited due to how JavaXM was written (it sends events to objects that implement a certain interface, but you can't implement java interfaces in Javascript). I had started writing my own XPCOM XM class, but I didn't feel like finishing it. So potentially if I really wanted to use XUL I would have to make an XPCOM class for XM. Anyhow, I'm not sure why I'm so fascinated with all this XML/Javascript stuff...but it's fun.

NOTICE: since I can't upload an HTA file, I've uploaded the app as a .txt. Just rename it to .hta after you save it...

PS - one of the really nice things of using HTML/XUL is how easy and powerful skinning becomes since you can take advantage of the ultimate skinning tool: CSS!! In this example I just use inline styles in the elements, but in a "real" app I would just use a stylesheet file so you can just swap different stylesheets and have full control over the display of the whole UI.

*UPDATE*: made a few minor UI changes, cleaned up CSS code...
Attached Files
File Type: txt gtxm.txt (7.8 KB, 87 views)

Last edited by SFiorito : 08-16-2005 at 09:42 AM.
SFiorito is offline   Reply With Quote
Sponsored Links
Old 08-16-2005, 04:46 AM   #2
9 Fingered Administrator
Lesbian
 
frodobaggins's Avatar
 
Join Date: Jan 2003
Location: Ruston, LA
Vehicle: 1998 Ranger/1991 Sunbird
Posts: 9,852
My Photos: (0)
Excellent !
__________________
FrodoPlayer.com
TeaBaggins.com
[H]4 Life
My next generation Front End is right on schedule.
It will be done sometime in the next generation.
I'm a lesbian too.
I am for hire!
frodobaggins is offline   Reply With Quote
Old 08-16-2005, 01:16 PM   #3
Newbie
 
entr0py's Avatar
 
Join Date: Oct 2003
Location: NH
Vehicle: Audi TT
Posts: 25
My Photos: (0)
cool, i will check it out
__________________
VIA EPIA M1000
Casetronic C134
512MB, 40G Hard Drive, 8x DVD-ROM
Xenarc 700TS ULTRABRIGHT
Griffin Powermate
Jeff Bipes AUX-IN for Audi's
Opus 150W
WinXP sp2
myHTPC, VoiceMate Pro
Street Atlas 2001
entr0py is offline   Reply With Quote
Old 08-16-2005, 01:24 PM   #4
Newbie
 
entr0py's Avatar
 
Join Date: Oct 2003
Location: NH
Vehicle: Audi TT
Posts: 25
My Photos: (0)
really nice work. I was working on something in vb.net using frodo's service but i have kind of put it on hold for the moment.
__________________
VIA EPIA M1000
Casetronic C134
512MB, 40G Hard Drive, 8x DVD-ROM
Xenarc 700TS ULTRABRIGHT
Griffin Powermate
Jeff Bipes AUX-IN for Audi's
Opus 150W
WinXP sp2
myHTPC, VoiceMate Pro
Street Atlas 2001
entr0py is offline   Reply With Quote
Old 08-20-2005, 04:51 AM   #5
FLAC
 
alti's Avatar
 
Join Date: Sep 2004
Location: NY
Vehicle: 2002 Nissan Altima
Posts: 1,749
My Photos: (0)
sweet! very cool idea
__________________
My Install

Software:
CFiG v1
iGuidance Plugin for CF

CarShell
Working shell for a CarPC

StopWatch
StopWatch plugin remade for centrafuse RC1
alti is offline   Reply With Quote
Old 08-20-2005, 10:23 AM   #6
FLAC
 
SFiorito's Avatar
 
Join Date: May 2004
Vehicle: 2006 Impreza WRX Limited
Posts: 1,152
My Photos: (0)
thanks. btw, HTA's are also what XP MediaCenter uses for its apps.
SFiorito is offline   Reply With Quote
Sponsored Links
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Possible to split XM Direct cable to computer and XM commander? Jemmi General Hardware Discussion 3 12-14-2005 02:07 PM
Stop audio player on XM launch? chrishick Road Runner 3 10-26-2005 07:59 PM
Anyone want another XM player? (NimbleXM) Erorus Software & Software Development 29 05-29-2005 05:36 PM
XM Player, Channel List scrunched?? KingsDude FrodoPlayer 2 05-13-2005 01:04 AM
Using an XM direct as an XMPCR dacndar General Hardware Discussion 20 10-17-2004 01:21 AM


All times are GMT -5. The time now is 11:30 AM.


Sponsored Links
The MP3car.com Store

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.1.0
Copyright © 1999 - 2008 Mp3Car.com Inc.
Ad Management by RedTyger
Message Board Statistics