[Seaside] jQuery anchor and multiple div update

dtrussardi at tiscali.it dtrussardi at tiscali.it
Mon Jun 10 10:33:59 UTC 2013


> Hi Dario, 
> I am very new at this, and I am very interested in a snipet of your working
> solution.
> Thanks very much..

this is my code:

renderContentOn: html

	" rendering button for gestione scroll fascie orarie "
	html div class:'floatLeft'; with:[
			html anchor
				script: (html jQuery this button
							text: true;
							primaryIcon:  'ui-icon-circle-minus');
				title: 'Precedente';
				onClick: ( html jQuery ajax
          					script: [ :s | s << (s jQuery:  #'baseid')  html:[:h| "A manage counter"	self incrementaIndex: false. 
																"A1 first update "		self renderingBaseOn:  h].	

									s << (s jQuery: #'orarioRiferimentoid')  html:[:h| "B second update " ( self renderOrarioRiferimentoOn: h)]]
				with: '<'].
	" The first ID update by A1"
	html div id: #'baseid'
		with:[ self renderingBaseOn: html].
	"The second ID update by B"		
	html div id: #'orarioRiferimentoid'; class:'floatLeft';class: 'orarioFont'; 
				 with: [self renderOrarioRiferimentoOn: html].

Where	 renderingBaseOn: 			and 	renderOrarioRiferimentoOn: 		render some data based on the state of index update by  A

I hope it is enough to understand.


More information about the seaside mailing list