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.<br><br>renderContentOn:html<br><br>html html: '<a href="javascript:window.print
()">Print</a>'<br><br><br>Regards,<br>Rajeev<br><br><pre id="line69"><br><br><span style="font-family: mon;"><br><br><br><br></span></pre><br><br><div><span class="gmail_quote">On 7/2/07, <b class="gmail_sendername">
Rajeev Lochan</b> <<a href="mailto:lochan94@gmail.com">lochan94@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;">
Dear Philippe,<br>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.
<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 Page), so that clicking that triggers Printer Options (Instead of going for File>> Print, in browser's tab).
<br><br>Thanks in advance,<br><span class="sg">Rajeev</span><div><span class="e" id="q_11387f5ae2e8d979_2"><br><br><br><br><br><div><span class="gmail_quote">On 6/30/07, <b class="gmail_sendername">Philippe Marschall</b>
<<a href="mailto:philippe.marschall@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">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;">If you have a look at WAPopupTest (don't know whether this is in you 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" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">lochan94@gmail.com</a>>:<br>> Dear Seasiders,<br>> I have truncated an old Mail from Seaside List. I have similar issue. 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" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
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" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
Seaside@lists.squeakfoundation.org</a><br>> <a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">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" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">Seaside@lists.squeakfoundation.org</a><br><a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
</a><br></blockquote></div><br><br clear="all"><br></span></div>-- <div><span class="e" id="q_11387f5ae2e8d979_4"><br>Rajeev Lochan<br><br>Co-founder, AR-CAD.com<br><br><a href="http://www.ar-cad.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://www.ar-cad.com</a><br>+91 9212090622 (Gurgaon)<br>080 65355873 (Bangalore)
</span></div></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)