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
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