Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Catalyst: Users

TT output to a new browser window or tab

 

 

Catalyst users RSS feed   Index | Next | Previous | View Threaded


chris at vistaeng

May 24, 2008, 6:27 AM

Post #1 of 4 (239 views)
Permalink
TT output to a new browser window or tab

Hello,

I am using TT to create a report. I have found how to direct it's output to
a file. Can anyone point me to how to output it to a new browser window or
tab? Equivalent to clicking on a link that includes target="_blank".

TIA,
Chris



_______________________________________________
List: Catalyst[at]lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst[at]lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/


ksdoctor at burnham

May 24, 2008, 10:50 AM

Post #2 of 4 (229 views)
Permalink
Re: TT output to a new browser window or tab [In reply to]

If you want the output in in a new browser window, then making a link:
<a href="catalyst_url_here" target="_blank">
seems the right way to go.
Catalyst will then be responding to new request when the user clicks on
the link.

Is the original report you are wanting to start from in html?


Chris Devine wrote:
> Hello,
>
> I am using TT to create a report. I have found how to direct it's output to
> a file. Can anyone point me to how to output it to a new browser window or
> tab? Equivalent to clicking on a link that includes target="_blank".
>
> TIA,
> Chris
>
>
>
> _______________________________________________
> List: Catalyst[at]lists.scsys.co.uk
> Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
> Searchable archive: http://www.mail-archive.com/catalyst[at]lists.scsys.co.uk/
> Dev site: http://dev.catalyst.perl.org/
>
>
>



_______________________________________________
List: Catalyst[at]lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst[at]lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/


chris at vistaeng

May 24, 2008, 11:09 AM

Post #3 of 4 (227 views)
Permalink
RE: TT output to a new browser window or tab [In reply to]

Yes, it is html for now, other formats later as options based on the html.

What in need to know is how can I "fork" from within Catalyst to do this. I
have a form collect some options. The user hits submit. This window shows a
result (Ok, Error), and a go home button. The report is created and opened
into another window.

Thanks again,
Chris

-----Original Message-----
From: Kutbuddin Doctor [mailto:ksdoctor[at]burnham.org]
Sent: Saturday, May 24, 2008 12:50 PM
To: The elegant MVC web framework
Subject: Re: [Catalyst] TT output to a new browser window or tab

If you want the output in in a new browser window, then making a link:
<a href="catalyst_url_here" target="_blank"> seems the right way to go.
Catalyst will then be responding to new request when the user clicks on the
link.

Is the original report you are wanting to start from in html?


Chris Devine wrote:
> Hello,
>
> I am using TT to create a report. I have found how to direct it's
> output to a file. Can anyone point me to how to output it to a new
> browser window or tab? Equivalent to clicking on a link that includes
target="_blank".
>
> TIA,
> Chris
>
>
>
> _______________________________________________
> List: Catalyst[at]lists.scsys.co.uk
> Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
> Searchable archive:
> http://www.mail-archive.com/catalyst[at]lists.scsys.co.uk/
> Dev site: http://dev.catalyst.perl.org/
>
>
>



_______________________________________________
List: Catalyst[at]lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst[at]lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/


jon at jrock

May 24, 2008, 1:04 PM

Post #4 of 4 (228 views)
Permalink
Re: TT output to a new browser window or tab [In reply to]

* On Sat, May 24 2008, Chris Devine wrote:
> Yes, it is html for now, other formats later as options based on the html.
>
> What in need to know is how can I "fork" from within Catalyst to do this. I
> have a form collect some options. The user hits submit. This window shows a
> result (Ok, Error), and a go home button. The report is created and opened
> into another window.

This would be a JavaScript thing. Compute the report, cache it
somewhere, and return the "it worked" page. That page should do
window.open() to some action that returns the cached report.

However, I'm not sure that you can do this in the day and age of popup
blockers. YMMV.

Regards,
Jonathan Rockway

--
print just => another => perl => hacker => if $,=$"

_______________________________________________
List: Catalyst[at]lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst[at]lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/

Catalyst users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.