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")
        .click(function(e,arg){
                        
$(this).closest("li.ui-selectee").addClass("ui-selected").siblings
().removeClass("ui-selected");

                        if($(this).attr("target")){
                                
window.open($(this).attr("href"),$(this).attr("target"),"");
                                return false;
                        }
                        else
                                location.href = $(this).attr("href");
        })

$("#menu_ma li")
        .hover(
                function(){
                        $(this).addClass("ui-state-highlight cursor-pointer");
                },
                function(){
                        $(this).removeClass("ui-state-highlight 
cursor-pointer");
                })
         .click(function(e,a){
                var link = $(this).find("a");
                if(a == undefined)
                        link.trigger('click','manual')
                else
                        return true;
})




Reply via email to