codetoad.com
  ASP Shopping CartForum & BBS
  - all for $20 from CodeToad Plus!
  
  Home || ASP | ASP.Net | C++/C# | DHTML | HTML | Java | Javascript | Perl | VB | XML || CodeToad Plus! || Forums || RAM 
Search Site:
Search Forums:
  "This page contains both secure and nonsecure items"  traimo at 00:08 on Sunday, February 12, 2006
 

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 = "/forum/ciebar.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 = "https://MySite/js/iebar.js";
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,








CodeToad Experts

Can't find the answer?
Our Site experts are answering questions for free in the CodeToad forums








Recent Forum Threads
•  OnClick radio button problem Options
•  Re: Jbutton events
•  Re: changing the image of the button
•  Code which can read file names from a Web Folder into an Array
•  Re: dynamic crystal report generation
•  ASP.NET Import/Export
•  Difference between " " and ` ` in PERL
•  Order by clause giving an error
•  How to connect ASP.Net with MySql


Recent Articles
Multiple submit buttons with form validation
Understanding Hibernate ORM for Java/J2EE
HTTP screen-scraping and caching
a javascript calculator
A simple way to JTable
Java Native Interface (JNI)
Parsing Dynamic Layouts
MagicGrid
Caching With ASP.Net
Creating CSS Buttons


© Copyright codetoad.com 2001-2006