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>";
?>
On Jul 1, 12:14 pm, dave-s
<goo...-SUNEuUDlZiS9FHfhHBbuYA@public.gmane.org>
wrote:> I''m using the Ajax.PeriodicalUpdater [within prototype.js] to poll
> some php every couple of seconds...the php returns html to a div that
> displays some content for example images etc. The thing all works fine
> and dandy so I thought I''d try and play aflashvideo [.swf] in the
> div...theflashloads fine and starts to play BUT when ajax polls the
> php the video restarts even if it has not completed.
>
> So my question is...
>
> Would it be possible for ajax to detect it is the same .swf file
> returned each poll time and not restart the video unless it was a
> different .swf file?
>
> Thanx in advance for any help posted.
>
> Cheers
>
> Dave-Senabled 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>";
?>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Spinoffs" group.
To post to this group, send email to
rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---