Questions tagged [mason]

HTML::Mason, or Mason for short, is a Perl-based templating system for generating dynamic HTML or other content.

HTML::Mason or it's successor Mason 2 (simply called Mason), is a Perl-based templating system for generating HTML or other content.

Its features make it a suitable backend for high load sites serving dynamic content, such as online newspapers or database driven e-commerce sites.

Official home page: http://www.masonhq.com/

Mason book: https://masonbook.houseabsolute.com/

143 questions
0
votes
1 answer

Accessing Perl Array in JavaScript

I have an array of unknown size in perl generated by some other perl module. Now, precisely I want to find if a value passed to a jquery function exists in the perl array or not. Is there a way I can do an element by element comparison of the input…
rajneesh2k10
  • 1,550
  • 3
  • 12
  • 24
0
votes
1 answer

Catalyst application under Apache2 mod_perl won't render Mason templates

my application root is /home/user/apps/learningcatalyst/CGAddressBook in that folder I have a /mason folder where mason components are stored my View is located in /lib/CGAddressBook/View where I have a few files called login_form and…
user2733911
  • 63
  • 1
  • 7
0
votes
1 answer

Show a link in jquery datagrid

I have a jquery grid and I need to show a link in one of the columns. The link will have a parameter that will be obtained from the server side. For ex: certificateIdentifier is a server side variable. And I need to show the value of this variable…
Arjun
  • 385
  • 5
  • 17
0
votes
2 answers

perl/facebook how to get the user id from User object

Hi I was looking around the web, but I couldn't find any simple answers on how to get JUST the facebook id from the current user viewing my application. I understand that I need to get the User object from the Graph API and just get the id from that…
James
  • 557
  • 1
  • 12
  • 29
0
votes
1 answer

Substitution tag only outputting first word

I have the following perl mason code: % my $var = "San Diego"; disabled /> However, when I do this, the value of the textfield only gets set to the first word. So in this case, it gets set to "San". How can I…
Nosrettap
  • 10,940
  • 23
  • 85
  • 140
0
votes
3 answers

What is the best way to make login session with Perl's HTML::Mason?

I'm with some difficulties in make this. I have a login HTML form, and I want to know if the user and password match with the information in my MySQL server. What is the best way to do it? Thank you very much
Davidslv
  • 634
  • 1
  • 7
  • 18
0
votes
1 answer

Using POST in an HTML form

I am using POST in an HTML form to POST large number of arguments. I wrote something like this:
/>
0
votes
1 answer

Apache2::RequestRec doesn't have 'param' method for Session::Wrapper

Got an error in the mason handler like this on my new web server which is migrated from apache1 to apache2: The 'param_object' parameter ("Apache2::RequestRec=SCALAR(0x7f6541b5af28)") to Apache::Session::Wrapper->new() does not have the method:…
Yang
  • 1,285
  • 1
  • 10
  • 14
0
votes
1 answer

'ah' not listed when calling HTML::Mason::Request->new()

I'm writing codes which are originally from http://modperlbook.org/html/B-18-1-Apache-Session-8212-Maintain-Session-State-Across.html to use session. But I got an error as below: " The following parameter was passed in the call to…
Yang
  • 1,285
  • 1
  • 10
  • 14
0
votes
2 answers

What does this line of perl code mean?

I have a perl mason file and one of the lines looks like this: $result = PI::Membership::Service->cancel(name => $name) What exactly does that mean? Is it calling another module? Is it object oriented perl code? Thanks
Joey Franklin
  • 6,423
  • 7
  • 25
  • 22
0
votes
1 answer

Mason not working in IE8

I'm using Mason on my website. Everything is working fine, except IE8 (who would've guessed?). The error it returns: SCRIPT5007: Unable to get value of the property '1': object is null or undefined. The line this error is triggered: if( w >=…
Bananam00n
  • 814
  • 9
  • 27
0
votes
1 answer

json Ajax request returns every html element of the page