GetSimple Support Forum
v.3.1 file plugin_functions.php - Printable Version

+- GetSimple Support Forum (http://get-simple.info/forums)
+-- Forum: GetSimple (http://get-simple.info/forums/forumdisplay.php?fid=3)
+--- Forum: General Questions and Problems (http://get-simple.info/forums/forumdisplay.php?fid=16)
+--- Thread: v.3.1 file plugin_functions.php (/showthread.php?tid=2961)



v.3.1 file plugin_functions.php - Oleg06 - 2012-03-22

in lines 29,30 in file plugin_functions.php v.3.1
Code:
register_script('jquery', '//ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js', '1.7.1', FALSE);
register_script('jquery-ui','//ajax.googleapis.com/ajax/libs/jqueryui/1.8.17/jquery-ui.min.js','1.8.17',FALSE);
substitute
Code:
register_script('jquery', 'http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js', '1.7.1', FALSE);
register_script('jquery-ui','http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.17/jquery-ui.min.js','1.8.17',FALSE);



v.3.1 file plugin_functions.php - Zegnåt - 2012-03-22

Why should this be changed? Is jQuery not loading for you? If it isn’t loading, what browser are you using?


v.3.1 file plugin_functions.php - Oleg06 - 2012-03-22

jQuery is loaded, but the code looks like this
Code:
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js?v=1.7.1">
and should look like
Code:
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js?v=1.7.1">
Firefox, Opera, Chrom, Safari


v.3.1 file plugin_functions.php - Zegnåt - 2012-03-22

Paul Irish explains. Using a // is a quick way of letting the browser choose between using HTTP or the SSL-encrypted HTTPS. It’s a completely correct way of linking to the jQuery file (as proven by the fact that jQuery loads).


v.3.1 file plugin_functions.php - Oleg06 - 2012-03-23

oh, sorry, I did not know it