View Full Version : Only <text> displayes for me
berkeleygirl
04-21-2008, 03:51 PM
Hi all -
I have installed OL and Tomcat. When I open the "Hello Laszlo" file it displays fine. But if I add a view to it, of course with size and color, the view never displays. Of any of the examples on sites I use, only <text> displays. Is there something I missed?
thanks
b
rcyeager
04-21-2008, 06:32 PM
I don't understand the issue. Do any of the example programs run OK?
If you are trying to create a new program, can you post the source code?
Robert
http://www.qrowd.com
http://www.cooqy.com
berkeleygirl
04-22-2008, 08:00 AM
Thanks Robert - But its just as I said. views do not show up.
<canvas>
<view width="100" height="100" bgcolor="red"/>
<text>Hello World!</text>
<view width="100" height="100" bgcolor="red"/>
</canvas>
If I do this all I see is Hello World! - I do not see 100 x 100 red squares. No matter what I put in the code I only ever see what is in <text> elements. I never see views, I never see canvases.
I am very intrigued by the markup model laszlo uses, but am very frustrated that the simplest thing doesn't even work.
b
kmeixner
04-22-2008, 08:11 AM
The views and text are probably being displayed on top of each other, Try adding a simplelayout and see if it works:
<canvas>
<simplelayout axis="y" />
<view width="100" height="100" bgcolor="red"/>
<text>Hello World!</text>
<view width="100" height="100" bgcolor="red"/>
</canvas>
rcyeager
04-22-2008, 08:16 AM
I needed to see what code you were using so I could try to help.
Given your code, I see only a 100x100 red square in OL 4.0.x in both SWF and DHTML. That is because the last red box overlays everything...the Z-order is done in sequence. If I remove the last box, I see the text on top of a red box.
So, something must be wrong with your setup. What version of OL, OS, Flash, browser, etc. are you using?
Do any of the OL example programs work on your box? On my machine they are at C:\OpenLaszlo4.0.12\Server\lps-4.0.12\examples
Robert
http://www.qrowd.com
http://www.cooqy.com
berkeleygirl
04-22-2008, 04:57 PM
km, rc, Thanks but so far no luck.
I have windows xp sp2. Latest OL : 4.0.12, Flash 9, jdk1.6.0_06. Tomcat is on 8080 and no one else is. Any examples from the site I try show nothing but what is in <text> elements.
km - I had tried the layout object before. I did again but still no dice.
Let me ask this. If I view source what should I see? Something with an object tag for the flash clip? What I see is the laszlo code I wrote. I have tried on ie and firefox.
I am sure something setup-wise is wrong but in reading and rereading installation instructions I can't see anything obvious I am doing wrong.
Thanks for the time
b
rcyeager
04-22-2008, 05:40 PM
You have essentially the same setup as mine. When you view source you will see the LZX source code you wrote.
What happens when you try to run the app in DHTML?
Check to see if any errors are reported in the tomcat error logs and the lps.log in the WEB-INF\lps\work\logs folder.
Maybe try posting the problem here: http://forum.openlaszlo.org/forumdisplay.php?f=3
Also, try posting your problem to the user mailing list: http://www.openlaszlo.org/lists
I've not encountered any installation issues before, so this is something new to me.
Robert
http://www.qrowd.com
http://www.cooqy.com
vBulletin® v3.8.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.