I've inherited a design whose parse file brings in some remote content - from googleapis.com and googlecode.com. The design will be used in both HTTP and HTTPS. Viewing the design in an HTTPS page obviously therefore throws a security warning.
Would people recommend hard-coding the parse file always to request the HTTPS address for these remote files? Or is there a better way of doing this?
Though be aware that testing for a value of "on" for $_SERVER['HTTPS'] is server-specific. If you want to do something similar, just output %globals_server_https% and call your page under both HTTP and HTTPS to see what values are returned.
Tried just using //ajax.googleapis.com/ajax/libs/jquery/1.8.0/jquery.min.js ? The double slash is a common shortcut to indicate the current protocol the page is on now.