Call Popup window and management session data

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

Call Popup window and management session data

dtrussardi@tiscali.it
Hi All,
 
i work with seaside 2.6 and scriptaculos in VisualWorks 7.4.1.
 
Now i have my application with master web page for update data.
 
For create print document about the data i open popup window from master with command:
 
 A)      html script: 'window.open('ISTGstStampe' , 'Stampe' )
 
or:
 B)    html anchorWithPopupUrl : 'ISTGstStampe'
        name: 'Stampe'
        extent: [hidden email]
        togllgles: #(resizable')
        do: 'Lancio stampa'.
 
where ISTGstStampe is a seaside application with the task to create print preview about data.
 
Now i'm interest to pass argument ( for example : anCollection  about data to print )  to ISTGstStampe for management specif data to print.
 
But when open popup window it has specific session, and i lose the data in the master window session.
 
My question are:
 
    how i can pass reference from master web to slave page ?
 
    if i open popup window with method A)
            i can us javascript : 'referenceWindow.document.write (' ....
                                                                                                with data from specific instance of ISTGstStampe renderContentOn:  .
 
Any pointers would be greatly appreciated!

Thanks!

Dario
 

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

RE: Call Popup window and management session data

Sebastian Sastre-2
Hi Dario,
 
    I'm not sure to understand what you described right but you allways can use a common repository for any component. Even components of different seaside applications. Maybe you can use the repository to place that from the source component and take it from the client component,
 
    cheers,
 

Sebastian Sastre

 

 


De: [hidden email] [mailto:[hidden email]] En nombre de Dario Trussardi
Enviado el: Jueves, 31 de Enero de 2008 15:48
Para: [hidden email]
Asunto: [Seaside] Call Popup window and management session data

Hi All,
 
i work with seaside 2.6 and scriptaculos in VisualWorks 7.4.1.
 
Now i have my application with master web page for update data.
 
For create print document about the data i open popup window from master with command:
 
 A)      html script: 'window.open('ISTGstStampe' , 'Stampe' )
 
or:
 B)    html anchorWithPopupUrl : 'ISTGstStampe'
        name: 'Stampe'
        extent: [hidden email]
        togllgles: #(resizable')
        do: 'Lancio stampa'.
 
where ISTGstStampe is a seaside application with the task to create print preview about data.
 
Now i'm interest to pass argument ( for example : anCollection  about data to print )  to ISTGstStampe for management specif data to print.
 
But when open popup window it has specific session, and i lose the data in the master window session.
 
My question are:
 
    how i can pass reference from master web to slave page ?
 
    if i open popup window with method A)
            i can us javascript : 'referenceWindow.document.write (' ....
                                                                                                with data from specific instance of ISTGstStampe renderContentOn:  .
 
Any pointers would be greatly appreciated!

Thanks!

Dario
 

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

RE: Call Popup window and management session data

Bany, Michel
In reply to this post by dtrussardi@tiscali.it
Dario,
 
If I am not mistaken, I believe the following should open the popup with the same Seaside session.
Then your master can use the session object to pass your collection to your slave.  
 
html anchorWithPopupUrl: (html urlForAction: [WARenderLoop new call: YourSlave new]) ...
 
HTH
Michel.
 

From: [hidden email] [mailto:[hidden email]] On Behalf Of Dario Trussardi
Sent: jeudi, 31. janvier 2008 18:48
To: [hidden email]
Subject: [Seaside] Call Popup window and management session data

Hi All,
 
i work with seaside 2.6 and scriptaculos in VisualWorks 7.4.1.
 
Now i have my application with master web page for update data.
 
For create print document about the data i open popup window from master with command:
 
 A)      html script: 'window.open('ISTGstStampe' , 'Stampe' )
 
or:
 B)    html anchorWithPopupUrl : 'ISTGstStampe'
        name: 'Stampe'
        extent: [hidden email]
        togllgles: #(resizable')
        do: 'Lancio stampa'.
 
where ISTGstStampe is a seaside application with the task to create print preview about data.
 
Now i'm interest to pass argument ( for example : anCollection  about data to print )  to ISTGstStampe for management specif data to print.
 
But when open popup window it has specific session, and i lose the data in the master window session.
 
My question are:
 
    how i can pass reference from master web to slave page ?
 
    if i open popup window with method A)
            i can us javascript : 'referenceWindow.document.write (' ....
                                                                                                with data from specific instance of ISTGstStampe renderContentOn:  .
 
Any pointers would be greatly appreciated!

Thanks!

Dario
 

_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside