[Seaside] Seaside anchors and #click event bubbling

Sebastian Sastre ssastre at seaswork.com
Tue Mar 11 12:05:21 UTC 2008


Probably I wasn't making the right question. It was easier than it sounds.
For the record I've achieved it by making:

window.location.href="http://localhost:9090/blahapp?_s=RTVYmewBoGXMVFVz&_k=YFZtd
ORz&5"

So.. when you hook the click event in some anchor, then stop the event (so
hooked parents dont see it) and then make the anchor's href to be assigned to
the window.location.href you got it: an anchor which'll make a Seaside full
render programatically invoked using javascript.

For submit buttons the story is different. They have this function .click()
which seems appealing at first but for this case of use it's useless due to the
stop of the click event. There is no problem in send submit() to the form but I
think I need more than that because Seaside use to identify the submit button
pressed to perform the button's callback and seems is using the button name
attribute. I'm still trying to figure out that part.

Note this will be usefull also for the future when Seaside where able to work
fully ajaxian,

	cheers,

Sebastian
 

> -----Mensaje original-----
> De: seaside-bounces at lists.squeakfoundation.org 
> [mailto:seaside-bounces at lists.squeakfoundation.org] En nombre 
> de Lukas Renggli
> Enviado el: Lunes, 10 de Marzo de 2008 09:40
> Para: Seaside - general discussion
> Asunto: Re: [Seaside] Seaside anchors and #click event bubbling
> 
> >         Any pointers/readings will be very much appreciated,
> 
> This has absolutely nothing to do with Seaside.
> 
> See: http://www.quirksmode.org/js/introevents.html
> 
> Lukas
> 
> -- 
> Lukas Renggli
> http://www.lukas-renggli.ch
> _______________________________________________
> seaside mailing list
> seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside



More information about the seaside mailing list