Creator1326
05-13-2009, 01:54 PM
Hello all,
I'm learning OL as I go and have found lots of useful info on these forums but none of the topics seems to have solved the problem of using the HTML tag. My app temporarily located at http://laszlo.jdchs.org, and still pretty rough, renders the called HTML pages great (called from the rounded squares and pill buttons on the right) perfectly in Mac Safari 3, Mac Firefox 2 and Mac Firefox 3. On IE 8 and win Firefox 3 however it appears as the html iframe is under the window element as you can see it glitching through the window when you move the window around. I found the wmode transparent "fix" in other posts but when I put it in it just errors out my app.
It is the developer mode so you can view the source by scrolling the page down and clicking on "view source". I'm sure I have wrong bits, but my #1 issue is that HTML window only half working. I appreciate any help you can provide.
______UPDATE______________________________________ _____________
Still doesn't work on PC browsers at all, not sure why this is. I've looked at a bunch of stuff on this site and can't find anything useful. The HTML tag has a severe bug in OL 4.3. Flash is flash and should render the same on every platform.
Code snip:
<class name="contentPage" extends="window" visible="false" resizable="true">
<html name="htmlview" width="${parent.width - 20}" height="${parent.height - 74}" xoffset="${parent.x + 7}" y="27" visible="false" />
<method name="closebutton">
htmlview.setAttribute('visible','false');
htmlview.setAttribute('src', null);
this.close();
</method>
<button y="2" x="${parent.width - 78}">Close
<handler name="onclick">
parent.closebutton();
</handler>
</button>
</class>
<!-- Content Window, starts off hidden -->
<contentPage name="htmlbrowser" width="750" height="${canvas.height - 50}" x="${((canvas.width/2) - 400)}" y="30">
<method name="a">
this.open();
htmlview.bringToFront();
htmlview.setAttribute('visible','true');
</method>
</contentPage>
It is opened like this:
<view resource="swf-bin/buttons/principals_letter.swf" >
<handler name="onclick" args="sel">
canvas.htmlbrowser.a();
canvas.htmlbrowser.htmlview.setAttribute('src', 'http://www.jdchs.org/laszloresults.lasso?linkid=922');
</handler>
</view>
I'm learning OL as I go and have found lots of useful info on these forums but none of the topics seems to have solved the problem of using the HTML tag. My app temporarily located at http://laszlo.jdchs.org, and still pretty rough, renders the called HTML pages great (called from the rounded squares and pill buttons on the right) perfectly in Mac Safari 3, Mac Firefox 2 and Mac Firefox 3. On IE 8 and win Firefox 3 however it appears as the html iframe is under the window element as you can see it glitching through the window when you move the window around. I found the wmode transparent "fix" in other posts but when I put it in it just errors out my app.
It is the developer mode so you can view the source by scrolling the page down and clicking on "view source". I'm sure I have wrong bits, but my #1 issue is that HTML window only half working. I appreciate any help you can provide.
______UPDATE______________________________________ _____________
Still doesn't work on PC browsers at all, not sure why this is. I've looked at a bunch of stuff on this site and can't find anything useful. The HTML tag has a severe bug in OL 4.3. Flash is flash and should render the same on every platform.
Code snip:
<class name="contentPage" extends="window" visible="false" resizable="true">
<html name="htmlview" width="${parent.width - 20}" height="${parent.height - 74}" xoffset="${parent.x + 7}" y="27" visible="false" />
<method name="closebutton">
htmlview.setAttribute('visible','false');
htmlview.setAttribute('src', null);
this.close();
</method>
<button y="2" x="${parent.width - 78}">Close
<handler name="onclick">
parent.closebutton();
</handler>
</button>
</class>
<!-- Content Window, starts off hidden -->
<contentPage name="htmlbrowser" width="750" height="${canvas.height - 50}" x="${((canvas.width/2) - 400)}" y="30">
<method name="a">
this.open();
htmlview.bringToFront();
htmlview.setAttribute('visible','true');
</method>
</contentPage>
It is opened like this:
<view resource="swf-bin/buttons/principals_letter.swf" >
<handler name="onclick" args="sel">
canvas.htmlbrowser.a();
canvas.htmlbrowser.htmlview.setAttribute('src', 'http://www.jdchs.org/laszloresults.lasso?linkid=922');
</handler>
</view>