[Seaside] onClick and jqDialog display

dtrussardi at tiscali.it dtrussardi at tiscali.it
Sat Mar 24 13:11:04 UTC 2018


Ciao,
	
	in the seaside 3.1 application i have a classic anchor declaration:


		html anchor 	
			callback:[  delta :=  self doSomethingWithJQDialogError  ];
							
			with: [html image
					url:  DTRFileLibrary / #greenupGif ;
					altText: 'Incrementa';
					title:'Incrementa' ]
	

	If the method 	 doSomethingWithJQDialogError    found a error display a relative dialog 
	
	using the code:

		 masterView jqDialog:(( WADTRGenericErrorManagement openOnException: ex onModel: aModel ) alert:true )

		where jqDialog is:

		jqDialog: aComponent 
			 ^ self wait: [ :cc | self show: aComponent
							onAnswer: cc
							delegation: (JQDialogDecorator new
										 delegate: aComponent;
										 yourself).
							 WARenderNotification signal ]

	

	Now i'm interested to display the dialog but inside a onClick ajax request.
	
		html anchor 	
			onClick: ( html jQuery ajax callback:[  delta:= doSomethingWithJQDialogError  ]);
		
			with: [html image
					url:  DTRFileLibrary / #greenupGif ;
					altText: 'Incrementa';
					title:'Incrementa' ]

	
	With this code the system don't  display the dialog.

	It display the dialog only after the browser page update.

	Does anyone have any guidance?


	Thanks,

		Dario

	



More information about the seaside mailing list