Seaside + Comet + Open a new window

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Seaside + Comet + Open a new window

Esteban Robles Luna
Hi list,
After solving some problems with Seaside and Comet now I'm trying to
open a new window. The decision of opening that window is taken on the
server so I send a window.open javascript from the server like this:

self pusher
push:'<script type="text/javascript">window.open(''http://localhost:8008/seaside/go/browse'');</script>'.

It work for any static url, but I`m wondering if I can generate a URL
to render a component on a new window.
Something like:

aComponent renderOnNewWindowUsing: self pusher.

These stores a callback or something like that and generates the
javascript code on the pusher.

Any suggestions?

Regards
Esteban
_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: Seaside + Comet + Open a new window

Lukas Renggli
> self pusher
> push:'<script type="text/javascript">window.open(''http://localhost:8008/seaside/go/browse'');</script>'.
>
> It work for any static url, but I`m wondering if I can generate a URL
> to render a component on a new window.
> Something like:
>
> aComponent renderOnNewWindowUsing: self pusher.

Have a look at WAPopupAnchorTag and its superclasses on how to create
the JavaScript to open a new window.

As callback you need to setup a new render-loop. Something like ...


     WARenderLoop new
          call: (SomeComponent new
               accessor1: ...;
               ....;
               yourself)

HTH,
Lukas

--
Lukas Renggli
http://www.lukas-renggli.ch
_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: Seaside + Comet + Open a new window

Esteban Robles Luna
Thanks Lukas,
It´s interesting to know some Seaside intrinsic things like the
WARenderLoop. Thanks for your help!



On 1/21/07, Lukas Renggli <[hidden email]> wrote:

> > self pusher
> > push:'<script type="text/javascript">window.open(''http://localhost:8008/seaside/go/browse'');</script>'.
> >
> > It work for any static url, but I`m wondering if I can generate a URL
> > to render a component on a new window.
> > Something like:
> >
> > aComponent renderOnNewWindowUsing: self pusher.
>
> Have a look at WAPopupAnchorTag and its superclasses on how to create
> the JavaScript to open a new window.
>
> As callback you need to setup a new render-loop. Something like ...
>
>
>      WARenderLoop new
>           call: (SomeComponent new
>                accessor1: ...;
>                ....;
>                yourself)
>
> HTH,
> Lukas
>
> --
> Lukas Renggli
> http://www.lukas-renggli.ch
> _______________________________________________
> Seaside mailing list
> [hidden email]
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>


--
Saludos
Esteban
_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside