User talk:DaveR
From WWR
Clickable java button for player
Saw you were trying to have a button clickable to execute javascript. I can't be much help, but I think the way to do it is to add any javascript you want to execute to monobook.js that exists in your userspace. I.e. create User:DaveR/monobook.js and put javascript in it. Only problem is, I'm not sure you (or anyone) is allowed to specify 'onClick' or any of the stuff to actually execute javascript on a page. User:Sparkit may know. Sorry I don't have time to delve myself but thought I'd mention monobook.js in case you weren't using it and wanted to try.
Oh, and if you do get it working, um, well it may not eventually. It may be a security risk but I'll have to think about it. At first glance it seems safe enough since users would have to manually modify their monobook.js file and anyone at that level probably isn't going to hack themselves. Only dangerous if novices are told to copy a nasty javascript into their monobook.js and then execute it. Unlikely... Jimbob 02:24, May 18, 2006 (AKDT)
- Hi. No, it's not javascript it's just a clickable link to an external URL which loads a java webstart media player. The jlGui people provide a configurator which generates the link - including making it play WWR. I wanted to use a 'play' button
as the anchor, instead of the current text, but I haven't (yet) worked out how to do that. But it looks OK as it is IMO. DaveR 02:35, May 18, 2006 (AKDT)
- Oh, I gotcha. I don't think it's possible to use an image for an anchor i.e. can't do
< /a>. At least I've not been able to. I'd have to write a special $wwr variable to allow it. If you figure out a way using standard wiki markup, let us know as it would be a good trick! Jimbob 04:01, May 18, 2006 (AKDT)
- Oh, I gotcha. I don't think it's possible to use an image for an anchor i.e. can't do
RSS - relative URLs
Hi Jim. Seeing the RSS blog stuff you're working on I tried it in my feed reader - I normally use Akregator. The pictures don't come out - see http://cjoint.com/?lhmdbNMaKB
The problem is the relative URLs in the items, eg href="/wiki/index.php/Image:Quit_smoking.jpg" But I see they come out OK on google-reader. So it may be a problem with Akregator not the feed
I've googled about and can't find a definitive statement on whether relative URLs are valid or not in RSS. I think they're not valid in the RSS-defined elements, like 'link' but in the item itself...? I don't know. I thought you ought to know that there might be an issue with some feed readers. DaveR 02:20, November 7, 2006 (AKST)
- Thanks. Yeah. I'm seeing it with links on some of the tables with songs in them too in Bloglines. Google Reader will force to a fixed URL www.wholewheatradio.org/something_from_wwr whereas others are keeping it relative i.e. www.bloglines.com/something_from_wwr. Thanks for the head's up. I don't think I'm going to be able to fix it in the short run as I didn't write the code for the RSS feeds and it's hairy looking. Jimbob 02:26, November 7, 2006 (AKST)
onair.txt
Just a heads up in case you didn't see: http://www.wholewheatradio.org/onair.txt should fit the bill now for what you need. I shoulda done it that way to begin with. Lot less CPU load.