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