Regarding anchorWithPopupAction

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

Regarding anchorWithPopupAction

Rajeev Lochan
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@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
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: Regarding anchorWithPopupAction

Philippe Marschall
If you have a look at WAPopupTest (don't know whether this is in you Seaside):

renderContentOn: html
        html popupAnchor
                name: 'Counter';
                extent: 800@600;
                callback: [ WARenderLoop new call: WACounter new ];
                with: 'popup counter'

Philippe


2007/6/30, Rajeev Lochan <[hidden email]>:

> 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@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
> [hidden email]
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>
>
_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: Regarding anchorWithPopupAction

Rajeev Lochan
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@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 <[hidden email]> 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@600;
                callback: [ WARenderLoop new call: WACounter new ];
                with: 'popup counter'

Philippe


2007/6/30, Rajeev Lochan <[hidden email]>:

> 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@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
> [hidden email]
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>
>
_______________________________________________
Seaside mailing list
[hidden email]
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)
_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: Regarding anchorWithPopupAction

Rajeev Lochan
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 <[hidden email]> 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@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 <[hidden email]> 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@600;
                callback: [ WARenderLoop new call: WACounter new ];
                with: 'popup counter'

Philippe


2007/6/30, Rajeev Lochan <[hidden email]>:

> 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@500
>  text: 'My Popup'
>
>  Avi"
>
>
>
> Help Needed,
> Rajeev
>
>
>
> --
> Rajeev Lochan
>
> Co-founder, AR-CAD.com
>
> <a href="http://www.ar-cad.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)"> http://www.ar-cad.com
> +91 9212090622 (Gurgaon)
> 080 65355873 (Bangalore)
> _______________________________________________
> Seaside mailing list
> [hidden email]
> <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
>
>
_______________________________________________
Seaside mailing list
[hidden email]
<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



--

Rajeev Lochan

Co-founder, AR-CAD.com

<a href="http://www.ar-cad.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)"> 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)
_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: Regarding anchorWithPopupAction

Philippe Marschall
2007/7/2, Rajeev Lochan <[hidden email]>:
> 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>'

html anchor
    url: 'javascript:window.print ()'

Cheers
Philippe

> Regards,
> Rajeev
>
>
>
>
>
>
>
>
>
>
>
> On 7/2/07, Rajeev Lochan <[hidden email]> 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@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 <[hidden email] > 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@600;
> > >                 callback: [ WARenderLoop new call: WACounter new ];
> > >                 with: 'popup counter'
> > >
> > > Philippe
> > >
> > >
> > > 2007/6/30, Rajeev Lochan <[hidden email]>:
> > > > 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@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
> > > > [hidden email]
> > > >
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
> > > >
> > > >
> > > _______________________________________________
> > > Seaside mailing list
> > > [hidden email]
> > >
> 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)
> _______________________________________________
> Seaside mailing list
> [hidden email]
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>
>
_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: Regarding anchorWithPopupAction

Rajeev Lochan
Thanks Philippe

On 7/6/07, Philippe Marschall <[hidden email]> wrote:
2007/7/2, Rajeev Lochan <[hidden email]>:
> 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>'

html anchor
    url: 'javascript:window.print ()'

Cheers
Philippe

> Regards,
> Rajeev
>
>
>
>
>
>
>
>
>
>
>
> On 7/2/07, Rajeev Lochan <[hidden email]> 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@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 < [hidden email] > 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@600;
> > >                 callback: [ WARenderLoop new call: WACounter new ];
> > >                 with: 'popup counter'
> > >
> > > Philippe
> > >
> > >
> > > 2007/6/30, Rajeev Lochan <[hidden email]>:
> > > > 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@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
> > > > [hidden email]
> > > >
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
> > > >
> > > >
> > > _______________________________________________
> > > Seaside mailing list
> > > [hidden email]
> > >
> 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)
> _______________________________________________
> Seaside mailing list
> [hidden email]
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>
>
_______________________________________________
Seaside mailing list
[hidden email]
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)
_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: Regarding anchorWithPopupAction

Petr Štěpánek-2
In reply to this post by Philippe Marschall
Hi,
 I found this help on opening a popup window. My question is how to close it (using a button inside the window).

