Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Removing "Click to activate" in flash.Removing "Click to activate" in flash.
Previous
 
Next
New Post
12/28/2006 3:39 PM
 

I am sure you have all noticed the annoying "Click to activate and use this control" messages you get on pages with flash, windows media or other embedded objects. Well there is a way around that, using some java script offered by both Adobe (http://www.adobe.com/devnet/activecontent/articles/devletter.html) and Microsoft (http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/overview/activating_activex.asp). Silly that it even exist if there is a way around it, but that is a different subject.

If you go to www.wiredneuron.com/dnn you will see that the flash at the top works without having to click first. Which is exactly what the javascript is supposed to do. However, if you click on any link you will see that the flash does not even load. Even if you click the "Home" link, this happens. Seems that it happens to evey page except for www.wiredneuron.com/dnn.

I am not sure why it would work fine on the main page but not on the rest.

I placed the following into the <head> of the default.aspx located in the dnn root:

 <script src="Scripts/AC_RunActiveContent.js" type="text/javascript"></script>
 <script src="Scripts/AC_ActiveX.js" type="text/javascript"></script>

The scripts were placed in www.wiredneuron.com/dnn/Scripts

The following is the HTML from my skin.html file:

<?xml version="1.0" encoding="iso-8859-1"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
</head>
<body bgcolor="#000000" text="#FFFFFF">
<table width="900" border="0" align="center">
  <tr>
    <td width="900" height="25" valign="top">
      <table width="900" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr>
          <td height="25" background="TOP.jpg"><table width="900" border="0" cellspacing="0" cellpadding="0">
              <tr valign="middle">
                <td width="35" height="25" nowrap="nowrap">&nbsp;</td>
                <td height="25" align="left" nowrap="nowrap">[USER] | [LOGIN]</td>
                <td height="25" align="right" nowrap="nowrap">[CURRENTDATE]</td>
                <td width="35" height="25" nowrap="nowrap">&nbsp;</td>
              </tr>
            </table></td>
        </tr>
        <tr>
          <td>
<div align="center">
    <script type="text/javascript">
  AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0','width','900','height','100','src','<%= SkinPath %>Blue_Synapse2','quality','high','pluginspage','http://www.macromedia.com/go/getflashplayer','movie','<%= SkinPath %>Blue_Synapse2' ); //end AC code
  </script><noscript><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="900" height="100">
    <param name="movie" value="Blue_Synapse2.swf" />
    <param name="quality" value="high" />
    <embed src="Blue_Synapse2.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="900" height="100"></embed>
  </object></noscript>
            </div></td>
        </tr>
        <tr>
          <td height="25" background="btm.jpg"><table width="900" border="0" cellspacing="0" cellpadding="0">
              <tr valign="middle">
                <td width="30">&nbsp;</td>
                <td nowrap="nowrap">[SOLPARTMENU]</td>
              </tr>
            </table></td>
        </tr>
      </table></td>
  </tr>
  <tr>
    <td width="900" valign="top"><div align="center">[BREADCRUMB]</div>
      <div align="center"></div></td>
  </tr>
  <tr>
    <td valign="top"><div align="center">[CONTENTPANE:3]</div></td>
  </tr>
  <tr>
    <td width="704" valign="top"><table width="900" border="0" cellspacing="0" cellpadding="0">
        <tr valign="top">
          <td width="150"><div align="center">[CONTENTPANE:2]</div></td>
          <td width="25"><div align="center"></div></td>
          <td><div align="center">[CONTENTPANE]</div>
            <div align="center"></div></td>
        </tr>
      </table></td>
  </tr>
</table>
<table width="900" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td align="center" bgcolor="#9999CC">&nbsp;</td>
  </tr>
  <tr>
    <td align="center" bgcolor="#0000CC">&nbsp;</td>
  </tr>
  <tr>
    <td align="center" bgcolor="#000066">&nbsp;</td>
  </tr>
</table>
</body>
</html>

Can anyone offer any assistance with this?

 
New Post
12/28/2006 8:14 PM
 
I think your problem has something to do with the url rewriter.
As long as you visit the site directly (http://www.wiredneuron.com/dnn)  the URL in the address bar stays the same.
So you can address relative paths (flash/file.swf) in that case. If you visit a page using the menu the url rewriter will change the address to: http://www.wiredneuron.com/dnn/Home/tabid/36/Default.aspx
The relative paths  will not work since flash would look for the file in http://www.wiredneuron.com/dnn/Home/tabid/36/flash/file.swf.
And there is no flash file there (the same for any other object / link)
You should use <%=skinpath%> for all objects / JS files because it's a path from the websites root.

I this case it's a problem with the javascript not being found I think (put an alert("Javascript") in one of them to test).
You could try changing this:
<script src="/Scripts/AC_RunActiveContent.js" type="text/javascript"></script>
If you used the script folder in the root folder.
An even  better option is to use this technique from John Mitchell's blog because you don't have to change default.aspx and you can use the skinpath folder.
 
New Post
1/2/2007 1:32 PM
 
 

I have a solution in my blog or here.

Salar

 
New Post
1/3/2007 8:43 AM
 
Salar,
That's a nice solution (I normally use an in-place javascript to write the object code)
I don't know what it's like for this solution but my experience with other "generic hacks" (I mean where the whole DOM is being serached) is that they slow down page rendering on the browser for complicated pages.
For example I used a behavior to correct the IE 6 hover bug (on non <A> tags, in this case <LI>)
(See this post)
It worked fine until I used it on a page with a complex tructure, the javascript takes ages to complete, since it checks the whole DOM
 
New Post
1/3/2007 10:07 AM
 

Timo

I appreciate that my solution does require for the whole Dom to be checked. However, any other solutions I have tried has failed. This is the only one that works on any DNN. The solutions posted by Adobe are only for static sites and not for typical content managed sites. Having said that I have not done any more research on this for a few months

Salar

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Removing "Click to activate" in flash.Removing "Click to activate" in flash.


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out