Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

IE6 is blocking javascript

Status
Not open for further replies.

jwit

Technical User
Mar 1, 2002
4
GB
I have javascript in my HTML page; when I preview in IE6 I get an error in the Info bar - 'IE has restricted... active content'. If I remove all the javascript it's fine. I've tried changing many settings to overcome this - no joy. I'm running WinXP Home with SP2, Dreamweaver4, Panda antivirus. Turning off the AV doesn't help; present IE settings -
IE scripting, Scripting of Java applets, Allow scripting of webbrowser control; downloads - automatic prompting, ActiveX controls & plug-ins, all = enabled;

Use pop-up blocker = disabled; Microsft VM changed from high to med safety.

HKEY_LOCAL_MACHINE\Software\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_LOCALMACHINE_LOCKDOWN - Iexplore.exe value = 0 (changed from 1); same for Explore.exe.

Thanks.
 
Possibly the javascript you are using is a little outdated (DW4)
what are you trying to do with it, can we see some code?

(hint- try installing something like Firebird- that way you can double test your pages and see if it's an IE problem or a code problem)

----------------------------------------
Sometimes, when my code just won't behave, I take it outside and make it listen to britney spears music, and when it comes back it's really well behaved. I wonder if it's suffering from post tramatic stress syndrome now..
 
I downloaded Firefox (change of name!) and my code works fine there (except for a couple of pages that jump a few pixels to the left which they don't do in IE6) So it's obviously an IE issue. I found another page that uses the same functions as I have ( - it uses the MM_preloadImages, MM_swapImgRestore(), MM_findObj(n, d), MM_swapImage()

The only fiunction I have that it doesn't is:
function MM_reloadPage(init) { //reloads the window if Nav4 resized
if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}

MM_reloadPage(true);

These functions are used in the following lines of code:
<p><a href="plc_home.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Home','','Images/btn_home_over.gif',1)"><img src="Images/btn_home_up.gif" width="95" height="25" name="Home" border="0"></a></p>
<p><a href="plc_consultations.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Consultations','','Images/btn_consultations_over.gif',1)"><img src="Images/btn_consultations_up.gif" width="95" height="25" name="Consultations" border="0"></a></p>
<p><a href="plc_courses.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Courses','','Images/btn_courses_over.gif',1)"><img src="Images/btn_courses_up.gif" width="95" height="25" name="Courses" border="0"></a></p>
<p><a href="plc_events.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Events','','Images/btn_events_over.gif',1)"><img src="Images/btn_events_up.gif" width="95" height="25" name="Events" border="0"></a></p>

Thanks
 
I am expreiencing the same javascript problem (a rollover or a simple image preload) with any new content that I am creating since the recent SP2 update, but I am using Dreamweaver MX 2004 and also tested MX as well. Any previuos javascript content I cretaed which is currently online does not diplay this warning message.

??
 
Yes, I forgot to say that the page downloaded from the net with code the same as mine doesn't show the error message in IE. But pages in build on my hard drive do. I suppose that's encouraging! I was impressed by how easy Firefox was to install & use; with all IE's security problems and now the overweening attempts to deal with those, I think Firefox will be my choice from now on - thanks DaRNCat!
 
Sounds like SP2 is messing things up. Don't ask me how- it's a microsoft programme, enough said!

I love Firefox- even more than opera, which used to be my browser of choice
Are the pages you are trying to veiw, previews from local, or have you put them live? If they are previews, then I'd definatly say it's a microsoft problem, if it's live, then check the source of the live code and make sure IE/ microsoft hasn't added any nasties to it.

----------------------------------------
Sometimes, when my code just won't behave, I take it outside and make it listen to britney spears music, and when it comes back it's really well behaved. I wonder if it's suffering from post tramatic stress syndrome now..
 
Yes, the problem is only with previewing from local; that, and Thalab's experience above, would indicate that all will be well when it goes live - let's hope so! Thanks for all the input.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top