Re: [htmltmpl] Strange Error during $template->output()

2002-08-13 Thread Sam Tregar
On Tue, 13 Aug 2002, Kenny Smith wrote: > I just got this error, which seems to be intermitant... I'm using H::T 2.3, > apache 1.3.26, and mod_perl 1.27, anyone seen it before? > > HTML::Template::output() : Unknown item in parse_stack : at > .../HTML/Template.pm line 2503 This is an "impossible

[htmltmpl] Strange Error during $template->output()

2002-08-13 Thread Kenny Smith
Hi all, I just got this error, which seems to be intermitant... I'm using H::T 2.3, apache 1.3.26, and mod_perl 1.27, anyone seen it before? line 382 of show_journal.mod_perl is: $template->output(); -- error output - HTML::Template::output() : Unknown item in parse_stack : at

Re: [htmltmpl] Dynamic TMPL_VAR names? Is it possible?

2002-08-13 Thread Fran Fabrizio
Ok, I'll try my best to give an accurate working example. Our application deals with tracking information about computers installed at various sites. One site may have many computers. We need to give the users the ability to edit all of the info about all of the computers at a particular

Re: [htmltmpl] Dynamic TMPL_VAR names? Is it possible?

2002-08-13 Thread Douglas Kirkland
On Tuesday 13 August 2002 02:54 pm, Fran Fabrizio wrote: > Hello!  What I'm wondering is if this is possible: > >          name=site__name >          value=_name> > > > We're trying to use the 'associate' feature, but the form field names > need to be unique each time we load the form (because th

Re: [htmltmpl] Dynamic TMPL_VAR names? Is it possible?

2002-08-13 Thread Brian McCain
Without knowing how you're using the associate feature, it's hard to come up with a workaround. It seems like loops should work for you, but if whatever youre doing with associate is making that impossible, perhaps you could include the portion of your code where you use associate? Brian - O

RE: [htmltmpl] Dynamic TMPL_VAR names? Is it possible?

2002-08-13 Thread Fran Fabrizio
A loop does me no good. If I have two sites, and I use a loop like suggested, I get a form that looks something like: etc Two form fields in the same form with the same name = broken form. :-( Even worse, when I go to repopulate the 'associate' feature has I think now clobbered one

RE: [htmltmpl] Dynamic TMPL_VAR names? Is it possible?

2002-08-13 Thread Cory Trese
You need a loop. See the HTML::Template docs on LOOPS. "> You pass a loop (AKA, "sites => \@sites_array_of_hashref," ) with the necessary sites. This loop construction is business-logic (we would use a module that prepared an array of hashrefs from a DBI routine.) > -Original Messag

[htmltmpl] Dynamic TMPL_VAR names? Is it possible?

2002-08-13 Thread Fran Fabrizio
Hello! What I'm wondering is if this is possible: _name value=_name> > We're trying to use the 'associate' feature, but the form field names need to be unique each time we load the form (because the form may have site_12345_name and site_67890_name this field can't be just site_nam