any clue.

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

any clue.

Diogenes Moreira
Hi.

I'm playing with comet.. well i have a problem and i don't have any clue to wich is my mistake.

in the following code. when I do click in the link, the "llamados" div is filled with the seaside default page, and not with message result.

any clue is wellcome.

Best
D.
CTTest>>renderLlamadosOn: html
html table:[
html tableRow:[ 
html tableData:[ html text: 'Id' ].
html tableData:[ html text: 'Detalle'].
html tableData:[ html text: 'Accion']].
self class model llamados keysAndValuesDo:[ :key :value |
html tableRow:[
html tableData:[ html text: key].
html tableData:[ html text: value].
html tableData:[ html anchor onClick:(html jQuery ajax callback:[ self eliminar: key]); with:[ html text:'eliminar']]]]].! !


CTTest>>eliminar: numero
self class model sacarDeLaLista: numero.
self update! !



CT>>update
self pusher javascript:[ :script|
script << (script jQuery: #llamados)  load html: [ :canvas | self renderLlamadosOn: canvas ]]! !
http://about.me/diogenes.moreira

 

_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: any clue.

Lukas Renggli
Not sure, but likely ...

> (html jQuery ajax callback:[ self eliminar: key])

This only works in the context of a session, not as part of a comet stream pushed that is pushed all clients identically.

Lukas

--
Lukas Renggli
www.lukas-renggli.ch

_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: any clue.

Diogenes Moreira
upss.. oki... thanks..
http://about.me/diogenes.moreira

 


2011/11/10 Lukas Renggli <[hidden email]>
Not sure, but likely ...


> (html jQuery ajax callback:[ self eliminar: key])

This only works in the context of a session, not as part of a comet stream pushed that is pushed all clients identically.

Lukas

--
Lukas Renggli
www.lukas-renggli.ch

_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside



_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside