onClick and jqDialog display

[email protected]
Newsgroups gmane.comp.lang.smalltalk.squeak.seaside
Message-ID <[email protected]>
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

	

_______________________________________________
seaside mailing list
[email protected]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.