Hi,

Off the top of my head.... did you try triggering the kss click event?
I mean triggering the event from inside kss. I know there are examples of this on the site.


Best regards,
Luís Miguel Braga

Massimo Azzolini wrote:
Hi all,

I need to simulate a click on a kss-ed element on my page's DOM.

I have a button element:

<button id="my_id" class="selected">...</button>

on which there is a KSS selector:

button.selected:click{
... do stuff
}

I open a popup window and, clicking on a anchor/button/whatever on it,
I need to simulate a click on that "button.selected". In this way kss
stuff should run etc.

I did something like:
<script>
function f(){
    document.getElementById(my_id).click()
}
</script>

but it works if applied on a standard button (e.g. <button
tal:attributes="name string:theSubmitButton-$fieldName; id
string:theSubmitButton-$fieldName;" onClick="alert('The button was
clicked.');">...</button>), but not on kss-ed one...

any hint?

thanks, bye

massimo
_______________________________________________
Kss-devel mailing list
Kss-devel@codespeak.net
http://codespeak.net/mailman/listinfo/kss-devel

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
Kss-devel mailing list
Kss-devel@codespeak.net
http://codespeak.net/mailman/listinfo/kss-devel

Reply via email to