Hello,
OK, here is my problem. I have written a custom IE toolbar that calls some javascript functions and these functions are in a .js file. First I tried this:
var newscript = document.createElement("script");
newscript.type = "text/javascript";
newscript.src = "c:\\iebar.js";
document.body.appendChild(newscript);
Test();
However, this triggers a popup warning from IE saying, "This page contains both secure and nonsecure items". After doing some research, I realized that I was getting this warning only on HTTPS pages. So, then I tried this:
var newscript = document.createElement("script");
newscript.type = "text/javascript";
newscript.src = "document.body.appendChild(newscript);
Test();
The first time I click on a toolbar button I get an error saying, "Object Expected". However, if I click the same IE toolbar button again it works. It only errors out the first time. It is like the first time the .js file is not loaded. Does anyone have any suggestion?
Thank you,
OK, here is my problem. I have written a custom IE toolbar that calls some javascript functions and these functions are in a .js file. First I tried this:
var newscript = document.createElement("script");
newscript.type = "text/javascript";
newscript.src = "c:\\iebar.js";
document.body.appendChild(newscript);
Test();
However, this triggers a popup warning from IE saying, "This page contains both secure and nonsecure items". After doing some research, I realized that I was getting this warning only on HTTPS pages. So, then I tried this:
var newscript = document.createElement("script");
newscript.type = "text/javascript";
newscript.src = "document.body.appendChild(newscript);
Test();
The first time I click on a toolbar button I get an error saying, "Object Expected". However, if I click the same IE toolbar button again it works. It only errors out the first time. It is like the first time the .js file is not loaded. Does anyone have any suggestion?
Thank you,