Re: html template loops not showing data

2009-07-10 Thread Steve Bertrand
gt;> references. >> >>> push @wall_data, { %walldata }; >>> # This code pushes an anonymous hash containing the data on to the >>> array. >> >> Which also works, because a copy of the hash is saved, but it is not as >> efficient

Re: html template loops not showing data

2009-07-10 Thread Scott
; # This code pushes an anonymous hash containing the data on to the array. Which also works, because a copy of the hash is saved, but it is not as efficient. In other words, the problem lies elsewhere. As far as I can tell the code is fine as shown, but I don't have any experience with HTM

Re: html template loops not showing data

2009-07-10 Thread Jim Gibson
le, and the array @wall_data contains a list of distinct hash references. > push @wall_data, { %walldata }; > # This code pushes an anonymous hash containing the data on to the > array. Which also works, because a copy of the hash is saved, but it is not as efficien

Re: html template loops not showing data

2009-07-10 Thread Scott
because i have tested in in a normal test.pl and it prints out the data but not using an array or hash. I tried to follow this example: http://search.cpan.org/~samtregar/HTML-Template-2.9/Template.pm#TMPL_LOOP I think its the second loop example on there. Here is my code on the perl side: my

Re: html template loops not showing data

2009-07-10 Thread Shawn H. Corey
rks because i have tested in > in a normal test.pl and it prints out the data but not using an array or > hash. > I tried to follow this example: > http://search.cpan.org/~samtregar/HTML-Template-2.9/Template.pm#TMPL_LOOP > I think its the second loop example on there. > > He

html template loops not showing data

2009-07-10 Thread Scott
not using an array or hash. I tried to follow this example: http://search.cpan.org/~samtregar/HTML-Template-2.9/Template.pm#TMPL_LOOP I think its the second loop example on there. Here is my code on the perl side: my @wall_data = (); while(my $wallref = $wallpostquery->fetchrow_hash

HTML::Template, CGI::APP with the JSON + Jquery please help.

2009-06-26 Thread Scott
HTML Template looks like. My Header includes: --- The main template: enctype="application/x-www-form-urlencoded" name="reg"> Username: class="registrationfields" size="10" id="user" name=&

Re: reCaptcha with CGI::Application and HTML::Template help?!?

2009-06-24 Thread Scott
index.pl?rm=registration [Wed Jun 24 12:05:55 2009] [error] [client 192.168.1.5] Use of uninitialized value in concatenation (.) or string at MinimalApp.pm line 24., referer: http://192.168.1.9/cgi-bin/index.pl?rm=registration [Wed Jun 24 12:05:55 2009] [error] [client 192.168.1.5] Error executing ru

Re: reCaptcha with CGI::Application and HTML::Template help?!?

2009-06-24 Thread Scott
index.pl?rm=registration [Wed Jun 24 12:05:55 2009] [error] [client 192.168.1.5] Use of uninitialized value in concatenation (.) or string at MinimalApp.pm line 24., referer: http://192.168.1.9/cgi-bin/index.pl?rm=registration [Wed Jun 24 12:05:55 2009] [error] [client 192.168.1.5] Error executing ru

reCaptcha with CGI::Application and HTML::Template help?!?

2009-06-24 Thread Scott
Cgi::Application and html::template. My Error: [Wed Jun 24 11:53:03 2009] [error] [client 192.168.1.5] Use of uninitialized value in concatenation (.) or string at MinimalApp.pm line 22., referer: http://192.168.1.9/cgi-bin/index.pl [Wed Jun 24 11:53:03 2009] [error] [client 192.168.1.5] Use of

Re: HTML Template

2009-06-08 Thread dan
e > separated from front-page codes (like html,css etc). > I have tried HTML::Template, which is simple enough. > Except that, do you have any other good template to be suggested? > What're their advantages? > > Thanks. > Jenn. I assume it has to be web-based? I've m

Re: HTML Template

2009-06-08 Thread Raymond Wan
have tried HTML::Template, which is simple enough. Except that, do you have any other good template to be suggested? What're their advantages? From the list here: http://en.wikipedia.org/wiki/Comparison_of_web_application_frameworks under Perl, I see Catalyst, Interchange, Mason, and Maypole

HTML Template

