Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
Ajax with Teamsite
System
Hey everyone :
I've been trying to create a GUI deployment program....details aside I am trying to use AJAX using the CGI::AJAX module. Basically for a simple test I am creating a dropdown menu, and when a user selects a value in that dropdown a second dropdown below it will populate with new values based on that first dropdown value selected. Rather than resubmitting the whole page, using AJAX only the second dropdown will get recreated. When I run it using /usr/bin/perl it works fine..but going through the iwperl ( interwovens perl ) It does not work. Does it support AJAX and has anyone successfully implemented anything using AJAX? Any help would be appreciated. Thanks!
Find more posts tagged with
Comments
Adam Stoller
I've never used this moudle, the following are general questions / suggestions:
Did you install CGI::AJAX for iwperl or only for /usr/bin/perl?
You would need to install it for iwperl in order for it to work correctly - you might be able to get away with doing a:
use lib "/usr/lib/perl" or some such, so that iwperl could find the CGI/AJAX.pm module - but it would generally be better to having the module built/installed for iwperl into IWHOME/iw-perl/site/lib/
--fish
Senior Consultant, Quotient Inc.
http://www.quotient-inc.com
Migrateduser
Hey, Thanks for the suggesstion, I did try what you mentioned ( installing Ajax for iwperl ) but still got no results. Thank you for the input.
chuckles
IMO, CGI::Ajax is totally unnecessary. The beauty of Ajax is that it piggybacks on existing, mature technology. If you want an example of Ajax with Perl, you can read my article here:
http://www.xml.com/pub/a/2005/05/11/ajax-error.html
. In the example, I am posting data as XML and returning nothing, but you could just as easily post URI encoded name=value pairs and return content as text/xml the same way you would write text/html. All I use is CGI.pm and XML:
imple. I don't think that any toolkits or modules can really improve significantly and what is already available.
Incidentally, I have successfully replaced some of my IWDatacapture.callServer() code with Ajax calls. It means that I don't have to worry about successive calls colliding, and I can pass pure XML data and not have to write out an whole HTML page.
Edited by chuckles on 10/04/05 01:14 PM (server time).