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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

active content problem in Internet Explorer

Status
Not open for further replies.

rocketguns

Technical User
May 8, 2006
8
NL
hello,

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:
"<center>
<object classid="clsid:166B1BCA-3F9C-11CF-8075-444553540000" codebase=" width="370" height="330" title="test">
<param name="src" value="images/test-semi.dcr">
<embed src="images/test-semi.dcr" pluginspage=" width="370" height="330"></embed>
</object>
</center>"

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!
RocketGuns
 
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?
 
1. Change your HTML code to:
[tt]
<center>
<script language="JavaScript" type="text/javascript" src="dcr.js"></script>
</center>
[/tt]

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:
[tt]
var dcr = "";
dcr += "<object classid=\"clsid:166B1BCA-3F9C-11CF-8075-444553540000\" codebase=\" 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=\" width=\"370\" height=\"330\"></embed>\n";
dcr += "</object>";
document.write(dcr);
document.close();
[/tt]

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

thx again!
 
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">
</script>

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 {
AC_FL_RunContent(
'codebase', ' 'width', '760',
'height', '215',
'src', 'flash header v2.2',
'quality', 'high',
'pluginspage', ' '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',
'allowScriptAccess','sameDomain',
'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=\" 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=\" width=\"760\"

height=\"215\"></embed>\n";
dcr2 += "</object>";
document.write(dcr2);
document.close();
 
<!-- 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
 
yes i noticed about the second script part, didnt solve the problem though.

with web server do you mean online?
 
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!
 
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?
 
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.
 
Hi,

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.
//-->

<style>
.Caption {
font-family: Arial;
font-weight: bold;
color: #123456;
}
</style>

===================================
<!--
Script in the head of the page.
//-->

<script>

// (C) 2002 // // 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.style.filter="blendTrans(duration=2)";
document.images.PictureBox.style.filter="blendTrans(duration=CrossFadeDuration)";
document.images.PictureBox.filters.blendTrans.Apply();}
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);
}

</script>

===================================
<!--
Tables in "body"
//-->

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

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

Thanks,
Phil
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top