L i n k s and javascript.

Geoff Shang gshang at uq.net.au
Thu Oct 10 18:38:25 EDT 2002


On Thu, 10 Oct 2002 igueths at attbi.com wrote:

> Hi Geoff.Just out of curiosity, do you know Javascript?
> Or do you just tend to figure out the code as it is
> similar to C?

I took a crash course in javascript from some online docs when I needed to
come up with some scripting to get a job done.

> If you don't mind, can you try to find
> the file from which the url for the cnetradio stream was
> extracted? Bc I'm still checking various files for the
> link to the playlist, and can't seem to find it. I even
> tried passing showType and radioplayer to
> radio_load_2.html and assigning values to those
> variables, and checked the return value to see if that
> would return the link.

You're on the right track.  In the radio_load_2.html file, you'll see a
function called wihchPath.  this determins where to go next, based on the
browser used.  One bit says:

        if (OpSys == "Linux") {
                window.location = buildOldURL();

Good enough for me.  so I scroll down to

function buildOldURL() {

and down a little it says:

                if(args.showType == "live") {

return("http://www.cnet.com/radio/rlu/live_2.html");

So that's where we go, kids.

And on the 3rd screen you'll find:

        var livePathRmp = "http://www.cnet.com/radio/playlist/live.ram";

If anyone wants the URLs I have for the javascript tutes and references,
just let me know.  A little bit of javascript knowlege helps a lot when
figuring out this stuff.

Geoff.



-- 
Geoff Shang <gshang at uq.net.au>
ICQ number 43634701

Make sure your E-mail can be read by everyone!
http://www.betips.net/etc/evilmail.html

Please avoid sending me Word or PowerPoint attachments.
See http://www.fsf.org/philosophy/no-word-attachments.html






More information about the Speakup mailing list