[rt-users] TicketObj->Id to string for html
Kevin Falcone
falcone at bestpractical.com
Mon Mar 12 12:02:11 EDT 2012
On Mon, Mar 12, 2012 at 03:56:46PM +0000, Izz Abdullah wrote:
> Ok, understood. Short of buying a Mason book,
You don't have to buy the book, click on "Read it online".
Also, Tom provided an example of the correct syntax.
-kevin
> I can rewrite some javascript to work out the print, but I am still not able to convert TicketObj->id to a string. Can you assist there please?
>
> -----Original Message-----
> From: rt-users-bounces at lists.bestpractical.com [mailto:rt-users-bounces at lists.bestpractical.com] On Behalf Of Thomas Sibley
> Sent: Monday, March 12, 2012 10:39 AM
> To: rt-users at lists.bestpractical.com
> Subject: Re: [rt-users] TicketObj->Id to string for html
>
> 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).
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20120312/240a3447/attachment.sig>
More information about the rt-users
mailing list