NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Website Development Discussion Forums > Web Design Discussion
Reload this Page javascript warning?

Web Design Discussion Discussion of web design techniques, advice, browser issues, software, design firms.

Advanced Search
9 members in live chat ~  
NamePros Design Contests NamePros Design Contests
Forum Sponsorship
Join in on the FUN! You can start an affordable design contest and pick from entries talented members submit or you can enter a design contest for a chance to win CASH PRIZES! What are you waiting for? Get started in the fun TODAY! - Banners, Logos, Mascots, and MORE! (Please READ the design Contest section rules Prior to starting or entering a contest)



Reply
 
LinkBack Thread Tools
Old 03-06-2009, 06:31 AM THREAD STARTER               #1 (permalink)
New Member
Join Date: Nov 2008
Posts: 15
therise03 is an unknown quantity at this point
 



Question javascript warning?


Why is it that sometimes when your using javascript and internet explorer when you test your code or view the page in a browser, a small yellow bar goes across the top of the screen saying...

"to help protect your security, IE has restricted this file from showing active content that could access your computer. click here for options"

?????

Here is the code I am using which is a suckertree menu javascript put before the end of the </head> tag.



[I]<script type="text/javascript">

var menuids=["treemenu1"]

function buildsubmenus_horizontal(){
for (var i=0; i<menuids.length; i++){
var ultags=document.getElementById(menuids[i]).getElementsByTagName("ul")
for (var t=0; t<ultags.length; t++){
if (ultags[t].parentNode.parentNode.id==menuids){
ultags[t].style.top=ultags[t].parentNode.offsetHeight+"px"
ultags[t].parentNode.getElementsByTagName("a")[0].className="mainfoldericon"
}
else{
ultags[t].style.left=ultags[t-1].getElementsByTagName("a")[0].offsetWidth+"px"
ultags[t].parentNode.getElementsByTagName("a")[0].className="subfoldericon"
}
ultags[t].parentNode.onmouseover=function(){
this.getElementsByTagName("ul")[0].style.visibility="visible"
}
ultags[t].parentNode.onmouseout=function(){
this.getElementsByTagName("ul")[0].style.visibility="hidden"
}
}
}
}

if (window.addEventListener)
window.addEventListener("load", buildsubmenus_horizontal, false)
else if (window.attachEvent)
window.attachEvent("onload", buildsubmenus_horizontal)
</script>




Why is it also when looking at web pages with the same type of menu's or javascript being used, sometime IE does NOT show this error?
????: NamePros.com http://www.namepros.com/web-design-discussion/564916-javascript-warning.html

the mysteries of javascript and IE
therise03 is offline   Reply With Quote
Old 03-06-2009, 08:32 AM   #2 (permalink)
NamePros Expert
Join Date: Oct 2004
Location: South Carolina
Posts: 5,043
CrazyTech has a reputation beyond reputeCrazyTech has a reputation beyond reputeCrazyTech has a reputation beyond reputeCrazyTech has a reputation beyond reputeCrazyTech has a reputation beyond reputeCrazyTech has a reputation beyond reputeCrazyTech has a reputation beyond reputeCrazyTech has a reputation beyond reputeCrazyTech has a reputation beyond reputeCrazyTech has a reputation beyond reputeCrazyTech has a reputation beyond repute
 


Help The Homeless - Holiday 2009 Help The Homeless - Holiday 2009 Help The Homeless - Holiday 2009 Help The Homeless - Holiday 2009
I believe it has to do with IE not liking Javascript. There may be a bug issue there at work.
CrazyTech is offline   Reply With Quote
Old 03-06-2009, 09:21 PM   #3 (permalink)
DNOA Member
Join Date: May 2004
Posts: 5,040
mholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant future
 


Autism Marrow Donor Program 9/11/01 :: Never Forget Multiple Sclerosis Adoption Alzheimer's Lou Gehrig's Disease (ALS)
IE gives me that error just by adding the jQuery library to my webpage without writing any actual JS that uses it!
mholt is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


 
All times are GMT -7. The time now is 07:54 PM.

Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger