[Laszlo-dev] ajax-issue and server-side implementation -
integration of "DWR - Direct Web Remoting"
http://getahead.ltd.uk/dwr/
Sebastian Wagner
seba.wagner at gmail.com
Tue Jan 24 12:52:02 PST 2006
hi,
I tried the new Ajax-Api and had several problems in using it, the example
in the documentation also doesn't seem to work. I would recommend to put the
echo.jsp code next to example so that users know which data will be send to
server and what to write in their servlets/jsp/whatever.
I also tried to integrate the "DWR - Direct Web Remoting"
http://getahead.ltd.uk/dwr/ which seems to be quiet easy for Accessing Java
Function with Ajax. Integration into the Laszlo-Servlet is quiet easy too
http://appserver.laszlo-forum.de/lps-latest/dwr/index.html . But i can't
even request any off the Remote Function because the Laszlo-Ajax-Api doesn't
know how to access Classes and Methods in DRW. DRW defines a Request for a
Server-Side-Object like that (with GET-Method):
http://appserver.xmlcrm.de/lps-latest/dwr/exec/Demo.EchoValues?callCount=1&c0-scriptName=Demo&c0-methodName=EchoValues&c0-id=123&c0-param0=string:yes&xml=true
But the answer isn't valid XML anyway ...
So my questions are:
1. Any plan how to access Remote-Function with Ajax with Laszlo?
Somebody has to define which way a Remotecall looks like... Like the above:
url + classname + methodname + params + output-format
2. How will Laszlo solve the cross-domain issue in Ajax? Ajax - Request have
the same problem like Flash-Remoting .. in Flash there is a
Crossdomain.xmlwhich solves this. But in Ajax i think there are not
things like that. So if
you want to use Ajax in Laszlo the Remote-Interface always has to be on the
same domain!?
3. Writing a servlet for each Application which handles the Params Laszlo
sends and generate the output is quiet a lot of work! So something like the
DRW is quiet good, like having a folder where you put your
Functions/Classes, which should be accessible for Ajax. Like javaRPC. Are
developers already working on something like that?
regards,
Sebastian Wagner
--
Sebastian Wagner
http://www.webbase-design.de
http://www.laszlo-forum.de
Bleichstraße 92
75173 Pforzheim
Tel.: 0177-7341829
Home: 07231-417456
seba.wagner at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://openlaszlo.org/pipermail/laszlo-dev/attachments/20060124/771cee54/attachment.html
More information about the Laszlo-dev
mailing list