View Full Version : laszlo in client browser
gargidas15
04-10-2009, 08:55 AM
I am developing in open laszlo 4.2.0. when i'm compiling my laszlo application in swf8 and then deploying it in SOLO mode to make flash the preview displaying to me is very small regarding my original application. And then when i'm embedding it with HTML it only tooks small then half of the client's browser. Can't I make laszlo application to occupy the whole browser area. Please help me in this regard. Thanks in advance
choose.ram86
04-17-2009, 12:32 AM
Hi every1,
I have one simple login application which is developed in JAVA(Servlet) and Html.
Now i want to convert into JAVA(Servlet and LZX).
I developed the LZX file but dont know how to interact with JAVA(Servlet). Can any1 help me in integrating..
-------------------------Login.lzx-------------
<?xml version="1.0" encoding="UTF-8" ?>
<canvas debug="true">
<include href="rpc/ajax.lzx" />
<simplelayout inset="100" />
<view align="center">
<simplelayout axis="y" spacing="10" />
<view>
<simplelayout axis="x" />
<view>
<text>Enter the name :</text>
</view>
<view>
<edittext id ="userName" name ="userName"></edittext>
</view>
</view>
<view>
<simplelayout axis="x" />
<view>
<text>Enter the password :</text>
</view>
<view>
<edittext id = "passWord" name ="passWord" ></edittext>
</view>
</view>
<view>
<button align="center" onclick="ValidateLogin(userName.text,passWord.text)" >Submit
</button>
</view>
</view>
</canvas>
-------------------------- SampleServlet.java----------
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
/**
* Servlet implementation class for Servlet: CustomerServlet
*
*/
public class CustomerServlet extends javax.servlet.http.HttpServlet implements javax.servlet.Servlet {
/* (non-Java-doc)
* @see javax.servlet.http.HttpServlet#HttpServlet()
*/
public CustomerServlet() {
super();
}
/* (non-Java-doc)
* @see javax.servlet.http.HttpServlet#doGet(HttpServletRe quest request, HttpServletResponse response)
*/
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
String user=request.getParameter("user");
String password=request.getParameter("password");
if( user != null && password != null && user.equals("username") && password.equals("password") )
{
request.getRequestDispatcher("/success.jsp").forward(request,response);
}
else
{
request.getRequestDispatcher("/failed.jsp").forward(request,response);
}
}
/* (non-Java-doc)
* @see javax.servlet.http.HttpServlet#doPost(HttpServletR equest request, HttpServletResponse response)
*/
protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
// TODO Auto-generated method stub
}
}
I am developing in open laszlo 4.2.0. when i'm compiling my laszlo application in swf8 and then deploying it in SOLO mode to make flash the preview displaying to me is very small regarding my original application. And then when i'm embedding it with HTML it only tooks small then half of the client's browser. Can't I make laszlo application to occupy the whole browser area. Please help me in this regard. Thanks in advance
Haa, eta kono problem holo.....compile in 1024*768 display mode then run..
u will get good result
willjones
04-28-2009, 11:57 AM
See my post here... http://forum.openlaszlo.org/showthread.php?t=13212
saurabh.sahay
06-09-2009, 03:47 PM
Always use
<canvas height="100%" width= "100%" >
It would automatically resize itself according to the Browser space and size.
You might also use percentage for height and width for views inside the canvas which will resize whole application accordingly.
WrinkledCheese
07-14-2009, 04:25 PM
Don't forget to set the height and width of the object that calls the swf.
vBulletin® v3.8.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.