[jQuery] Re: events propagation once again

2009-11-11 Thread norbi
After reading this group history and other google sources I came into the conclusion that it would not be possible to simulate the click by trigger("click"). Anyway, here is the code that is working fine for me. Maybe useful for someone. Thanks for help. Brgs Norbert $("#menu_ma a") .clic

[jQuery] Re: events propagation once again

2009-11-11 Thread norbi
Hi Matthew, Thank you for answering again. I am using jQuery 1.3.2 I am afraid that $("#fake_href").trigger('click').stopPropagation(); is not the right solution here. Since #fake_href is outside the ... I do not need to stop propagating here, but ... Your idea was interesting and I checked

[jQuery] Re: events propagation once again

2009-11-10 Thread Matthew
Hi Norbert, If you read up on the jQuery click event http://docs.jquery.com/Events/click you will see that it binds a click listener to whatever element you apply it to so in your case: $("#fake_href").click(); <- this is 'listening' for a user to click on some element with id = #fake_href, so

[jQuery] Re: events propagation once again

2009-11-10 Thread norbi
I am even more confused right now. I decided to create fake outside to avoid the propagation issue. $(document).ready(function(){ $("#menu_ma a") .click(function(e,a){ $(this).closest("li.ui-selectee").addClass("ui-selected").siblings ().removeClass("ui-select

[jQuery] Re: events propagation once again

2009-11-10 Thread norbi
Thank you for answering. >Looks like you could listen for a click on the 'li' then trigger a >click on the child 'a' tag without worrying about extracting the >target or href. I know that. I do that. I am extracting target due to workaround. If we skip that, when I catch the click in and then tr

[jQuery] Re: events propagation once again

2009-11-10 Thread Matthew
Sorry I can't be more specific Norbert, I'm at work and have limited time. Check out the "Trigger" event for jQuery: http://docs.jquery.com/Events/trigger Looks like you could listen for a click on the 'li' then trigger a click on the child 'a' tag without worrying about extracting the target or