[Seaside] Regarding anchorWithPopupAction

Rajeev Lochan lochan94 at gmail.com
Mon Jul 2 17:40:27 UTC 2007


Well I figured out a way found in normal webpages. Is there any way this can
be done in Seaside other than the following code which works.

renderContentOn:html

html html: '<a href="javascript:window.print()">Print</a>'


Regards,
Rajeev









On 7/2/07, Rajeev Lochan <lochan94 at gmail.com> wrote:
>
> Dear Philippe,
> Thanks a lot for your help. The code you showed works well for a normal
> component. In my case, I had to print the contents of the page, so I thought
> it was good if I could open another browser with all my contents. I did that
> using the following code.
>
>
> renderContentOn: html
>         html popupAnchor
>                 name: 'MyPage';
>                 extent: 800 at 600;
>                 callback: [self printPage ];
>                 with: 'Print My Page'
>
> printPage
>     | temp |
>     temp := PagePrintView new.
>     temp model: self model.
>     WARenderLoop new call: temp.
>
>
> I need one more thing. Is is possible to add a link on a page (say Print
> Page), so that clicking that triggers Printer Options (Instead of going for
> File>> Print, in browser's tab).
>
> Thanks in advance,
> Rajeev
>
>
>
>
> On 6/30/07, Philippe Marschall <philippe.marschall at gmail.com > wrote:
> >
> > If you have a look at WAPopupTest (don't know whether this is in you
> > Seaside):
> >
> > renderContentOn: html
> >         html popupAnchor
> >                 name: 'Counter';
> >                 extent: 800 at 600;
> >                 callback: [ WARenderLoop new call: WACounter new ];
> >                 with: 'popup counter'
> >
> > Philippe
> >
> >
> > 2007/6/30, Rajeev Lochan <lochan94 at gmail.com>:
> > > Dear Seasiders,
> > > I have truncated an old Mail from Seaside List. I have similar issue.
> > I need
> > > a link that opens a new browser window and renders MyComponent.
> > >
> > > anchorWithPopupAction: extent: text
> > >
> > > doesnot seem to work with Seaside2.7a1-mb.210.mcz
> > >
> > >
> > > "I would like to create a link that opens a new browser window
> > > and renders a component.
> > > I've been playing arount with target="_blank" for opening a new
> > >
> > > window but I don't know how to render the contents.
> > >
> > >
> > > Hi Mike,
> > >
> > >  The usual way to do this right now is something like this:
> > >
> > > html
> > >
> > >  anchorWithPopupAction: [WARenderLoop new call: MyComponent new]
> > >  extent: 300 at 500
> > >  text: 'My Popup'
> > >
> > >  Avi"
> > >
> > >
> > >
> > > Help Needed,
> > > Rajeev
> > >
> > >
> > >
> > > --
> > > Rajeev Lochan
> > >
> > > Co-founder, AR-CAD.com
> > >
> > > http://www.ar-cad.com
> > > +91 9212090622 (Gurgaon)
> > > 080 65355873 (Bangalore)
> > > _______________________________________________
> > > Seaside mailing list
> > > Seaside at lists.squeakfoundation.org
> > > http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
> > >
> > >
> > _______________________________________________
> > Seaside mailing list
> > Seaside at lists.squeakfoundation.org
> > http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
> >
>
>
>
> --
> Rajeev Lochan
>
> Co-founder, AR-CAD.com
>
> http://www.ar-cad.com
> +91 9212090622 (Gurgaon)
> 080 65355873 (Bangalore)
>



-- 
Rajeev Lochan

Co-founder, AR-CAD.com

http://www.ar-cad.com
+91 9212090622 (Gurgaon)
080 65355873 (Bangalore)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/seaside/attachments/20070702/1a359e73/attachment.htm


More information about the Seaside mailing list