473,386 Members | 1,785 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

png template processing

I want to get a png template processed . I am trying to call a CGI script to process the template . for the image url iam giving the CGI script path.


[% imageurl = BLOCK %]bugsummeryperiod.cgi?[% urlquerypart FILTER html %]&type=4&

here iam trying to change the variable 'type ' and call the cgi script. In the cgi script i have a conditional statement for
type ==4


Expand|Select|Wrap|Line Numbers
  1.  }elsif( $cgi->param('type') == 4)
  2.  {
  3.  
  4.  $vars->{'data'} = \@data;
  5.      $template->process("summery/report-line1.png.tmpl", $vars)
  6.   || ThrowTemplateError($template->error());
  7.  }
  8.  

now i think still the cgi script is not getting called. What can be the error??
Oct 29 '07 #1
5 1187
eWish
971 Expert 512MB
What errors are you getting? Also, what templating system are you using?
Oct 30 '07 #2
What errors are you getting? Also, what templating system are you using?


I am not getting any compilation errors. But the graph is not displayed in the page. I think still the png template is not processed.
Oct 30 '07 #3
eWish
971 Expert 512MB
I am not sure what your ThrowTemplateError routine looks like. Therefore, I would bypass it for the moment and see if you can get it to complain.

Change this:
Expand|Select|Wrap|Line Numbers
  1. || ThrowTemplateError($template->error());
To:
Expand|Select|Wrap|Line Numbers
  1.  || die $template->error();
Also, is the file name correct? Is it an image or a template page you are wanting to view?
Oct 30 '07 #4
I am not sure what your ThrowTemplateError routine looks like. Therefore, I would bypass it for the moment and see if you can get it to complain.

Change this:
Expand|Select|Wrap|Line Numbers
  1. || ThrowTemplateError($template->error());
To:
Expand|Select|Wrap|Line Numbers
  1.  || die $template->error();
Also, is the file name correct? Is it an image or a template page you are wanting to view?


In the cgi script iam calling the html template.. in that for the imageurl i hav given the path to the cgi script again and process a png template.. Iam getting the html template. png image is not displayed. Cnnot fing why? And also is their any alternative method to do that.. In a html template iwant to display the png graph. How can i include that in to the html template..
Oct 30 '07 #5
eWish
971 Expert 512MB
Your png, is it transparent by chance. If so, are you using a browser like Internet Explorer to view it?

Have you searched CPAN for a module to aide in building your graph?
Oct 31 '07 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Ray Tayek | last post by:
hi, trying to use an xslt to make an xslt. trying something like: <?xml version="1.0" encoding="UTF-8"?> <?xmlspysamplexml H:\java\projects\spy1\spy\inputDocumentMap.xml?> <xsl:stylesheet...
0
by: Bernd Fuhrmann | last post by:
Hi! I have two (or more) templates for one certain tag: The first one: tobeimported.xsl: <?xml version="1.0" encoding="iso-8859-1"?> <xsl:stylesheet version="1.0"
2
by: Anna | last post by:
Hi all. I am trying to write a stylesheet that will structure the input HTML file in the following way: For each heading of level n it needs to enclose the heading and all its content until the...
10
by: richardclay09 | last post by:
Please take a look at this method: template<class C> void f(C* ptrAny) { Fruit* ptrFruit = dynamic_cast<Fruit*>(ptrAny); if(ptrFruit) { // do something specific to fruits } // Carry on using...
3
by: Steve | last post by:
Is there any way of specifying the startMode when using the xslTransform class? We are updating code which used msxml to the system.xml classes but can find no way to specify the startMode. We...
2
by: Brent | last post by:
Like many sites, mine has a standard "look" -- a template, if you will -- that visitors see on each page. I've tried to keep the code and HTML separate to the extent possible, and for most standard...
1
by: lele1979 | last post by:
Hi XSL Community, I would do a file in PDF with FO and XSL/XML tecnology. In a precisely moment of a creation of this PDF file I must call a precisely template from a precisely XSL file, that...
4
by: AndrewD | last post by:
Hey C++ folks, I created this today, just for fun. You can make object allocation for any class around 6 times faster, simply by doing the following. class MyClass : public...
12
by: stefan.bruckner | last post by:
Hi, I am looking for a way to achieve the following. I've tried a couple of things, but they all ended up being too complicated: I have a templated class A. I want another class B to be able...
16
by: Jeroen | last post by:
Hi all, I have a question which is illustrated by the following piece of code: template <class T> class A { T my_value; }; In a list, I'd like to store pointers to objects of class A....
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.