javascript - page with video content not display the video when i use loadXMLDoc () in my php file -


i want open link page contain flowplayer-3.2.18 in div form same page .i using loadxmldoc () in php file. when click on link page open contents display correctly video not show.
script

<script type="text/javascript">     function loadxmldoc(id) {         var xmlhttp;     var myid=id;         if (window.xmlhttprequest) {             // code ie7+, firefox, chrome, opera, safari             xmlhttp=new xmlhttprequest();         } else {             // code ie6, ie5             xmlhttp=new activexobject("microsoft.xmlhttp");         }         xmlhttp.onreadystatechange=function() {             if (xmlhttp.readystate==4 && xmlhttp.status==200) {                 document.getelementbyid("content").innerhtml=xmlhttp.responsetext;         }     }     xmlhttp.open("post","videopage.php?name="+myid,true);     xmlhttp.send(); } </script> 

and accessing code

<a href="javascript: loadxmldoc('<?php echo $row1[0];?>');" > 

and in target div code is

<a href="<?php echo $row[3]; ?>"  style="display:block;width:500px;height:400px;"  id="player">             </a>          <script language="javascript">              flowplayer("player", "flowplayer-3.2.18.swf");             </script> 

ok have main page video contain 3 div , include 3 different pages

</div>   <div id="content"> <?php include "videohome.php";?> </div>   <div id="aside"> <?php include "add.php";?> </div> 

and video list page display list of topics , sub topic

<ul style=list-style-image:url('arrow.png');list-style-type: none;>     <?php      include "config.php";     $q=mysql_query("select distinct(category) video");       while($row=mysql_fetch_row($q))     {               ?>              <h3 ><b>             <li >              <?php               echo   $row[0] ;             ?>             </b></li></h3>             <?php              $q2=mysql_query("select title video category='$row[0]'");               ?>             <div>             <p>             <ul>             <?php             while($row1=mysql_fetch_row($q2))                 {                    ?>                  <li>                  <a href="javascript: loadxmldoc('<?php echo $row1[0];?>');" >                  <?php                   echo   $row1[0];                 ?>                 </a>                 </li>                 <br>                 <?php                   }               ?>         </ul>         </li>         </p>         </div>         <?php     }        ?> </ul> </div> 

when click on link in div content videopage.php open

<script src="flowplayer-3.2.13.min.js"></script>  </head> <body>    <?php $name=$_get['name'];  include "config.php"; $q=mysql_query("select * video title='$name'");     $row=mysql_fetch_row($q);  <div id="videoset">         <p align="center">         <a href="<?php echo $row[3]; ?>"  style="display:block;width:500px;height:400px;"  id="player">             </a>          <script language="javascript">              flowplayer("player", "flowplayer-3.2.18.swf");             </script>   </div> 


Comments

Popular posts from this blog

java - WrongTypeOfReturnValue exception thrown when unit testing using mockito -

php - Magento - Deleted Base url key -

android - How to disable Button if EditText is empty ? -