[rt-users] TicketObj->Id to string for html

Thomas Sibley trs at bestpractical.com
Mon Mar 12 11:39:00 EDT 2012


On 03/12/2012 11:11 AM, Izz Abdullah wrote:
> <a href="https://ourRT/Ticket/History.html?id=".$id
> onClick="window.print();return false">Print Ticket Summary</a>

Mason isn't all Perl.  <a href="some string".$id makes no sense in
Mason.  Refer to http://masonbook.com

<a href="https://ourRT/Ticket/History.html?id=<% $id %>"
onClick="window.print();return false">Print Ticket Summary</a>

> This is being displayed on the Display.html page.  I am simply
> wanting to print, from the Display.html page, the corresponding
> History.html page.

Your onclick handler "window.print(); return false" is going to open the
print dialog for the page it's on (i.e. Display.html).



More information about the rt-users mailing list