views:

176

answers:

3

I would like to have a video play continuouly even when html page changes.The new google videos page works this way. My page utilizes javascript.

+4  A: 

You can only continue to play video if you are changing portions of the DOM, not if the location of the page changes.

altCognito
+3  A: 

What about reloading parts of the page with AJAX.

Then you avoid a reload which would stop the video playing.

mr-euro
+2  A: 

I think you want to check into AJAX (Asynchronous JavaScript and XML). This allows you to manipulate parts of the page (in general, the entire HTML DOM) using callbacks to the server via JavaScript. This is exactly what YouTube/Google Videos use to allow voting/feedback while still watching the video, since any page reload forces the browser to stop playback of the video and restart.

Depending on which web framework you are using, there are various different choices for AJAX libraries out there. Microsoft have create their own [ASP.NET AJAX]](http://www.asp.net/ajax/) for example, which is now very mature.

Noldorin
A in AJAX is asynchronous, not advanced.
Jherico
Yep, silly slip there. Thanks
Noldorin