The problem is that i'm unable to launch a php function from JS..
this don't work
<?php updateVideo(); ?>
Yes, i know that PHP is a server side language while JS a client-side, but for what reason if i attempt to access to php variables along the document it's possibile such they are stored in memory while the same thing isn't possible with function?
For exemple, this code normally retrieve me a variable from php
var pro='<?php echo $page; ?>'