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 <[EMAIL PROTECTED]> 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 [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to