#74894 - 25/02/2002 15:16
charcoalgray99’s xsl stylesheet for hijack v214+
|
enthusiast
Registered: 14/05/2001
Posts: 279
|
Here’s an updated version which uses the new url format in hijack v214+.
IE6 or IE5/5.5 + XML Parser 3.0 are required. I haven’t figured out Mozilla yet.
The fascia buttons and drop-down command box are all sent through javascript now. No need to refresh the page for each command. The fascia buttons also use mousedown mouseup events, so long button presses have been implemented!
Tom
Attachments
72723-xmlwebinterface6.zip (34 downloads)
|
Top
|
|
|
|
#74895 - 25/02/2002 15:24
Re: charcoalgray99’s xsl stylesheet for hijack v214+
[Re: charcoalgray99]
|
enthusiast
Registered: 28/01/2002
Posts: 265
Loc: MI, USA
|
Thanks, I like it a lot...
one request...
can you impolement hiding unusable features?
namely just the play buttons for the songs...
here's some real basic code for doing that from an old version I built before others started doing it:
<xsl:choose>
<xsl:when test="/playlist/@allow_commands=1">
<td>
<a>
<xsl:attribute name="href"><xsl:value-of select="@tagfid"/>?SERIAL=%23100.htm</xsl:attribute>
<img src="/images/play.jpg"/>
</a>
</td>
</xsl:when>
</xsl:choose>
that'll hide the whole column...it needs to be in the table heading line and in every playlist or tune line...
_________________________
guardian__J MKIIa 20g Smoke
|
Top
|
|
|
|
#74896 - 25/02/2002 15:24
Re: charcoalgray99’s xsl stylesheet for hijack v214+
[Re: charcoalgray99]
|
Pooh-Bah
Registered: 21/07/1999
Posts: 1765
Loc: Brisbane, Queensland, Australi...
|
Excellent! Thankyou.
I tried editing the default page myself but not knowing anything about the xml syntax didn't help.
this is just awesome
_________________________
--
Murray
I What part of 'no' don't you understand?
Is it the 'N', or the 'Zero'?
|
Top
|
|
|
|
#74897 - 25/02/2002 15:28
Re: charcoalgray99’s xsl stylesheet for hijack v214+
[Re: charcoalgray99]
|
enthusiast
Registered: 14/05/2001
Posts: 279
|
I think we should decide on a directory to use for all web related material. I don’t like the idea of sticking all this stuff in the root, especially with multiple stylesheets, this can get messy. Also after a firmware upgrade, everything has to be uploaded again.
So what do you think? Something like:
/web
/drive0/opt/empegxml
/drive0/opt/web
Comments?
Tom
|
Top
|
|
|
|
#74898 - 25/02/2002 15:34
Re: charcoalgray99’s xsl stylesheet for hijack v214+
[Re: charcoalgray99]
|
enthusiast
Registered: 28/01/2002
Posts: 265
Loc: MI, USA
|
I like that idea...
I think somewhere on drive0 sounds good too...
do you think you could make the changes to your xsl?
I've been making some myself...
_________________________
guardian__J MKIIa 20g Smoke
|
Top
|
|
|
|
#74899 - 25/02/2002 15:43
Re: charcoalgray99’s xsl stylesheet for hijack v214+
[Re: guardian__J]
|
enthusiast
Registered: 14/05/2001
Posts: 279
|
Yeah, sounds like something I can do. Thanks for the example code too...
Tom
|
Top
|
|
|
|
#74900 - 25/02/2002 15:58
Re: charcoalgray99’s xsl stylesheet for hijack v214+
[Re: charcoalgray99]
|
Pooh-Bah
Registered: 21/07/1999
Posts: 1765
Loc: Brisbane, Queensland, Australi...
|
that structure sounds fine. We just leave the index in root and redirect from there?
_________________________
--
Murray
I What part of 'no' don't you understand?
Is it the 'N', or the 'Zero'?
|
Top
|
|
|
|
#74901 - 25/02/2002 15:59
Re: charcoalgray99’s xsl stylesheet for hijack v214+
[Re: muzza]
|
enthusiast
Registered: 28/01/2002
Posts: 265
Loc: MI, USA
|
you could...
personally I already have an index that I use as a homepage that has links to a few things for me, i'd just add a link to there...
_________________________
guardian__J MKIIa 20g Smoke
|
Top
|
|
|
|
#74902 - 25/02/2002 16:02
Re: charcoalgray99’s xsl stylesheet for hijack v214+
[Re: charcoalgray99]
|
carpal tunnel
Registered: 20/12/1999
Posts: 31600
Loc: Seattle, WA
|
I don't know if drive0/opt is lost during an upgrade?
I know that empeg/var is not lost during an upgrade. Can we put it there?
|
Top
|
|
|
|
#74903 - 25/02/2002 16:29
Re: charcoalgray99’s xsl stylesheet for hijack v214+
[Re: tfabris]
|
enthusiast
Registered: 14/05/2001
Posts: 279
|
I have a bunch of old stuff in /opt like emptris, displayserver, blitmenu2.0, so I don't think it gets lost.
But, if the consensus is var, how about /drive0/var/web ?
I'm not sure what to do about the index file, though. I would like to keep everything in one place. Maybe a hijack option for the web root?
Tom
|
Top
|
|
|
|
#74904 - 25/02/2002 16:31
Re: charcoalgray99’s xsl stylesheet for hijack v214+
[Re: tfabris]
|
carpal tunnel
Registered: 27/06/1999
Posts: 7058
Loc: Pittsburgh, PA
|
I say just create an /opt tree off the root partition, which will of course be on drive0 anyway. But without user intervention, I think it will get dropped during an upgrade because the entire root partition is re-created during the upgrade. The solution is to use the spare hda2 partition and mount it to /opt, but not everyone knows how to do mkfs and set up the mounts. Someone was working on an alternate root partition type system which would help us out, but I don't think it's come to fruition yet.
I personally don't like putting anything under the /empeg/var tree myself due to the fact that it's where the player's Important Stuff lives and I'm paranoid.
|
Top
|
|
|
|
#74905 - 25/02/2002 16:33
Re: charcoalgray99’s xsl stylesheet for hijack v214+
[Re: charcoalgray99]
|
carpal tunnel
Registered: 27/06/1999
Posts: 7058
Loc: Pittsburgh, PA
|
I have a bunch of old stuff in /opt like emptris, displayserver, blitmenu2.0, so I don't think it gets lost.
Is that right? I was under the impression that the root partition gets smoked during an upgrade... Hmm. I guess I never worried about it because all my stuff is on another partition.
|
Top
|
|
|
|
#74906 - 25/02/2002 16:37
Re: charcoalgray99’s xsl stylesheet for hijack v214+
[Re: tonyc]
|
enthusiast
Registered: 14/05/2001
Posts: 279
|
Oops. I mean /drive0/opt, I don't have an /opt in the root directory.
Tom
|
Top
|
|
|
|
#74907 - 25/02/2002 16:44
Re: charcoalgray99’s xsl stylesheet for hijack v214+
[Re: charcoalgray99]
|
carpal tunnel
Registered: 27/06/1999
Posts: 7058
Loc: Pittsburgh, PA
|
Ah, gotcha. /drive0/* survives upgrades. One could just link /opt to /drive0/opt or whatever.
|
Top
|
|
|
|
#74908 - 25/02/2002 16:46
Re: charcoalgray99’s xsl stylesheet for hijack v214+
[Re: guardian__J]
|
enthusiast
Registered: 14/05/2001
Posts: 279
|
can you impolement hiding unusable features?
Ok I have this working now. It hides the play commands, also the command drop-down box, and the image maps, which make the fascia un-clickable.
I don't know what I can do about the home index though, it's just static html.
Tom
|
Top
|
|
|
|
#74909 - 25/02/2002 16:49
Re: charcoalgray99’s xsl stylesheet for hijack v214+
[Re: tonyc]
|
enthusiast
Registered: 14/05/2001
Posts: 279
|
What is the reason for linking /opt to /drive0/opt ? I would like to keep installation steps at a minimum.
Tom
|
Top
|
|
|
|
#74910 - 25/02/2002 16:55
Re: charcoalgray99’s xsl stylesheet for hijack v214+
[Re: charcoalgray99]
|
enthusiast
Registered: 28/01/2002
Posts: 265
Loc: MI, USA
|
everything you listed is all that gets sent to the xsl. The home index doesn't need to be turned off...
_________________________
guardian__J MKIIa 20g Smoke
|
Top
|
|
|
|
#74911 - 25/02/2002 19:51
Re: charcoalgray99’s xsl stylesheet for hijack v214+
[Re: charcoalgray99]
|
carpal tunnel
Registered: 27/06/1999
Posts: 7058
Loc: Pittsburgh, PA
|
I'd just do it for my own benefit because I'm used to things being in /opt on other UNIX systems. I wasn't suggesting that become the de-facto standard. I really wish whoever was working on a standard Empeg environment and root image would pop back in and inform us of his progress.
|
Top
|
|
|
|
#74912 - 25/02/2002 21:18
Re: charcoalgray99’s xsl stylesheet for hijack v214+
[Re: charcoalgray99]
|
pooh-bah
Registered: 12/02/2002
Posts: 2298
Loc: Berkeley, California
|
This is great, I love it. I knew there was a reason I bought my empeg...
Now, the feature request: Is there any way to insert or append songs the the current playst? One of the things I miss with the empeg is going through and building up a mix playlist to suit whatever I feel like, and the web interface should make this much easier than the playlist navigation on the player.
My personal goal would be to be able to set up a laptop somewhere durring a party and have anyone who walks by be able to figure it out, and be able to add what they want to hear to whatevers already playing.
|
Top
|
|
|
|
#74913 - 25/02/2002 21:33
Re: charcoalgray99’s xsl stylesheet for hijack v214+
[Re: matthew_k]
|
carpal tunnel
Registered: 20/12/1999
Posts: 31600
Loc: Seattle, WA
|
I don't think there's a serial command to insert/append. In order to do that, you have to communicate to the player via the emplode connection protocol. Don't think Hijack and the web server can do that.
Empeg guys: Hint: It would be really nice if we could have an insert command from serial similar to the # command. Perhaps i#<fid> and a#<fid> or something? Dunno?
I'm going to wish-list this to the guys now...
|
Top
|
|
|
|
|
|