Hello,
I have to install Gears from a php page. I have this:
echo '<script type="text/javascript" src="gears.init.js">'."\n";
echo '<!--'."\n";
echo 'if (!window.google || !google.gears)'."\n";
echo '{'."\n";
echo 'location.href=\"http:\\//gears.google.com\/?action=install
\&message\=\<Welcome\! Please install Google Gears to Enable Offline
Mode\>\"+\"\&return\=http:\\//localhost\/impact\/home\\/
index.php"'."\n";
echo '}'."\n";
echo '// -->'."\n";
echo '</script>'."\n";
I have uninstalled Gears and restarted the computer but the script is
being ignored. No errors received.Just going on to the next page in
the application, not going to gears.google.com
I have tried this:
echo '<script type="text/javascript">'."\n";
echo '<!--'."\n";
echo 'location.href="http://gears.google.com/?action=install"'."\n";
echo '// -->'."\n";
echo '</script>'."\n";
and it works but I need all the details in the url and the if
statement.
Can anyone shed some light on why the first snippet is not working?
Thanks,
meerkat