The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Not sure if this is a CSS or Javascript Problem, MP3 player placement
UptonGirl
post Jun 4 2009, 12:43 AM
Post #1


Advanced Member
****

Group: Members
Posts: 142
Joined: 17-January 09
Member No.: 7,577



Yep, I'm still struggling with this. Had a solution (a javascript pop-up player) client didn't like it. Siiiiiigh Thankfully I took a break from this for a while as there were other things to get done.

On this page: http://althea.cs.umass.edu/TMurray/jvInterviewtest.html Which is only partial and just a test - is an accordion panel. In the content are of each panel will be nested divs for the answer text and the audio (they are in the first content panel now) Inside the audio div is an mp3 player (javascript this time - not flash) But - I'm still having that issue of the player itself laying on TOP of the accordion.

Each panel should have the same configuration as the first - a text answer - and an audio player with a recording of that answer to he right. FYI the mp3 isn't linked yet.

Thoughts? Suggestions? Cyanide?

Thanks,

Ev


PS: I'm also not sure where the code to call the script for the player goes - once on the page - or repeated each time in the audio div?

This post has been edited by UptonGirl: Jun 4 2009, 12:45 AM
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
UptonGirl
post Jun 4 2009, 07:59 PM
Post #2


Advanced Member
****

Group: Members
Posts: 142
Joined: 17-January 09
Member No.: 7,577



Well - since I can't edit the post above (is there some time limit on edits?) I'll just note down here that I was trying to do the impossible. Can't change the z index of an embedded object.

Now - where the hell is Pancho and his damned donkey? I gotta go find me a new windmill.

This post has been edited by UptonGirl: Jun 4 2009, 08:00 PM
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Darin McGrew
post Jun 5 2009, 01:24 AM
Post #3


WDG Member
********

Group: Root Admin
Posts: 8,365
Joined: 4-August 06
From: Mountain View, CA
Member No.: 3



QUOTE
is there some time limit on edits?
Yes. Posts can be edited for an hour.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Frederiek
post Jun 5 2009, 02:16 AM
Post #4


Programming Fanatic
********

Group: Members
Posts: 5,146
Joined: 23-August 06
From: Europe
Member No.: 9



I get the following errors from the Errors Console in my browser:

Resource interpreted as script but transferred with MIME type text/html.
http://althea.cs.umass.edu/TMurray/soundpop.js

Resource interpreted as script but transferred with MIME type text/html.
http://althea.cs.umass.edu/TMurray/scripts...reAudioEmbed.js

SyntaxError: Parse error
http://althea.cs.umass.edu/TMurray/soundpop.js (line 1)

SyntaxError: Parse error
http://althea.cs.umass.edu/TMurray/scripts...reAudioEmbed.js (line 1)

ReferenceError: Can't find variable: embedPlayer
http://althea.cs.umass.edu/TMurray/jvInterviewtest.html (line 111)

You probably need to use the embedPlayer(...) function to call each audio file.
Doesn't the site, where you got the script from, have any documentation on the use of the script?

In my Safari, the player is hidden in the accordeon, so I don't know why other browsers don't.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
UptonGirl
post Jun 6 2009, 03:33 AM
Post #5


Advanced Member
****

Group: Members
Posts: 142
Joined: 17-January 09
Member No.: 7,577



QUOTE(Frederiek @ Jun 5 2009, 03:16 AM) *

I get the following errors from the Errors Console in my browser:

Resource interpreted as script but transferred with MIME type text/html.
http://althea.cs.umass.edu/TMurray/soundpop.js

Resource interpreted as script but transferred with MIME type text/html.
http://althea.cs.umass.edu/TMurray/scripts...reAudioEmbed.js



In my Safari, the player is hidden in the accordeon, so I don't know why other browsers don't.


Not sure about Safari either - go figure.

I'm also not sure what THIS means:

QUOTE
Resource interpreted as script but transferred with MIME type text/html.


soundpop was a different script I had used, thought I removed all refs to it but guess not.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Frederiek
post Jun 6 2009, 07:11 AM
Post #6


Programming Fanatic
********

Group: Members
Posts: 5,146
Joined: 23-August 06
From: Europe
Member No.: 9



Since you use an XHTML DOCTYPE, you should use the correct <script> syntax.

Not:
<script language="JavaScript" type="text/JavaScript" src="soundpop.js"></script>

But:
<script type="text/javacript" src="soundpop.js"></script>


BTW, I get a 404 File not found on both .js files.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Jun 6 2009, 07:55 AM
Post #7


🌟Computer says no🌟
********

Group: WDG Moderators
Posts: 20,730
Joined: 9-August 06
Member No.: 6



QUOTE(UptonGirl @ Jun 6 2009, 10:33 AM) *

I'm also not sure what THIS means:

QUOTE
Resource interpreted as script but transferred with MIME type text/html.



It means your server isn't configured to use the correct content-type for js files. It sends them as text/html. Should be text/javascript. Must be changed on the server. .htaccess will work, but usually the content-type for common files types like this is configured in the server's main configuration. Have you done something yourself that could have changed this?

Safari is right BTW. (Ouch! It hurt to say that. tongue.gif) I checked.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Frederiek
post Jun 6 2009, 03:54 PM
Post #8


Programming Fanatic
********

Group: Members
Posts: 5,146
Joined: 23-August 06
From: Europe
Member No.: 9



QUOTE(pandy @ Jun 6 2009, 02:55 PM) *

Safari is right BTW. (Ouch! It hurt to say that. tongue.gif) I checked.

cool.gif
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 23rd April 2024 - 09:52 AM