On Tuesday June 8 2004 8:27 pm, Sam Tregar wrote: > On Tue, 8 Jun 2004, Greg Jetter wrote: > > Could someone enlighten me on the proper way to pass an array ref to > > this part of the new() call ? > > > > I've tried persist_vars => [EMAIL PROTECTED] ] > > > > WHERE : > > > > @array = ("PostalCode", $searchZip); > > That should be just: > > @array = ("PostalCode"); > > HTML::Pager uses the value from $query->param() for the vars you ask > to be persisted. > > -sam > > > ------------------------------------------------------- > This SF.Net email is sponsored by: GNOME Foundation > Hackers Unite! GUADEC: The world's #1 Open Source Desktop Event. > GNOME Users and Developers European Conference, 28-30th June in Norway > http://2004/guadec.org > _______________________________________________ > Html-template-users mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/html-template-users
Thanks that did the trick , I was not aware that it acted in that fasion , I should have gussed that it had to get the values from some place. and the logical place was from the query params . It's working now up to the last page of data , in my case the script makes up 9 pages , pages 1 thr 8 display and act correctly page 9 produces the following error: get_data_callback returned something that isn't an array ref! You must return from get_data_callback in the format [ [ $col1, $col2], [ $col1, $col2] ] or [ { NAME => value ... }, { NAME => value ...} ]. at /usr/lib/perl5/site_perl/5.8.0/HTML/Pager.pm line 421. any thoughts as to why ? could it have to do with the last set of data not containing full set of rows ? in this paticular case I know there are only 81 hashs in my array of hashes for the loop . So page nine would have only 1 , and the page size is set to 10 ... I can post code if it would make things clearer .. thanks Greg ------------------------------------------------------- This SF.Net email is sponsored by: GNOME Foundation Hackers Unite! GUADEC: The world's #1 Open Source Desktop Event. GNOME Users and Developers European Conference, 28-30th June in Norway http://2004/guadec.org _______________________________________________ Html-template-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/html-template-users