Forum Moderators: open
I'm originally a 3D graphics artist and haven't done any web-design since a couple of years so this problem is something new to me.
Is there anything I can do to make my script IE friendly? How would you guys handle this situation? I really don't want to annoy IE users who don't know how to turn off this security warning on their side.
I'm due to finish the site till this tuesday so any quick advises would be much appreciated.
The script:
/* -------------------------------------------------------------------
* Expandable tabs
* -------------------------------------------------------------------
*/
var theTabs = Array('calendar', 'categories', 'archives', 'links', 'feeds', 'services');
// Expands a tab on user click
// tabID : the base ID of the tab DIVs
function expand_tab(tabID) {
var argv = expand_tab.arguments;
var argc = expand_tab.arguments.length;
if (document.getElementById) {
theTabOn = document.getElementById(tabID + 'On');
theTabOff = document.getElementById(tabID + 'Off');
theContent = document.getElementById(tabID + 'Content');
theTabOn.style.display = 'none';
theTabOff.style.display = 'block';
theContent.style.display = 'block';
}
}
// Collapses a tab on user click
// tabId : the base ID of the tab DIVs
function collapse_tab(tabID) {
var argv = collapse_tab.arguments;
var argc = collapse_tab.arguments.length;
if (document.getElementById) {
theTabOn = document.getElementById(tabID + 'On');
theTabOff = document.getElementById(tabID + 'Off');
theContent = document.getElementById(tabID + 'Content');
theTabOn.style.display = 'block';
theTabOff.style.display = 'none';
theContent.style.display = 'none';
}
}
The warning message (a yellow bar on the top of the site) says that IE has restricted the site from showing active content that could access my computer. You have to click it and click on Allow blocked content... to turn your scripts on.
I noticed that the message appears even if the document only contains <script></script> tags and nothing more.
Apparently this is the default security status for many IE users today (including me, my client and several other new computers I've tested it on). I assume it came with WinXP SP2 or something.
Has IE declared war on JavaScript in general or am I just doing something wrong?
Is there any way how to let the latest versions of IE to accept simple JS with the default security settings turned on, ie. is there any way how to "legalise" my script for IE?