PDA

View Full Version : Retriving Data (Dynamic) From Server to Laszlo without JSP


smramesh
10-21-2006, 09:26 PM
Hi,

I need to get the data from web server (that does some business logics/calculations) and sends the data (response) back to the client. My server does not support JSP. Is there any way for me to retrieve the data dynamically still?

I have a little knowledge/idea about XMLHttpRequest and Accessing returned data as XML string inside the script, but I do have difficulties in displaying that data and also having difficulties in putting that data from the script into a dataset dynamically and updating the view using that dataset.

Any ideas/suggestions would be great...Thanks in advance.

Ram.

hoenie
10-22-2006, 09:59 AM
If your web host support Perl and CGI, you can write a Perl CGI to gather your data and spit it back out in the form of XML. A lightweight module like XML::Simple may do the job if your need is simple.

If you are familiar with HTML templates, you can use one of several Perl templating tool to make a boiler form XML and then fill in the data when you call the server. My favorite is Embperl, which is simply a Perl module that can be downloaded from CPAN. Most ISP will be happy to install Embperl if you just ask them.

smramesh
10-23-2006, 07:24 AM
Appreciate very much your suggestions. Looking into the details...! Thanks ocne again.

Ram