Code Newbie
News     Forums     Search     Members     Sign Up    

My Code Newbie
Username

Password

Articles/Snippets
ASP Classic
ASP.NET
C
C#
C++
HTML / CSS
Java
Javascript
Linux / BSD
Perl
PHP
Python
Ruby
SQL
VB 6
VB.NET

C.N. Friends
  Planet Rome

Link to Us!
Code Newbie
  Code Newbie
    forums
Old 04-04-2005, 11:06 AM   #1 (permalink)
IGC
Registered User
 
Join Date: Apr 2005
Posts: 2
IGC is on a distinguished road
ActiveX warning problem

I've been doing webpages for some time now, but never got too much into Javascripting, I'm doing a webpage now that uses a couple of simple functions to toggle images and displays.

The code of one of the functions is the following:

function toggle(e) {
targetid = e.id + "d";
targetid2 = e.id + "i";
target = document.all(targetid);
target2 = document.all(targetid2);
if (target.style.display == "none")
{
target.style.display = "";
target2.src="img/visible.jpg";
}
else
{
target.style.display = "none";
target2.src="img/hidden.jpg";
}
}

As you can see it's pretty simple. We have an object (text, img, td.. whatever) with an id, and when pressed, it changes the id+d display attribute to none or null and changes the images of the id+i image.

The script works fine, but the question is regarding to using it under IE, everytime I load the page I get this annoying ACTIVE X warning saying that some contents may be insecure... and I don't know why, since my script doesn't do anything extraordinary.

Even if I just have the link to the .js file without upload the .js file, it will give me the error just because I'm declaring a javascript function, even if I don't use it.

How can I get rid of the warning. I've been to this page that also declares a function, much more complex than mine <script src="../../jslibs/locvar.js" type="text/javascript" language="javascript1.2"></script> and I don't get the warning. Why ???

Any help would be greatly appreciated.

If you need more info I could comment a little bit more and give more specifics or links to the actual pages.

Thank you.
IGC is offline   Reply With Quote
Old 04-04-2005, 11:31 AM   #2 (permalink)
IGC
Registered User
 
Join Date: Apr 2005
Posts: 2
IGC is on a distinguished road
Nevermind, I'm a stupid moron.

it gave me the error bc i was loading the page from my harddrive, once I uploaded and tried it from the server it didn't complain anymore.

IGC
IGC is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Hashing problem jodders Standard C, C++ 1 02-09-2005 01:51 PM
Problem Assignment (Urgent help req.) Boltress Standard C, C++ 0 01-12-2005 07:59 AM
Help debugging a power problem Belisarius Lounge 0 10-25-2003 04:44 PM
mysql auto_increment warning gwartheg PHP 1 06-11-2003 01:25 PM
cgi script Henry PHP 25 12-30-2002 06:54 AM


All times are GMT -8. The time now is 08:50 AM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0 RC8





Copyright © 2000-2008, Milano Interactive
Web Hosting provided by Portal 360 Web Hosting