DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: Flash video restarts at every ajax poll

  1. #1
    Join Date
    Jul 2007
    Posts
    3

    Question Flash video restarts at every ajax poll

    I've got some code that downloads a flash .swf file and plays in a div. All works fine BUT the video will restart every time ajax polls the div population code [php].

    I'm using the prototype.js library for my ajax support. Does anyone know how to prevent the video restarting every poll?

    Cheers

  2. #2
    Join Date
    Jul 2007
    Posts
    3

    Smile I used DOM to fix

    enabled javascript in the ajax start up so I now pass DOM info back to the calling html page plus javasscript to stop/start the ajax polling all works a treat...

    <?php
    echo "<html>";
    echo "<body>";
    echo "<script type=\"text/javascript\">";
    echo "elem1 = document.getElementById(\"question\") ;";
    echo "elem1.innerHTML='<html>HTML to be displayed in the div<html>';";
    echo "myAjax.stop();" ;
    echo "setTimeout(\"myAjax.start()\",20000);" ;
    echo "</script>";
    echo "</body>";
    echo "</html>";
    ?>

Similar Threads

  1. Replies: 5
    Last Post: 11-12-2008, 01:35 AM
  2. AJAX and Flash Video
    By Kray-Z in forum AJAX
    Replies: 1
    Last Post: 07-01-2007, 06:38 AM
  3. New forum + some AJAX links
    By Lori in forum AJAX
    Replies: 0
    Last Post: 02-09-2006, 02:26 PM
  4. Video Game Poll
    By Patrick Troughton in forum .NET
    Replies: 48
    Last Post: 09-23-2002, 02:19 AM
  5. Flash mx
    By sam in forum Web
    Replies: 0
    Last Post: 03-15-2002, 01:01 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