renderCloseOn: html

    html form: [
        html html: '<a href="javascript: window.close ()">Close window</a>'    "<-- hack "

"I need something like:"

        html submitButton
            class: 'button-other';
            callback: [aaaa.... close the widow... how?];
            text: 'Close window'

    ]


Thanks a lot!
   Petr

On 6/30/07, Philippe Marschall <[hidden email]> 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@600;
                callback: [ WARenderLoop new call: WACounter new ];
                with: 'popup counter'

Philippe


2007/6/30, Rajeev Lochan <[hidden email]>:

> 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@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
> [hidden email]
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>
>
_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside



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

Re: Regarding anchorWithPopupAction

Rajeev Lochan
Hi,
Whats wrong with

html anchor
   class: 'anchor-other';
   url: 'javascript:window.close ()';
   with: 'Close Window'

and in CSS for anchor-other, make it look like a button if you want.

Hope that helps,
Rajeev






On 9/13/07, Petr Štěpánek <[hidden email]> wrote:
Hi,
 I found this help on opening a popup window. My question is how to close it (using a button inside the window).

renderCloseOn: html

    html form: [
        html html: '<a href="javascript: window.close ()">Close window</a>'    "<-- hack "

"I need something like:"

        html submitButton
            class: 'button-other';
            callback: [aaaa.... close the widow... how?];
            text: 'Close window'

    ]


Thanks a lot!
   Petr

On 6/30/07, Philippe Marschall <[hidden email]> 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@600;
                callback: [ WARenderLoop new call: WACounter new ];
                with: 'popup counter'

Philippe


2007/6/30, Rajeev Lochan <[hidden email]>:

> 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@500
>  text: 'My Popup'
>
>  Avi"
>
>
>
> Help Needed,
> Rajeev
>
>
>
> --
> Rajeev Lochan
>
> Co-founder, AR-CAD.com
>
> <a href="http://www.ar-cad.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)"> http://www.ar-cad.com
> +91 9212090622 (Gurgaon)
> 080 65355873 (Bangalore)
> _______________________________________________
> Seaside mailing list
> [hidden email]
> <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
>
>
_______________________________________________
Seaside mailing list
[hidden email]
<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



_______________________________________________
Seaside mailing list
[hidden email]
<a onclick="return top.js.OpenExtLink(window,event,this)" href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" target="_blank">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside




--
Rajeev Lochan

Co-founder, AR-CAD.com

http://www.ar-cad.com
+91 9243468076 (Bangalore)
080 65355873
_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: Regarding anchorWithPopupAction

Alexandre Paes
In reply to this post by Petr Štěpánek-2
Hi,
In case you want to stick with the button this should do it as well.


renderContentOn: html

     html button onClick: 'window.close()'; value: 'Close window'


Cheers,

Alexandre


Em 09/13/07 09:40 Petr Štěpánek escreveu:

> Hi,
>  I found this help on opening a popup window. My question is how to
> close it (using a button inside the window).
>
> renderCloseOn: html
>
>     html form: [
>         html html: '<a href="javascript: window.close ()">Close
> window</a>'    "<-- hack "
>
> "I need something like:"
>
>         html submitButton
>             class: 'button-other';
>             callback: [aaaa.... close the widow... how?];
>             text: 'Close window'
>
>     ]
>
>
> Thanks a lot!
>    Petr
>
> On 6/30/07, *Philippe Marschall* < [hidden email]
> <mailto:[hidden email]>> 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@600;
>                     callback: [ WARenderLoop new call: WACounter new ];
>                     with: 'popup counter'
>
>     Philippe
>
>
>     2007/6/30, Rajeev Lochan <[hidden email]
>     <mailto:[hidden email]>>:
>      > 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@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
>      > [hidden email]
>     <mailto:[hidden email]>
>      > http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>      >
>      >
>     _______________________________________________
>     Seaside mailing list
>     [hidden email]
>     <mailto:[hidden email]>
>     http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>     <http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside>
>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Seaside mailing list
> [hidden email]
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: Regarding anchorWithPopupAction

Petr Štěpánek-2
Alexandre and Rajeev,
  yes, that helped!

 Thanks a lot!

     Petr



On 9/13/07, Alexandre Paes <[hidden email]> wrote:
Hi,
In case you want to stick with the button this should do it as well.


renderContentOn: html

     html button onClick: 'window.close()'; value: 'Close window'


