A
A
Ayk722014-08-17 14:45:58
Software players
Ayk72, 2014-08-17 14:45:58

How to make a block that doesn't reload?

How to make a block with a player so that it does not reload when switching to other pages?
Like player vk

Answer the question

In order to leave comments, you need to log in

3 answer(s)
E
Evgeny Petrov, 2014-08-17
@Petroveg

With reloading the pages, the answer is no way.
For non-stop operation of the player, you will independently rebuild the content of the pages using AJAX and adding new entries to the History.
This will entail a mechanism for tracking the address bar on the client with a choice of scripts, the server issuing the code of the whole page or only the content (perhaps not all, but only parts, depending on the parameters passed).
If you are able to competently implement this - wellcome. If you do not understand what is at stake, then we return to the first phrase.

A
Alexander Taratin, 2014-08-17
@Taraflex

Switch the site to ajax + history api
Well, or at least wrap the entire site in an iframe, and leave the block in the main window.

E
Eduard Kozhevnikov, 2014-08-17
@Zelebober

iframe did not try?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question