I have a script that I downloaded that corrects PNG transparency in Internet Explorer 6.
Well I'm dabbling in a bit of cross window scripting and I am having some trouble calling on a function..
Here's an XML layout of how my page is structured
<window>
<script>
correctPNG();
</script>
<iframe>
<script>
create popup...
</script>
<popup>
<frameset>
<frame1 />
<frame2 />
<frame3>
PNG images
</frame3>
</frameset>
</popup>
</iframe>
</window>
I'm trying to call on the function in the top most window, correctPNG, from the thrid frame inside of the popup window...
I've tried the following:
<body onload='top.opener.top.correctPNG();'>
AND
All of the content in the pop-up window is written dynamically using Javascript, I also tried adding JavaScript that way:
msg_parts.document.write('<script language=\'javascript\' type=\'text/javascript\'>\n');
msg_parts.document.write('window.attachEvent(\'onl oad\', top.opener.top.correctPNG)\n');
msg_parts.document.write('</');
msg_parts.document.write('script>\n');
This was output from PHP, which is why the newlines were escaped... \\n
This is how the top most window calls on the function.. which works.. how can I call it in the frameset?? So far neither method has come up with JavaScript errors.. which is strange.
Thanks in advance!
: )
Rich
:::::::::::::::::::::::::::::::::
Smiling Souls
http://www.smilingsouls.net
:::::::::::::::::::::::::::::::::