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