[Hidden-tech] looking for javascript help

Michael Muller michael at mullertech.com
Tue Jun 16 12:16:02 EDT 2009


Hey all,

I'm working on a project and have a couple of javascript snippets that work in FF but not IE and I'm pulling my hair out.

Anyone want to meet for an hour and help me suss through it.   You need to really be up on the proclivities of IE and how to path the DOM from within an iFrame to a parent window.


Or... you can help me right here through the mailing list:


<a href="#pran"> <div style="border:1px solid #666666; width:80px;" onClick="parent.thisMovie('studio_loader_embed').reloadClipart();">RELOAD CLIP</div></a>   

<a href="#pran"> <div style="border:1px solid #666666; width:80px;" onClick="parent.thisMovie('studio_loader_embed').showTab(2)">CLIP TAB2</div></a>


I'm not sure it it's the pathing that's at issue, or what.  I've also used "document" instead of "parent" with no luck.

The code above is in an iFrame, calling a script in the parent window:


<script>
function thisMovie(movieName) {
        if (navigator.appName.indexOf("Microsoft") != -1) {
                return document.getElementById[movieName]
        } else {
                return document[movieName]
        }
}
</script>


This in turn pushes through to this code:


<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" 
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" 
width="670" height="550" id="studio_loader">

<param name="allowScriptAccess" value="sameDomain" />
<param name="allowFullScreen" value="false" />
<param name="movie" value="/flash/studio_loader.swf?urlvars=1459,0,2247,10000,090515143414" />
<param name="quality" value="high" />
<param name="bgcolor" value="white" />  
<embed src="/flash/studio_loader.swf?urlvars=1459,0,2247,10000,090515143414"
quality="high" bgcolor="white" width="670" height="550" 
name="studio_loader_embed" align="middle" allowScriptAccess="sameDomain" 
allowFullScreen="false" type="application/x-shockwave-flash" 
pluginspage="http://www.macromedia.com/go/getflashplayer" />

</object>




Anyway, any help would be appreciated.

I'm using IE 7 on XP.

Mik



--------
Michael Muller
office (413) 863-6455
cell (413) 320-5336
skype: michaelBmuller
http://MontagueWebWorks.com

Information is not knowledge
Knowlege is not wisdom

Eschew Obfuscation



Google

More information about the Hidden-discuss mailing list