Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

active content problem in Internet Explorer

active content problem in Internet Explorer

active content problem in Internet Explorer


so im experiencing a problem with active content with a shockwave file. i already solved this problem for flash files, but i cant seem to solve it for shockwave files. i keep getting a popup about activex content on the page in internet explorer.

this is what i have for a code:
<object classid="clsid:166B1BCA-3F9C-11CF-8075-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/director/sw.cab#version=8,5,0,0" width="370" height="330" title="test">
<param name="src" value="images/test-semi.dcr">
<embed src="images/test-semi.dcr" pluginspage="http://www.macromedia.com/shockwave/download/" width="370" height="330"></embed>

what needs to be changed in order to make it work? i already got the "AC_ActiveX.js" and the "AC_RunActiveContent.js" file found on macromedia site....i just dont know exactly what to do.

can someone please help me. highly appreciated!

thx a million!

RE: active content problem in Internet Explorer

You just need to generate <object> and <embed> tags using an external JavaScript file, that's all!

Kenneth Kawamoto

RE: active content problem in Internet Explorer

thank you for your reply.

but im sorry, im not sure what to do. how do i do that? im not well known with javascript? is it possible, if its not too much to ask, that you edit my script to so that it works?

RE: active content problem in Internet Explorer

1. Change your HTML code to:

<script language="JavaScript" type="text/javascript" src="dcr.js"></script>

2. Create a plain text document in the same place as your HTML file resides and name it "dcr.js".

3. Write this JavaScript in dcr.js and save:

var dcr = "";
dcr += "<object classid=\"clsid:166B1BCA-3F9C-11CF-8075-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/director/sw.cab#version=8,5,0,0\" width=\"370\" height=\"330\" title=\"test\">\n";
dcr += "<param name=\"src\" value=\"images/test-semi.dcr\">\n";
dcr += "<embed src=\"images/test-semi.dcr\" pluginspage=\"http://www.macromedia.com/shockwave/download/\" width=\"370\" height=\"330\"></embed>\n";
dcr += "</object>";

Kenneth Kawamoto

RE: active content problem in Internet Explorer

THX a million. you just helped me solve A LOT of problems!!!! if you were here, i'd hug you. *hugs anyways*

thx again!

RE: active content problem in Internet Explorer

hmm ok. now i still have a problem with my flash animation. i have the next script in the HTML file:

<!--url's used in the movie-->
<!--text used in the movie-->
<!-- saved from url=(0013)about:internet -->
<script language="javascript" type="text/javascript" src="dcr3.js">    

then in dcr3.js (dont mind the name) i have the following:

if (AC_FL_RunContent == 0) {
        alert("This page requires AC_RunActiveContent.js. In Flash, run \"Apply Active Content Update\" in the Commands menu to copy AC_RunActiveContent.js to the HTML output folder.");
    } else {
            'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0',
            'width', '760',
            'height', '215',
            'src', 'flash header v2.2',
            'quality', 'high',
            'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
            'align', 'middle',
            'play', 'true',
            'loop', 'true',
            'scale', 'showall',
            'wmode', 'window',
            'devicefont', 'false',
            'id', 'flash header v2.2',
            'bgcolor', '#c8d4e2',
            'name', 'flash header v2.2',
            'menu', 'true',
            'movie', 'flash header v2.2',
            'salign', '
            ); //end AC code

this script, in combination with the <!-- commands is working fine...my flash animations run without allow content problem. but! this line "<!-- saved from url=(0013)about:internet -->" causes my normal images on my website not to open in new windows. (enlarges versions of some images i have)....it does work in firefox, but not in internet explorer...popups dont work.

when i remove the "<!-- saved from url=(0013)about:internet -->" everything works, only then i get this yellow allow content notification border in internet explorer.

what should i do?

the next script didnt work either:
var dcr2 = "";
dcr2 += "<object classid=\"clsid:166B1BCA-3F9C-11CF-8075-444553540000\"

codebase=\"http://download.macromedia.com/pub/shockwave/cabs/director/sw.cab#version=8,5,0,0\" width=\"760\"

height=\"215\" title=\"VisuaWeb.nl\">\n";
dcr2 += "<param name=\"src\" value=\"flash header v2.2.swf\">\n";
dcr2 += "<embed src=\"flash header v2.2.swf\" pluginspage=\"http://www.macromedia.com/shockwave/download/\" width=\"760\"

dcr2 += "</object>";

RE: active content problem in Internet Explorer

<!-- saved from url=(0013)about:internet -->
This tells IE to use internet security zone. Will it work if you put your files in the web server?

As for the second script, you need to change the value of classid, codebase, and pluginspage to the ones for Flash SWF. Currently they are showing the values for Director DCR.

Kenneth Kawamoto

RE: active content problem in Internet Explorer

yes i noticed about the second script part, didnt solve the problem though.

with web server do you mean online?

RE: active content problem in Internet Explorer

ok, i just tried it online on my webserver, and it DOES seem to be working in both firefox and internet explorer!

why does "<!-- saved from url=(0013)about:internet -->" work online and not offline?

thx again!

RE: active content problem in Internet Explorer

WELL! nearly solved all problems now

so i tried a part of my website on my sisters old computer, she has IE 6.0...and went to the page where the shockwave file was on. it said it needed shockwave and started installing it. when installed it restarted the explorer and loaded the shockwave file...at 75% loading or so it gave the next error and shut down (internet explorer)


any idea why that is?

RE: active content problem in Internet Explorer

thanks a lot. i tried that and it worked. then after trying that i retried the one from my website and it did work now.... :S i dont understand why but it may have been a temporary issue and is now fixed. so im happy, everything works.

thx again for your help. i appreciate it.

RE: active content problem in Internet Explorer


I am having similar problems with just simple Java scripts in an html file.

I am trying an ad banner rotating program, with a "style" and "script" defined in the "head" section and a couple of "table" in the "body" section that bring up the images and the captions:

Style script in the head of the page.

.Caption {
font-family: Arial;
font-weight: bold;
color: #123456;

Script in the head of the page.


// (C) 2002 www.CodeLifter.com
// http://www.codelifter.com
// Free for all users, but leave in this header.
var SlideShowSpeed = 3000;

var CrossFadeDuration = 3;

var Picture = new Array(); // don't change this
var Caption = new Array(); // don't change this

Picture[1] = 'Image001.jpg';
Picture[2] = 'Image002.jpg';
Picture[3] = 'Image003.jpg';

Caption[1] = "This is the first caption.";
Caption[2] = "This is the second caption.";
Caption[3] = "This is the third caption.";

var tss;
var iss;
var jss = 1;
var pss = Picture.length-1;

var preLoad = new Array();
for (iss = 1; iss < pss+1; iss++){
preLoad[iss] = new Image();
preLoad[iss].src = Picture[iss];}

function runSlideShow(){
if (document.all){
document.images.PictureBox.src = preLoad[jss].src;
if (document.getElementById) document.getElementById("CaptionBox").innerHTML= Caption[jss];
if (document.all) document.images.PictureBox.filters.blendTrans.Play();
jss = jss + 1;
if (jss > (pss)) jss=1;
tss = setTimeout('runSlideShow()', SlideShowSpeed);


Tables in "body"

<body onload=runSlideShow() bgcolor=#000000>
<table border=0 cellpadding=0 cellspacing=0>
<td width=350 height=280>
<img src=Image001.jpg name=PictureBox width=350 height=280>
<td id=CaptionBox class=Caption align=center bgcolor=#fedcba>
This is the default caption.

How do I get IE to stop the popup and not ask the user to allow the blocked content? Please help!


Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close