[Seaside] Call Popup window and management session data

Bany, Michel mbany at cincom.com
Fri Feb 1 17:15:30 UTC 2008


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: seaside-bounces at lists.squeakfoundation.org
[mailto:seaside-bounces at lists.squeakfoundation.org] On Behalf Of Dario
Trussardi
	Sent: jeudi, 31. janvier 2008 18:48
	To: seaside at lists.squeakfoundation.org
	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: 400 at 400
	        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
	 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/seaside/attachments/20080201/bdd0c4b7/attachment.htm


More information about the seaside mailing list