2009-06-08 Thread practicalperl
Hello, I will begin a new project, which is medium large, with about 200 CGI scripts with Perl. We have designers who make HTML/JS/CSS etc. I want to choose a template system which will let perl code be separated from front-page codes (like html,css etc). I have tried HTML::Template, which is

Re: html template and tables

2007-08-31 Thread Chas Owens
) ) > { > > ##Changing this to take this as an array > (@date, @time, @IVM, @ID) = split (' ', $line); All of the scalars from the split are going to go into @data. There can only be one array on the right hand side of an assignment, a

html template and tables

2007-08-30 Thread Pat Rice
le and put pump it out on to the web $template = HTML::Template->new(scalarref => \$template, option =>'value'); $template->param(table_data => [EMAIL PROTECTED]); Thanks in advance code is below: _

Re: Problems with HTML::Template

2006-06-20 Thread Prabu
sfantar wrote: Hi there, I am starting using HTML::Template modules and I wrote a script with the first example within the doc. I am not able to see the results of my CGI from my browser. It displayed error 500 Internal Server Error. I gave the correct rights to my script to make it

RE: Problems with HTML::Template

2006-06-20 Thread Jeff Peng
Hello, The first,I would suggest you take a look at apache's error_log,you could find something wrong with your scripts or config there. From: sfantar <[EMAIL PROTECTED]> To: beginners-cgi@perl.org, beginners@perl.org Subject: Problems with HTML::Template Date: Tue, 20 Jun 20

Problems with HTML::Template

2006-06-20 Thread sfantar
Hi there, I am starting using HTML::Template modules and I wrote a script with the first example within the doc. I am not able to see the results of my CGI from my browser. It displayed error 500 Internal Server Error. I gave the correct rights to my script to make it executable. In the @INC

RE: HTML::Template help continues....

2005-03-29 Thread Charles K. Clarkson
that I process this with Please don't shoot the messenger, but you're doing a lot unneeded typing. It looks like you are inside a CGI::Application script. All you need to do is associate the query object to populate the form. Read the HTML::Template docs for details. sub insertproject

HTML::Template Help 2

2005-03-29 Thread Hawkes, Mick I
Guys! I found the problem! It was the form line (see below) when I commented this out it worked! So, ok WHY? I am really lost with some of this stuff, I noticed that stuffs them up too. Cheers Confused :-) -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail:

HTML::Template help continues....

2005-03-29 Thread Hawkes, Mick I
_FaultSource=$q->param("HTML_FaultSource")||undef; my $HTML_FaultSourceContact=$q->param("HTML_FaultSourceContact")||undef; #my $HTML_DateCompleted=$q->param("HTML_DateCompleted")||undef; # Setup the template to use for the output. my $tem

RE: HTML::Template help

2005-03-28 Thread Charles K. Clarkson
Hawkes, Mick I wrote: [snipped code] That code has nothing to do with the template (and it looks really ugly -- use some white space). : As I said above all the other parameters are returned, this one, : which is the only pulldown select I use, doesn't : :

Re: HTML::Template help

2005-03-28 Thread Offer Kaye
On Tue, 29 Mar 2005 13:51:44 +1000, Hawkes, Mick I wrote: > Hi all, > > All i want is a pull down select to work. I can get it to display passed data > but I just can't get it to > return the selection. here is a code snippit (its inside a table) . > > "> You're missing a "<" before the "TMPL"

RE: HTML::Template help

2005-03-28 Thread Hawkes, Mick I
Hawkes, Mick I wrote: : All i want is a pull down select to work. I can get it to display : passed data but I just can't get it to return the selection. here is : a code snippit (its inside a table) . : : ">

RE: HTML::Template help

2005-03-28 Thread Charles K. Clarkson
Hawkes, Mick I wrote: : All i want is a pull down select to work. I can get it to display : passed data but I just can't get it to return the selection. here is : a code snippit (its inside a table) . : : "> : " selected> >Open : Pending : Closed : : : so why doe

HTML::Template help

2005-03-28 Thread Hawkes, Mick I
Hi all, All i want is a pull down select to work. I can get it to display passed data but I just can't get it to return the selection. here is a code snippit (its inside a table) . "> " selected> >Open Pending Closed so why doesn't it work? TIA cheers Mick Hawkes -- To unsub

Re: HTML::Template

2002-06-26 Thread eric-perl
On Sun, 23 Jun 2002, Shawn Bower wrote: > <--> > my $template = HTML::Template->new(filename=>'weather.html'); > $template->param('CurrTime', $currTime); > $template->param('CurrTemp', $currTemp); >

Re: HTML::Template

2002-06-24 Thread Peter Scott
At 10:37 PM 6/23/02 -0400, Shawn Bower wrote: >I'm trying to use the HTML::Template package, I got it all set up with a >template web page and I have set up the parameters in my perl script and >it runs fine when I run it from the command line but when I load it >using my bro

HTML::Template

2002-06-24 Thread Shawn Bower
I’m trying to use the HTML::Template package, I got it all set up with a template web page and I have set up the parameters in my perl script and it runs fine when I run it from the command line but when I load it using my browser the variable don’t get filled in, the tmpl tags are gone but my

Re: More HTML::Template help

2002-04-12 Thread Jenda Krynicky
From: Elaine -HFB- Ashton <[EMAIL PROTECTED]> > A Taylor [[EMAIL PROTECTED]] quoth: > *> > *>My question is where do I run these commands from - I have > downloaded and *>un-zipped the HTML-Template fron CPAN but am having > difficulties install

Re: More HTML::Template help

2002-04-12 Thread Elaine -HFB- Ashton
A Taylor [[EMAIL PROTECTED]] quoth: *> *>My question is where do I run these commands from - I have downloaded and *>un-zipped the HTML-Template fron CPAN but am having difficulties installing *>it. I was hoping that it would be as easy as TELNETing in to the server *>space but

More HTML::Template help

2002-04-12 Thread A Taylor
I am trying to install HTML::Template into a local directory and it seems that i have to use the following: perl Makefile.PL PREFIX=/path_to_your_home \ INSTALLPRIVLIB=/path_to_your_home/lib/perl5 \ INSTALLSCRIPT=/path_to_your_home/bin \ INSTALLSITELIB=/path_to_your_home/lib/perl5

Re: help installing HTML::Template;

2002-04-11 Thread amfax
http://stason.org/TULARC/webmaster/myfaq.html#7 has a guide to this. I'm using HTML::Template (installed into my own directory) and I like it, but TMTOWTDI. I understand Mason is pretty cool, but I've never done it. And of course, there's PHP... --Jerry http://www.jerrymccu

help installing HTML::Template;

2002-04-11 Thread A Taylor
Hi all, I am trying to write a perl script that uses different HTML templates depending on the data drawn from a DataBase. It seems the only solution is to use the PERL module HTML::Template; but my web host doesn't support this and wont install it. Is there anyway I can install it m

RE: help with - use HTML::Template;

2002-03-23 Thread Brian
HTML::Template needs to be obtained from CPAN (search.cpan.org is a great place to go for all your module needs). http://search.cpan.org/search?dist=HTML-Template Also, you can check your error logs for your web server to get details of what is going on. You might also want to try: use CGI

Re: help with - use HTML::Template;

2002-03-23 Thread A Taylor
Hi William, thanks for your time and help so far - it is much appreciated. My perl interpreter is definately pointing to the correct file - I have run other perl scripts successfully that point to #!/usr/bin/perl. It is only when I try to use 'use HTML::Template;' that I get a ser

help with - use HTML::Template;

2002-03-22 Thread A Taylor
-- #!/usr/bin/perl use HTML::Template; my $template = HTML::Template->new(filename => 'test.tmpl'); $template->param( HOME => $ENV{HOME}, PATH => $ENV{PATH}, ); print "Content-Type: text/html\n\n"; print $template-&g

Re: HTML Template and HTML Mason

2002-02-16 Thread Matt C.
of vhosts, etc., although this is due in part to mod_perl. Regards, Matt --- [EMAIL PROTECTED] wrote: > I am in the process of inheriting a bundle of Perl/HTML code implemented in > HTML:Mason > > and > > HTML::Template > > For ease of maintenance I am planning to si

HTML Template and HTML Mason

2002-02-15 Thread William.Ampeh
I am in the process of inheriting a bundle of Perl/HTML code implemented in HTML:Mason and HTML::Template For ease of maintenance I am planning to simply do away with one. The question is "which one?". I have not done much in Mason, but from what I have read, it sounds very pro