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, ...Container Titles + Flash + SWFObject Container Titles + Flash + SWFObject
Previous
 
Next
New Post
6/18/2010 1:33 AM
 
Hi guys,

Ive developed a skinobject for my containers which basically just prints the title of the container to the screen with no formatting. So, Ive built a small flash movie which takes this value as a variable, and prints it in the correct font/colors for my clients sites. It works well.

My current client wished to have their site 100% iphone compatible, which means alternative content for Flash. No problem, havent dont this in a while, but knew its perfectly doable after some reading.

I stumbled across alot of tutorials and articles which reference SWFObject, a javascript which checks for flash, and displays content appropriately.

Anyway, this script needs to be called for each instant explicitly. The javascript/HTML looks like this...

Firstly, here is the link to the script file, and the call to it to assess the object with that id...

<script type="text/javascript" src="/Portals/_default/Containers/Merlo/swfobject.js"></script>
<script type="text/javascript"> swfobject.registerObject("myFlashContent", "8"); </script>

This is the body HTML..

<div>
            <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="100%" height="33" id="myFlashContent">
                <param name="movie" value="/Portals/_default/Containers/Merlo/White Title.swf?thisTitle=<dnn:RTITLE runat="server" id="dnnTITLE2" />" />
                <param name="quality" value="high" />
                <param name="wmode" value="transparent" />
                <!--[if !IE]>-->
                <object type="application/x-shockwave-flash" data="/Portals/_default/Containers/Merlo/White Title.swf?thisTitle=<dnn:LTITLE runat="server" id="dnnTITLE" />" width="100%" height="33" wmode="transparent">
                <!--<![endif]-->
                <span style="color:#FFF; font-family:'Futura', Arial, Helvetica, sans-serif; font-weight: bold; font-size: 34px;"><dnn:TTITLE runat="server" id="dnnTTITLE" /></span>
                <!--[if !IE]>-->
                </object>
                <!--<![endif]-->
            </object>
        </div>

So, at the moment, if I have more than 1 container on the page, then I have 2 instances of the object with the id "myFlashContent", and hence, it doesnt work.

I thought of trying to use the same skinobject I used to pass the title of the module in plan text through to both the JS call, and the object ID - but that threw up some seriously screwey errors.

Anyone else have any suggestions on how to do this?

Thanks!!
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Container Titles + Flash + SWFObject Container Titles + Flash + SWFObject


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