• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 8300
  • Last Modified:

Press Spacebar or Enter to activate and use this control

Is there a way to keep my user from having to deal with the "warning" that comes up when they encounter a swf file. It interrupts the experience and unless you know that it's no big deal, your prone to think it's a problem.

Is there a way around it or is that just part of the Windows environment?
0
brucegust
Asked:
brucegust
  • 6
  • 4
1 Solution
 
Ramy_atefCommented:
To fix the problem, please follow these steps:

1) Just below the last <object> in your HTML page, insert the following Javascript:

<script type="text/javascript" src="ieupdate.js"></script>

2) Open a new document in Notepad or your HTML editor, and copy & paste the following content into it:

theObjects = document.getElementsByTagName("object");
for (var i = 0; i < theObjects.length; i++) {
theObjects[i].outerHTML = theObjects[i].outerHTML;
}

3) Save this file as ieupdate.js

4) Upload both files to your webserver, and the problem should be solved.

0
 
brucegustPHP DeveloperAuthor Commented:
Heres' what I did:

<OBJECT id="roppage" height="715" width="800" classid="clsid: D27CDB6E-AE6D-11cf-96B8-444553540000">
      <script type="text/javascript" src="../ieupdate.js"></script>
      <embed src="Birthday.swf" width="800" height="715"
      Loop=falseQuality=high" bgcolor="#EFD6D2"
      type="application/x-shockwave-flash"> </embed>
      </OBJECT>

I've got the "ieupdate.js" file uploaded, but there's no change in the performance of the page.

What am I missing?
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

 
Ramy_atefCommented:
NO.. u don't do it like that :)
it should be like this

<OBJECT id="roppage" height="715" width="800" classid="clsid: D27CDB6E-AE6D-11cf-96B8-444553540000">
     <embed src="Birthday.swf" width="800" height="715"
     Loop=falseQuality=high" bgcolor="#EFD6D2"
     type="application/x-shockwave-flash"> </embed>
     </OBJECT>
<script type="text/javascript" src="../ieupdate.js"></script>
0
 
brucegustPHP DeveloperAuthor Commented:
Still ain't working...

We're close, but something's still awry...
0
 
Ramy_atefCommented:
Hi,
I've noticed that u wrote
<script type="text/javascript" src="../ieupdate.js">

are you sure that the ieupdate.js are there in the parent folder of this html ?
0
 
brucegustPHP DeveloperAuthor Commented:
Yep, and just to be sure I just did a quick test by putting the js file in the same directory, then altering the default page to refer to it as opposed to the file in the home directory.

Same thing... it's not working.

My ieupdate.js file looks like this:

theObjects = document.getElementsByTagName("object");
for (var i = 0; i < theObjects.length; i++) {
theObjects[i].outerHTML = theObjects[i].outerHTML;
}

Do I need a header or something like that to preface the code?
0
 
Ramy_atefCommented:
would u send me the swf, the html please
0
 
brucegustPHP DeveloperAuthor Commented:
<%@ Language=VBScript %>

<%

set DBConn = Server.CreateObject("ADODB.Connection")
DBConn.Open session("dbConn_ConnectionString")
set rsCustomer = Server.CreateObject("ADODB.Recordset")
sql = "select TOP 6 * from PerfectPictures where List = 'Birthday' AND Display='Landscape'"
rsCustomer.open sql,dbconn,3,3

set conn=nothing

%>

<html>
<head>
<title>The Perfect Party Birthday Party Page</title>
<link rel="stylesheet" type="text/css" href="../style.css">
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
function formHandler(theSel){
  var URL = theSel.value;
window.location.href = URL;
}
// End -->
</SCRIPT>

<SCRIPT LANGUAGE="JavaScript">

function popItUp() {
    var newWindow = open("Gallery.asp", "secondWindow", "scrollbars, width=350,height=250");
}

</SCRIPT>

</head>

<body background="../Images/swirlbackground.jpg">

<table width=100% border="0" cellspacing="0" cellpadding="0" align="center" height=100%>
<tr>
<td colspan="3">
<IMG SRC="../Images/spacer.gif" height="25">
</td>
</tr>
<tr>
<td>
<IMG SRC="../Images/spacer.gif">
</td>
<td valign="top" align="center" width="800">
      <table border="0" align="center">
      <tr>
      <td align="center">
      <OBJECT id="roppage" height="715" width="800" classid="clsid: D27CDB6E-AE6D-11cf-96B8-444553540000">
      <embed src="Birthday.swf" width="800" height="715"
      Loop=falseQuality=high" bgcolor="#EFD6D2"
      type="application/x-shockwave-flash"> </embed>
      </OBJECT>
      <script type="text/javascript" src="ieupdate.js"></script>
      </td>
      </tr>
      </table>
</td>
<td>
<IMG SRC="../Images/spacer.gif">
</td>
</tr>
<tr>
<td>
<IMG SRC="../Images/spacer.gif">
</td>
<td width="800">
      <table>
      <tr>
      <td>
      Parties should be full of fun, not stress.
      <P>
      Allow us to take care of every detail for your next event. Our custom Birthday Parties are nothing short of sensational.
      <P>
      <b>Catering...</b><BR>
      Our full service planning allows you to enjoy your event to the fullest. Careful consideration is given to both taste and             presentation when choosing a caterer for your event.
      <P>
      <b>Creative Detail...</b><BR>
      Finishing design touches create a special flare for your event.
      <P>
      <b>Venue Selection...</b><BR>
      Indoors or out, your space will be uniquely you.
      </td>
      <td valign="top" width="250" align="center">
            <table align="center" width="250">
            <tr>
            <%
            ct=0
            Do Until RSCustomer.EOF
            %>
            <td align="center" valign="center">
            <% if RSCustomer("Display") = "Landscape" then
            width = "100"
            height = "71"
            else
            width = "71"
            height = "109"
            end if
            %>
            <A HREF="../Images/Photos/<%=RSCustomer("URL") %>" target="_blank">
            <IMG SRC="../Images/Photos/<%=RSCustomer("URL") %>" width="<%=width %>" height="<%=height %>" border="0">
            </td>
            <%
            ct = ct+1
            if ct >= 2 then
            ct = 0
            %>
            </tr>
            <tr>
            <%
            end if
            RSCustomer.MoveNext
               Loop
                %>
            </tr>
            <tr>
            <td colspan="2" align="right" class="Menu">
            Click <a href="#" title="Gallery" onclick="popItUp();return false" class="Menu">here</a> to view more photos...&nbsp&nbsp&nbsp&nbsp
            </td>
            </tr>
            </table>
      </td>
      </tr>
      </table>
</td>
<td>
<IMG SRC="../Images/spacer.gif">
</td>
</tr>

      
</table>
            

</body>
0
 
Ramy_atefCommented:
things looks good to me ..

mmm here are an automatic way to do it from flash itself..

http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=7c29e252

you won't need to write anything yourself..

0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

  • 6
  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now