PDA

View Full Version : Firs OL4 / DHTML app - Problem with deployment


juliens
03-26-2007, 05:17 AM
Hi all,

I just finished my first dhtml app, some king of light weight mail reader.
I works fine locally.
When I deploy it, as a SOLO application, I get :
* explorer 7 hanging, I have to kill the process
* firefox 2 : on the first request, I get an error through firebug : 411 <h1>length required</h1> when making a request

Here is the offending code (extract).



<dataset name="dsLogin" request="false" type="http" />
<handler name="ondata" reference="dsLogin">
<![CDATA[
var dp = dsLogin.getPointer();
var qs = dp.xpathQuery('/result/@value');
success = (qs=="success");
if (success) {
} else {
}
]]>
</handler>

<handler name="onclick" reference="btLogin">
<![CDATA[
dsLogin.setSrc(loginURL);
dsLogin.setQueryParam("viewerLogin",itLogin.getText());
dsLogin.setQueryParam("viewerPassword",itPassword.getText());
dsLogin.setQueryType("POST");
dsLogin.doRequest();
btLogin.setAttribute("enabled",false);
]]>
</handler>



Any idea ?
It is too bad I get stuck just before publishing :o
Thanks in advance

Julien

max
03-29-2007, 07:04 AM
A number of issues with embedding have been fixed in the latest build of 4.0 at http://download.openlaszlo.org/nightly/4.0/. Let us know how this works for you!

Regards,
Max Carlson
OpenLaszlo.org