[Seaside] Stupid Question: How do I open a browser-print-dialog using jQuery?

Richard Durr richard.durr at googlemail.com
Sun Jul 4 12:37:02 UTC 2010


Thanks. I'd like to push it through Comet to a client like this:
print
	self session javascript: [:builder |
		builder << builder jQuery this javascript: 'window.print']

On Sun, Jul 4, 2010 at 2:28 PM, Lukas Renggli <renggli at gmail.com> wrote:
> jQuery is a library on top of Javascript. I don't think that jQuery
> provides anything on top of what you write. Just attach the string
> 'window.print()' to any DOM or jQuery event handler.
>
> Lukas
>
> On Sunday, July 4, 2010, Richard Durr <richard.durr at googlemail.com> wrote:
>> I'd like to open a print dialog when somebody clicks a link, how can I
>> do that? I know with pure JS I could do
>> window.print(). But how do I do this using jQuery?
>>
>> RD
>> _______________________________________________
>> seaside mailing list
>> seaside at lists.squeakfoundation.org
>> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>>
>
> --
> Lukas Renggli
> www.lukas-renggli.ch
> _______________________________________________
> seaside mailing list
> seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>


More information about the seaside mailing list