Note that there are some explanatory texts on larger screens.

plurals
  1. POPassing url with onclick to flowplayer
    text
    copied!<p>I have a table that gets built up from a database. That loops through to create a row:</p> <pre><code>&lt;tr &gt; &lt;td onclick="DoNav('&lt;?php echo $result_videos[$i]["video_url"]; ?&gt;');"&gt; &lt;?php echo $result_videos[$i]["camera_name"]; ?&gt; &lt;/td&gt; &lt;td onclick="DoNav('&lt;?php echo $result_videos[$i]["video_url"]; ?&gt;');"&gt; &lt;?php echo setlocalTime($result_videos[$i]["video_datetime"]); ?&gt; &lt;/td&gt; .... &lt;/tr&gt; </code></pre> <p>When a user clicks on a row in the table it sends it to the <code>DoNav</code> function to launch flowplayer: var js = jQuery.noConflict(); function DoNav(theUrl) { //flowplayer("player", "flowplayer/flowplayer-3.2.7.swf", theUrl); var mydiv = js("#player"); var $myhref = js(""); mydiv.append($myhref); }</p> <p>I try to build the player as a href. It must be an href and not like the commented line (which I had before, which works but won't help for iOS support)</p> <p>Here is the div I used before and the final call to flowplayer in the body:</p> <pre><code>&lt;div id="player" style="display:block;width:320px;height:240px;background-image:url(images/videoPlaceHolder01.JPG)"&gt;&lt;/div&gt; &lt;script language="JavaScript"&gt; flowplayer("player", "flowplayer/flowplayer-3.2.7.swf"); &lt;/script&gt; </code></pre> <p>Clicking rows does nothing anymore and I see no errors. Pretty sure I'm mixing up the behavior with div and href for flowplayer which is not right. In fact I'm mixing too many things here and wondering if there is an easier way to create an onclick event to then launch flowplayer before I continue on this crazy path. Note I do want to keep the splash image.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload