----- Original Message ----- From: Mark Rajcok To: Jonathan Mangin Sent: Tuesday, November 28, 2006 2:27 PM Subject: Re: [cgiapp] Returning multiple values with CGI::Ajax
> 2. Changed the template: onblur="selected_date(['date'],['form2_date']);" > Changed the sub: > return ($form2 , $form3); Above, you're targeting one div when Ajax returns -- form2_date -- but your Ajax method returns two results. I would not expect this to work. The number of items in the second set of []'s must match the number of items your Perl method returns. I'd hoped both would be returned to the single div (as a test of the number of items returned. If I had TT installed anywhere, I'd try it out, but I've only started using templates recently, and only HTML::Template. One other idea -- are your div's closed properly? (Sometimes I miss adding them.) <div id='form2_date'>... </div> <div id='form3_date'> ... </div> Yes. -- Mark I believe I've exhausted my interest in this (until next time). Thanks for your help. --Jon
