danrok wrote on 27
th Jan, 2008 at 8:08pm:
I can't see any good reason for even using iframe. So, get rid of it completely.
This playing.php file is just HTML, Javascript and CSS, I don't see any PHP! Why it has the extension .php, I don't know.
So, just copy/paste that code in to the index.html file, and dont use iframe!! LOL
The main, playing.php file is written in php. It basically executes a SQL query against the
SAM server at S.A. HQ, asking what's currently playing, what's coming up next, what the last five tracks were played, what the name of CD picture file of the currently playing track is, what the Amazon.com link is and how many listeners are currently tuned-in. Once it has this information, it creates the HTML table that's displayed in the iFrame. The php source won't be displayed in any way if queried via your browser. The php code is executed on the website server and not at browser level - all that you will see if you 'view source' in your browser is the HTML code that is generated by the script. Similar to the Perl code that the forum is written in - the 'source' that's viewed by the end-user is the HTML code that's generated when the forum page in Perl is executed (executed on the website server).
The main problem here is a cosmetic one and the way in which both
IE and
Firefox handle 'scroll bars'. As mentioned, in my opinion, it looks great in
IE but not-so-great in
Firefox. Apart from
Firefox always displaying a scroll-bar at the bottom of the iFrame (which
IE doesn't do) - the colour of the scroll-bars in
Firefox are displayed in the regular 'battleship grey' as opposed to the funky green / red in
IE. This seems to be due to
Firefox not recognising the scroll-bar colour definitions in the <body> tag on the main page and within the php script.
The obvious solution is to switch-off the scroll-bars within the iFrame itself but this obviously won't help if there's an over-spill in the song titles which makes the contents of the table too big to be displayed in the iFrame ... Don't worry - there's a few options that I'm looking at. It'll hopefully be sorted soon enough.