PDA

View Full Version : Problems running lzx


adamap
01-15-2004, 11:04 PM
Hello Everyone,
It is late here, so there is a good chance I am just doing something very stupid, but here goes.


I have installed 2.0 DE

I created a very simple .lzx (in fact just used one of the tutorial ones to make sure things worked or didnt work).

I created a container and copied the web inf files that the deployment list said to copy over.

I place the .lzx in the newly formed container.

I kick the server and navigate to the .lzx and I get a javascript error. Everytime.

If I run a script debugger It seems to freeze on the lzembed line.

If I move the lzx to the supplied app container, it works fine.


I hope this made sense, if anyone has any idea why in my own app-cont I keep getting javascript errors I would be very interested in hearing about it.

I am really liking this laszlo technology and want to move forward ;)


Thank you.

antun
01-16-2004, 09:43 AM
Hi adamap

If you run the app with the querystring:

?lzt=html-object

Do you still get the same error? If not, could you let me know what browser/OS you're on?

Thanks,

Antun

adamap
01-16-2004, 01:47 PM
If I add the lzt=html-object query it does not give me the error.


Now in the documentation and a few of the examples I saw the lzt was called without requiring that? Is it something in my install or did I misunderstand something?

antun
01-16-2004, 01:54 PM
The lzt=html-object request type means that the server will return an HTML page with <object> and <embed> tags hard-coded into it. By default, LPS 2.0p doesn't do this; instead it returns a browser javascript that writes out the object and embed tags after doing some browsersniffing.

Since you got a javascript error, it means this javascript is breaking. Could you tell me what OS/Browser version you're seeing this problem on?

Thanks,

Antun

adamap
01-16-2004, 02:21 PM
Sorry, meant to put that in before.

IE 6.0 service pack 1

antun
01-16-2004, 02:39 PM
Thanks.

I wasn't able to replicate this in an installation of IE6 SP1, so my guess is that the JavaScript is not what's breaking it.

Going back to your first post, I see that you said you created your own webapp, copied the WEB-INF folder to that.

What's the name of your webapp folder?

WithoutUsing lzt=html-object querystring, could you hit a Laszlo app in your browser and have a look at the source of the returned HTML page? In the <head>, there should be something like:


<script type="text/javascript" language="JavaScript" src="/lps-2.0p/includes/embed.js"></script>


Could you tell me what yours says? It should match the path to your new webapp.

Thanks for your patience!

-Antun

adamap
01-16-2004, 11:37 PM
Well, after a little digging, I found that the problem was the lzEmbed call.


Just copying over the web-inf directory wasn't enough, I had to copy over the includes directory as well.

Once I did this it worked like a charm every time. The only problem is that now it wants to put the footer on. So I had to copy over the assets file as well.

It appears to be working great now, sorry for the hassle, I was just unaware of the includes directory having to come over. Unless it isn't meant to have to come over in which case something is still amiss.


Thanks for the help, this thing looks very cool, can't wait to push it's limits ;)

Enjoy!