[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[cgiapp] Re: Returning XML output for AJAX


Bruce McKenzie wrote:
OK, so I'm way behind the rest of the world when it comes to XML -- but I am using CGI::Application -- so how hard could it be to catch up? :-)

What I want to do is return XML (as an Ajax response) to the jQuery Interface library Autocomplete plugin.

In the plugin documentation example, data is provided by an .asp document that looks like this:

<?xml version="1.0"?>
<ajaxresponse>
  <item>
    <text><![CDATA[text to display]]></text>
    <value><![CDATA[value to fill]]></value>
  </item>
</ajaxresponse>

Of the modules on CPAN that could produce this XML structure, which would be *easiest* to use? Do I need to change the headers of the CGI::Application response?


Here is a good resource:

http://perl-xml.sourceforge.net/faq/

HTH

Robert


---------------------------------------------------------------------
Web Archive:  http://www.mail-archive.com/suppressed/
             http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: suppressed
For additional commands, e-mail: suppressed


Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.