sorttable bug: https-secure-content

The javascript:void(0) trick for deferring script load throws
an error if used on a secure HTTPS page in IE, because IE
views void(0) as being an insecure URL and so complains about
the page containing a mix of secure and insecure content. Work
out the best way to trigger something on page load (investigate
how jQuery does it, among others) and change the script to do
it that way instead; the current way’s rather crufty.

sil: see
http://blog.outofhanwell.com/2006/06/27/using-windowonload-over-https/
for an update.

sil: Suggestion from Hugh Duggan: remove the line

document.write(”<script id=__ie_onload defer src=javascript:void(0)><\/script>”);

and replace it with

var dummy = (location.protocol == “https:”) ? ”//:” : “javascript:void(0)”;
document.write(”<script id=__ie_onload defer src=’” + dummy + ”’><\/script>”);

This will be properly fixed in sorttable v3 when it’s finished (because it doesn’t
use this method at all to do onload) but until then this should be a workaround.

Back to the sorttable bug list

Email me when this bug gets updated: · privacy · powered by ChangeDetection