dcsimg


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: AJAX and Flash Video

  1. #1
    Join Date
    May 2007
    Posts
    1

    AJAX and Flash Video

    Hey guys, I am really hoping somebody here can help me, because I am stumped. I am not a programmer, but I have done as much troubleshooting as I know how (Including using a debug script that a friend gave me to verify that there were no errors).

    Here is my problem. I used this script to create dynamic content via the maincontent DIV in the Index.html file. Everything works fine until you try and load a Flash Video, and instead of video, you get a White Square where it should be playing.

    Now, this only happens if the html file is being loaded into the DIV tag, if you load it seperatley, it works fine! In case I am not quite clear, here are the files in question (There was NO external .js file to reference for this script).

    The Actual html file with video (Notice, it plays!):
    http://www.emotionent.com/clients/jo...acle_drug.html

    And the main index file (Click Commercials -> AADAC -> First Image)
    http://www.emotionent.com/clients/joe/
    Notice it's just a white square!!!

    This has been driving me nuts for days, and I cannot figure out what is going wrong! PLEASE help!

  2. #2
    Join Date
    Jul 2007
    Posts
    3
    I've got this working....BUT when the ajax component polls it restarts the video half way thru....

    html first...not standard ajax library

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <script src="prototype.js" Language="JavaScript"
    [ccc]type="text/javascript"></script>
    <script>
    function get_question()
    {
    var myAjax = new Ajax.PeriodicalUpdater('question', 'flash.php', {method: 'post', frequency: 3.5, decay: 1});
    }
    </script>
    <title>BigIdeas Demo</title>
    </head>
    <body background="background.gif" onLoad="get_question()">
    <div id="question" align="center"></div>
    </body>
    </html>

    now flash.php

    <?php
    echo "<html>";
    echo "<body>";
    echo "<object width=\"550\" height=\"400\">";
    echo "<param name=\"movie\" value=\"external_movie.swf\">";
    echo "<embed src=\"external_movie.swf\" width=\"550\" height=\"400\">";
    echo "</embed>";
    echo "</object>";
    echo "</body>";
    echo "</html>";
    ?>

Similar Threads

  1. ajax conflicts problems
    By mitmit in forum AJAX
    Replies: 0
    Last Post: 04-19-2007, 10:45 AM
  2. Ajax Animation
    By zelig in forum AJAX
    Replies: 0
    Last Post: 02-09-2007, 07:41 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center