Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

need help with https and javascript

Status
Not open for further replies.

mg911

Technical User
Jul 18, 2001
59
US
is there a way to make the following code work across a https - or is there a reason why is won't work - is there a way to make it work -- thanks

<iframe height=&quot;0&quot; width=&quot;0&quot; src=&quot;<script language=&quot;JavaScript&quot; type=&quot;text/javascript&quot;><!--
function beginDownload() {
newlocation = &quot; idl = 1;
if (location.search) { // for NN2
idl = -location.search.indexOf(&quot;idl=n&quot;);
}
if (idl > 0) {
window.location = newlocation;
}
return 1;
}
window.onLoad=beginDownload;
// --></script>
</iframe>
 
You don't do anything special with your script when used on a secure server. You just have to make sure that you put the script on the HTTPS side of your site or explicitly call it from the non-secure side. There's always a better way...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top