Sunday, 15 February 2015

php - Java "Browser Freeze" While Loading -



php - Java "Browser Freeze" While Loading -

ok problem has been bugging me long.

basically made signed java applet downloads video url. part of code calls applet below:

<?php if(!empty($id)){ echo <<< end <object codetype="application/x-java-applet" type="application/x-java-applet" code="downloader.class" archive="downloader.jar" height="0" width="0" align="center" cache_archive="downloader.jar" initial_focus="true"> <param name="v" value="$id"/> <param name="u" value="$id"/> <param name="ua" value="$agent"/> appears not have java installed or disabled on system.<br> please download <a href="http://www.java.com/getjava/" class="link" target="_blank">here</a>. </object> <script type="text/javascript"> jquery(document).ready(function() { settimeout("error()",120000); }); </script> end; } ?>

i've declared variables, $id link video file when website receives parameter via:

$id = ($_get['url']);

if url not blank runs java applet download it.

so here problem. whenever java applet loads, whole website freezes completely, cannot scroll nor click buttons; hovering on button won't yield reaction. after applet loads 5 10 seconds, page unfreezes.

my questions are:

1) "browser freeze" expected happen? 2) there way around this? see websites keepvid.com , savevid.com download videos, have no 'browser freeze'. if there doing not, appreciate if tells me.

java php html browser applet

No comments:

Post a Comment