-
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
-
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
-
By solomon_13000 in forum C++
Replies: 5
Last Post: 11-12-2008, 01:35 AM
-
Replies: 1
Last Post: 07-01-2007, 06:38 AM
-
Replies: 0
Last Post: 02-09-2006, 02:26 PM
-
By Patrick Troughton in forum .NET
Replies: 48
Last Post: 09-23-2002, 02:19 AM
-
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
-
Forum Rules
|
Development Centers
-- Android Development Center
-- Cloud Development Project Center
-- HTML5 Development Center
-- Windows Mobile Development Center
|