TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,964
  • Latest: stylix
Stats
  • Total Posts: 195,944
  • Total Topics: 21,314
  • Online today: 2,002
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 1
  • Guests: 980
  • Total: 981
  • @rjen

WebRadio in a Block !

Started by gijs, September 01, 2006, 04:10:00 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Greenbug

#10
Yes it does error, but not in SMF/TP. I cleared my log and ran it a few times, reloading page etc.. no errors. Only in browser.

This is the error in IE attached, and the line 126 is divName.innerHTML = "Media name: " + Player.currentMedia.name;

This is line 125 and it works, can I put something after the "media name: " What would work for that?
divState.innerHTML = "Playstate: Playing";

Not sure how to fix it.

I am getting a DivName error in IE I believe its trying to get the song name but there is no place to display it. my guess.

I dont know that much about coding to fix it either. The Editor said it has many incorrect statemtents. All I did was take the image and add stations.

Works for me, but I'm easy

GB

Svaha

Hahaha, since I've been to Kau'i, I've this 'hang loose' thing.
Nevertheless, this is like solving a puzzle.

I changed the image to transparant gif, changed the background to match my theme and made all the width values '99%'.

I outcommented the divName but still 2 script errors left.

Regel:183
Teken:1
Code:0
Fout:Object wordt verwacht (object expected)
URL:http://www.alohaspirit-nl.nl02.members.pcextreme.nl/
badmuts/WebRadio/WebRadio.htm?q1=
http://ms.stream.garnierprojects.com/kinkfm&station=Kink fm&vol=50

2)
Regel:129
Teken:1
Code:0
Fout:'btnPause' is niet gedefinieerd
URL:http://www.alohaspirit-nl.nl02.members.pcextreme.nl/badmuts/WebRadio/
WebRadio.htm?q1=http://ms.stream.garnierprojects.com/kinkfm&station=Kink fm&vol=50

Greenbug

#12
I had to commented out these lines

114 // btnPause.disabled = true;

115 // btnPause.value = " Pause ";

116 // btnStop.disabled = true;

126 // divName.innerHTML = "Media name: " + Player.currentMedia.name;

129Ã,  // btnPause.disabled = false;

130Ã,  // btnStop.disabled = false;

177Ã,  //checkPlayState(false);


in WebRadio.htm minus the image cut, and adding of stations.

Everything works as it should and no errors.

Again this is what it looks like now
www.chicohotornot.com






Svaha

Looks nice on your site.
My nephew found missing ';' (semicolons?) two instances.
With the still outcommented divName, one error remains :

Regel:183
Teken:1
Code:0
Fout:Object wordt verwacht (error : object expected)
URL:http://www.alohaspirit-nl.nl02.members.pcextreme.nl/badmuts/WebRadio/WebRadio.htm?q1=http://cuestream.bydust.com/asx/5.asx&station=Q-music&vol=50

For today that's enough for me haha

Greenbug

I had that error, and if I am not mistaken I had to comment out lines 114, 115, & 116

I also tried using this editor which found the errors for me very quickly. You can go back and forth testing it before uploading it.

http://www.mpsoftware.dk/downloads.php

Cheers,

I would check the code above, since I had taken out the image altogether line number have changed.

Svaha

Great man, thanks, I downloaded this editor, debugged and outcommented checkPlayState (false) and now mine is errorfree too
(http://www.badmuts.nu)

Thanks  :up:

alecoddly

is the download in the original post the error free code ?

Svaha

No this contains errors, you can outcomment the lines that Greenbug has posted here, then it's errorfree.

akulion

i like te image :D im gona use that only lol

Svaha

Haha, I like the image too, I just had to make it a little smaller to fit in a left block

This website is proudly hosted on Crocweb Cloud Website Hosting.