Cheers,

Alexandre


Em 09/13/07 09:40 Petr Štěpánek escreveu:

> Hi,
>  I found this help on opening a popup window. My question is how to
> close it (using a button inside the window).
>
> renderCloseOn: html
>
>     html form: [
>         html html: '<a href="javascript: window.close ()">Close
> window</a>'    "<-- hack "
>
> "I need something like:"
>
>         html submitButton
>             class: 'button-other';
>             callback: [aaaa.... close the widow... how?];
>             text: 'Close window'
>
>     ]
>
>
> Thanks a lot!
>    Petr
>
> On 6/30/07, *Philippe Marschall* < [hidden email]
> <mailto:[hidden email]>> 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@600;
>                     callback: [ WARenderLoop new call: WACounter new ];
>                     with: 'popup counter'
>
>     Philippe
>
>
>     2007/6/30, Rajeev Lochan <[hidden email]
>     <mailto:[hidden email]>>:
>      > 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@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
>      > [hidden email]
>     <mailto: [hidden email]>
>      > http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>      >
>      >
>     _______________________________________________
>     Seaside mailing list
>     [hidden email]
>     <mailto:[hidden email]>
>     http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>     <http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside>
>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Seaside mailing list
> [hidden email]
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside



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

Re: Regarding anchorWithPopupAction

Rajeev Lochan
Hi All,
popupAnchor doesn't seem to work on IE 6.0.2900. I tried the following code. When we click on anchor, we are rendered with a popup browser with counter example, but the main page also renders a counter example. Anyone else has also observed this ??


renderContentOn: html
       html popupAnchor
               name: 'Counter';
               extent: 800@600;
               callback: [ WARenderLoop new call: WACounter new ];
               with: 'popup counter'


Regards,
Rajeev

On 9/13/07, Petr Štěpánek <[hidden email]> wrote:
Alexandre and Rajeev,
  yes, that helped!

 Thanks a lot!

     Petr




On 9/13/07, Alexandre Paes <[hidden email]> wrote:
Hi,
In case you want to stick with the button this should do it as well.


renderContentOn: html

     html button onClick: 'window.close()'; value: 'Close window'


Cheers,

Alexandre


Em 09/13/07 09:40 Petr Štěpánek escreveu:

> Hi,
>  I found this help on opening a popup window. My question is how to
> close it (using a button inside the window).
>
> renderCloseOn: html
>
>     html form: [
>         html html: '<a href="javascript: window.close ()">Close
> window</a>'    "<-- hack "
>
> "I need something like:"
>
>         html submitButton
>             class: 'button-other';
>             callback: [aaaa.... close the widow... how?];
>             text: 'Close window'
>
>     ]

>
>
> Thanks a lot!
>    Petr
>
> On 6/30/07, *Philippe Marschall* < [hidden email]
> <mailto:[hidden email]>> 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@600;
>                     callback: [ WARenderLoop new call: WACounter new ];
>                     with: 'popup counter'
>
>     Philippe
>
>
>     2007/6/30, Rajeev Lochan <[hidden email]
>     <mailto:[hidden email]>>:

>      > 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@500
>      >  text: 'My Popup'
>      >
>      >  Avi"
>      >
>      >
>      >
>      > Help Needed,
>      > Rajeev
>      >
>      >
>      >
>      > --
>      > Rajeev Lochan
>      >
>      > Co-founder, AR-CAD.com
>      >
>      > <a href="http://www.ar-cad.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://www.ar-cad.com
>      > +91 9212090622 (Gurgaon)
>      > 080 65355873 (Bangalore)
>      > _______________________________________________

>      > Seaside mailing list
>      > [hidden email]
>     <mailto: [hidden email]>
>      > <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
>      >
>      >
>     _______________________________________________
>     Seaside mailing list
>     [hidden email]
>     <mailto:[hidden email]>
>     <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 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 >
>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Seaside mailing list
> [hidden email]
> <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
_______________________________________________
Seaside mailing list
[hidden email]
<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



_______________________________________________
Seaside mailing list
[hidden email]
<a onclick="return top.js.OpenExtLink(window,event,this)" href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" target="_blank">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside




--
Rajeev Lochan

Co-founder, AR-CAD.com

http://www.ar-cad.com
+91 9243468076 (Bangalore)
080 65355873
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside