Action without page reloading

Discussion in 'PHP' started by KingCobra, May 16, 2009.

  1. #1
    How can I send variable to flv player without page reloading.

    [​IMG]


    I want that when I will click on a video image then it will play at flash player without page reloading.

    Here is my html code for player:

    <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="360" height="330" id="source" align="middle">
    <param name="allowScriptAccess" value="sameDomain">
    <param name="allowFullScreen" value="false">
    <param name="movie" value="source.swf?video=222222.flv">
    <param name="quality" value="high">
    <param name="bgcolor" value="#f1f1f1">
    <embed src="source.swf?video=222222.flv" quality="high" bgcolor="#ff0000" width="360" height="330" name="source" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></object>

    Is it need function() to load without full page reloading?

    I dont know. PLEASE HELP ME
     
    KingCobra, May 16, 2009 IP
  2. Sky AK47

    Sky AK47 Member

    Messages:
    298
    Likes Received:
    8
    Best Answers:
    1
    Trophy Points:
    45
    #2
    You COULD use javascript to change the source of the FLV file, but I doubt if that will work.
    The best thing to do is iframe a php file, handling the source of the FLV file.
    Page:
    <iframe src="xx.php?source=xx" width="xx" height="xx" name="frame"></iframe>
    Code (markup):
    Hyper link on the image:
    <a href="xx.php?source=xx" target="frame">image..</a>
    Code (markup):
    PHP file;
    echo $_GET['source'];
    Code (markup):
    At the location of the embed src.
    That's at least how I would do it.
     
    Sky AK47, May 16, 2009 IP