PROnetworks »

Post new topic    Reply to topic
Login to print this topic
Author Message
kanaloa
John C. Derrick
PostPosted: Wed Jul 09, 2008 7:37 pm Reply with quote

Founder
 
 


Joined: 09 Mar 2002
Posts: 43384
Location: Columbia, SC
I'm having a problem that's a bit over my head when it comes to fixing it.

I have a page with, lets say 3 tabs, at the top. The first tab has my regular body content under it. The other two tabs make AJAX requests for external content, in both cases video and audio respectively.

The tabs all worth great.. video and audio loads fine.

But in IE, once I navigate away from a tab, the audio or video continues to play.

Now on the page below, it's a little different, but same principle. An AJAX popup window that, when closed, keeps on playing video in the background.

http://www.scetv.org/index.php/winthrop/

If you click "Methodology Video Test" on the right menu in IE7 and then close it, it just keeps on playing.

Can I stop this from happening? It's fine in FF.

I figure the solution for the simple issue above will also fix my tabs problem too.
 
Back to top
jbullard
Jason Bullard
PostPosted: Wed Jul 09, 2008 10:13 pm Reply with quote

Vice President
Software
 
 


Joined: 06 Jun 2004
Posts: 3233
Location: Utah
The video can't be found but if I understand you correctly you just need to put a navigate away event that would trigger the video to stop playing. But I would have to see the video actually playing in order to fully understand what is going on.
 
Back to top
kanaloa
John C. Derrick
PostPosted: Wed Jul 09, 2008 11:02 pm Reply with quote

Founder
 
 


Joined: 09 Mar 2002
Posts: 43384
Location: Columbia, SC
I may have broken it when redoing stuff tonight. I tried and tried and finally just got rid of my tabs (for now).

Let me duplicate the setup I had so you can see it in action.
 
Back to top
kanaloa
John C. Derrick
PostPosted: Wed Jul 09, 2008 11:10 pm Reply with quote

Founder
 
 


Joined: 09 Mar 2002
Posts: 43384
Location: Columbia, SC
http://www.scetv.org/index.php/the_big_picture/show2/tourism_in_south_carolina

OK, that should now show the problem in IE.

I fixed it by going to a different script, but I had to give up my tabs, which I'd rather not do if I don't have to.
 
Back to top
kanaloa
John C. Derrick
PostPosted: Thu Jul 10, 2008 9:23 am Reply with quote

Founder
 
 


Joined: 09 Mar 2002
Posts: 43384
Location: Columbia, SC
I think I've narrowed this problem to just JQuery material. One new script I used does halt the video on exit, but from the code it looks like he thought that out in advance.

I'd love to be able to achieve the same effect with the tabs. The JS is just over my head though. And I'm not sure if I control it in the main jquery script or the specific tab script (I'm guessing the later).

On the jQuery website they even talk about turning the cache off, but maybe my problem is bigger than just cache. I think it's an event not ending like you said above. So I need to find a way to end or close the event when I change tabs.
 
Back to top
jbullard
Jason Bullard
PostPosted: Thu Jul 10, 2008 3:56 pm Reply with quote

Vice President
Software
 
 


Joined: 06 Jun 2004
Posts: 3233
Location: Utah
The actual page that is called when you click on the video tab is it SWF or another type of video format? You might be able to send an even through PHP to that page to cause it to pause or stop.
 
Back to top
kanaloa
John C. Derrick
PostPosted: Thu Jul 10, 2008 5:58 pm Reply with quote

Founder
 
 


Joined: 09 Mar 2002
Posts: 43384
Location: Columbia, SC
The page with the video is a template in EE (basically an html file) with a video player embedded in the code.
 
Back to top
kanaloa
John C. Derrick
PostPosted: Thu Jul 10, 2008 8:18 pm Reply with quote

Founder
 
 


Joined: 09 Mar 2002
Posts: 43384
Location: Columbia, SC
Well it's not the fix I wanted exactly, but it seems to work in FF, IE7, and IE6
http://www.scetv.org/index.php/the_big_picture/show/tourism_in_south_carolina/

Looks like the guy who wrote this script found a way to destroy the iframe the content is put in. And that seems to do the trick of clearing the ajax request.
 
Back to top
Back to top
Index >> Webmaster Domain & Code Room >> AJAX and Cache in IE

Page 1 of 1

Post new topic   Reply to topic


Tired of the Ads? Registered users have 80% less adverts.