View Full Version : SOLO Deploy Problem !!! Please help
hardik
02-20-2007, 10:05 AM
Hello all,
I deployed my application under SOLO , with lps-3.3.3
After deploying the application , I am hosting myapp.lzx.html with swfs to mydomain and my application works partially
My login page, checks for valid user and displays pictures thumbs at the bottom, but when I clicked on that, it should show me bigger version of that thumb, but its not showing anything. It displays the thumb correctly, but when I click on it, its give me nothing.
can anybody please help here, am I doing something wrong, please advise me...
your time and help really appreciated,
thanks,
hardik
hardik
02-20-2007, 11:12 AM
just to clear things up, my SOLO application works perfectly under localhost:8080/lps-3.3.3/my-apps/eventl.lzx,
but once I have zip solo-deploy folder and I try to run my application from event.lzx.html, it does not work
do I need to host this application under apache server, please point me in right direction If yes, could somebody please describe the step for it,since I am working under lps-3.3.3/my-apps/ folder.
any help, tips and suggestions appreciated, please correct me If I am doing something wrong.
thanks,
hardik
This is an attempt to nail this down .. since your problem definition is scattered across different threads (with different files, names etc.)..
Follow these steps .. one by one ..
forget about the SOLO deploy zip you have created .. instead, we are going to use SWFObject.js (as below)
.
download SWFObject 1.4 (http://blog.deconcept.com/swfobject/)
.
go to your application *.lzx file and insert proxied="false" in the canvas tag
<canvas width="800" height="800" proxied="false">
and compile .. this should create a file in same location as your application with extension .. <application_name>.lzx.swf
.
copy this *.lzx.swf file into a folder .. let's call it SOLO
.
into SOLO folder copy ..
index.html
<application_name>.lzx.swf
swfobject.js ... this file is in the SWFObject 1.4 download
and your images in sub-folder
OnlineEvents/John Woo/ ... images and adata.xml
.
edit index.html as follows ..
<html>
<head>
<title>My Photos</title>
<!-- SWFObject embed by Geoff Stearns geoff@deconcept.com http://blog.deconcept.com/swfobject/ -->
<script type="text/javascript" src="swfobject.js"></script>
<style type="text/css">
#flashcontent
{
position: absolute;
left: 100px;
top: 100px;
width: 800px;
height: 800px;
margin: 0px;
padding: 0px;
background: #ffffff;
visibility: visible; // corrected from "hidden" to "visible"
display: inline;
z-index: 1;
}
</style>
</head>
<body>
<div id="flashcontent">
This is replaced by the OpenLaszlo Flash content.
</div>
<script type="text/javascript">
var so = new SWFObject("application_name.lzx.swf", "lzapp", "800", "800", "8", "#FFFFFF");
so.write("flashcontent");
</script>
</body>
</html>
.
now place your SOLO folder (with above contents) in either Tomcat or Apache server and launch index.html .. note this does not need to run inside your lps-3.3.3 webapp .. it can run on any server without lps-3.3.3 ..
examples ..
http://localhost:8080/lps-3.3.3/my-apps/SOLO/index.html (tomcat server, lps webapp)
http://localhost:8080/SOLO/index.html (tomcat server, in webapps folder)
http://localhost:80/SOLO/index.html (in apache server, port 80)
.
remember again that tomcat is case sensitive .. so for example this will not work
http://localhost:8080/lps-3.3.3/my-apps/solo/index.html
.
you can also copy the SOLO folder into Apache server htdocs folder and it should deploy as SOLO app (you can change name of SOLO folder).
.
for more information .. read here (http://www.openlaszlo.org/lps/docs/guide/proxied.html) .. throughout ..
and .. in 3.2 .. note requirement for crossdomain.xml under these circumstances ..
If the files originate from the same domain as the application, access is allowed.
If the files do not originate from the same domain as the application, there must be a crossdomain.xml file at the top level of the domain from which they are served.
Let us know if this works .. in SOLO mode.
hardik
02-20-2007, 02:14 PM
hello d~l,
really appreciated your response, I tried the thing , but its not showing anything.
I made one folder inside lps-3.3.3 --> SOLO
than copied swfobject.js,index.html,application-name.lzx file inside it, and try to run from localhost:8080/lps-3.3.3/SOLO/index.html , it just displays, title heading "My Photos" , I edited index.html and copied all code that you gave me, and thats the only code I have it in my index.html file.
Apart from this, I want to mention what I did. I uploaded my application under my ftp website (which is like a live website www.mydomain.com) which contains html pages.
I put it under main Folder --->application-name.lzx,application-name.lzx.swf, and application-name.lzx.html and copied OnlineEvents folder also at the same location
now when I try to access www.mydomain.com/application-name.lzx.html , it shows me everthing file, untill the point where I click my thumbnail , it should show its larger version which I am doing it thru <image> "setSrc" . but its not showing up that thing for some reason.
same thing works fine under localhost.
Am I going to have Apache installed to run my SOLO application , in this case under www.mydomain.com , please advise me and correct me If I am doing anything wrong here.
once again, I really appreciate your respons and help from the begining. You are my hero.
Just this last thing I am stuck at......
thanks for reading this long thread, and I hope its been simple to understand my problem.
Thanks again.
Hardik
I made one folder inside lps-3.3.3 --> SOLO
than copied swfobject.js,index.html,application-name.lzx file inside it, and try to run from localhost:8080/lps-3.3.3/SOLO/index.html , it just displays, title heading "My Photos" , I edited index.html and copied all code that you gave me, and thats the only code I have it in my index.html file.
I want you to confirm that you have copied your application_name.lzx.swf ... not application-name.lzx .. it is only the SOLO compiled Flash movie I'm interested in .. nothing else.
What is the application name, so that we can be more precise?
Apart from this, I want to mention what I did. I uploaded my application under my ftp website (which is like a live website www.mydomain.com) which contains html pages.
I'm not addressing this other stuff for the time being .. get swfobject to work first!
hardik
02-20-2007, 02:28 PM
for now, for my own versioning its final3.lzx , so it is final3.lzx.swf
also, please find attached screenshots of my live domaing, currently I put my application under that ->> www.mydomain.com/final3.lzx.swf
showing step by step process of what I am doing , hope this helps
thanks, for your quick response, really appreciate that
Hardik
Sorry ..
change #flashcontent, visible property to "visible", not "hidden" (I've corrected the above).
....
p.s.
I've looked at your images and you appear to have it working in SOLO mode using the openlaszlo created files .. so I don't think that using swfobject will solve your failure to display image.
hardik
02-20-2007, 03:07 PM
hey d~l,
Thanks very much for your response. Guess what, there was a mistake in my code,
I debug my code under live domain name, and found the problem,
I was setting a wrong path value on thumbnail click event.
and the reason why realized now is becuase under localhost proxied="false" , it worked in that scenario, but in Live domain, I caught up... so, I fixed that and it works fine.
Now, I am going to make it dynamic for each user who logins, I will post you any updates that I would have for sure.
Once again , I am very thankful to you for everything.
thanks, will reply soon..
hardik
vBulletin® v3.8.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.