You will recieve your password to this address. Address is not made public.

Your preferred username that is used when logging in.

Clicking to play, but i only get a download dialog Created Jul 6, 2009

This thread is solved

Views: 2279     Replies: 3     Last reply Jul 22, 2009  
You must login first before you can use this feature

Twinflower

Posts: 4

Registered:
Dec 13, 2008

Clicking to play, but i only get a download dialog

Posted: Jul 6, 2009

So, I am clicking on the video assuming it's gonna start playback, but instead it goes for a download, as if the javascript didnt load any player at all.

Here is what i have done:


<h2>Video</h2>
<script type="text/javascript" src="http://foniksfsk.no/flowplayer-3.1.1.min.js"></script>
<div id="tandem" class="cutebox wide">
		<h4>Tandem 2009</h4>
		<p class="cbtext">
			<a id="tandemplayer1" href="http://foniksfsk.no/_video/tandem2.flv" class="videocontainer" style="background:url(/_video/tandem2.jpg);width:480px;height:272px;"> 	
			<img src="/_video/play.png" title="Snurr Film" alt="Snurr film" style="margin-top:100px;border:0" /> 
            </a> 
		</p>
		<p>      
			En samling klipp fra diverse tandemhopp<br/>
			<br/>
			Kameramann og videoredigerer: Shane Dunn<br/>
			Tandeminstruktør: Håvard Rognerud<br/>
			
		</p>

		<script type="text/javascript"> 
			flowplayer("tandemplayer1", "http://foniksfsk.no/flowplayer-3.1.1.swf"); 
		</script>
	</div>

The url is:
http://foniksfsk.no/site/tandem#video

But the video content is AJAX loaded, so to see the source you have to select all (ctrl-a), then right click and view selection source.
(At least in Firefox)

Twinflower

Posts: 4

Registered:
Dec 13, 2008

» Clicking to play, but i only get a download dialog

Posted: Jul 6, 2009

Reply to: Clicking to play, but i only get a download dialog, from Twinflower
Ok, it seems that the issue is the AJAX-part.

Since the content above (code-section) is loaded with AJAX, it appears as if the JS doesnt get the chance to scan the HTML and create player objects.

Is there any way to fix this?

Hoyle

Posts: 5

Registered:
Mar 5, 2009

» » Clicking to play, but i only get a download dialog

Posted: Jul 22, 2009

Reply to: » Clicking to play, but i only get a download dialog, from Twinflower
Did you find a resolution to this issue? I'm currently experiencing this same issue with this, although it seems to be intermittent and localized only to single Flowplayer instances (not within a playlist).

Thanks,

Hoyle

Twinflower

Posts: 4

Registered:
Dec 13, 2008

» » » Clicking to play, but i only get a download dialog

Posted: Jul 22, 2009

Reply to: » » Clicking to play, but i only get a download dialog, from hoylekoontz
the problem was AJAX.

since the player was "insertet" with insertHTML and ajax, it didnt work.

the script requires to load as the page load to scan the html for "players" and replace them with objects.