Re: [Seaside] [Q] asynchronous lightbox

"S.J.Chun" chunsj at embian.com
Fri Oct 12 05:51:52 UTC 2007


Hi,

here comes one more question; I've managed to copy some code like this;

createActionDlgOn: canvas

    canvas updater
		id: 'box';
		callback: [ :renderer |
			renderer div id: 'overlay'.
			renderer div
				id: 'lightbox';
                                     style: 'display: none';
				with: (NIMNextActionCreateComponent new)
		]

As you know this draws nothing, because I did not execute following
script

'function updateLightbox() {
	Element.fullscreen("overlay");
	Element.center("lightbox");
	Element.show("lightbox");
};'

How can I append/add this script to the above updater script? I've
bindly added this using "," operation but this does not work.

Thank you in advance.

PS)
I hope this kind of example be in the main scriptaculous package :-)


More information about the seaside mailing list