Skip to main content

Bug Tracker

Side navigation

#5586 closed bug (invalid)

Opened December 03, 2009 07:44AM UTC

Closed December 03, 2009 05:15PM UTC

trigger(<event>) doesn't work in some cases with FireFox 3.5

Reported by: otiili Owned by:
Priority: major Milestone: 1.4
Component: unfiled Version: 1.3.2
Keywords: trigger Cc:
Blocked by: Blocking:
Description

I have encountered some problems with trigger(<event>) method in aspx page

the jQuery code sample is below:

jQuery(document).ready( function ( e )

{

...

$('.googlesearch').bind('keydown', function ( e ) {

if ( e.which == 13 )

{

$('.googlesubmit').trigger('click');

}

})

...

})

and the aspx code sample is like this:

<asp:textbox ID="inputSearch" runat="server" AccessKey="4" OnTextChanged="SearchText_TextChanged" CssClass="quicksearchinput googlesearch" ToolTip='<%#Translate("/templates/search/quicksearch")%>' />

<asp:LinkButton runat="server" ID="QuickSearchButton" OnClick="QuickSearchButton_Click" CausesValidation="False" CssClass="submit button">

<input type="button" class="submit button googlesubmit" value="<%=Translate("/templates/search/quicksearch")%>" onclick="parentElement.click()"/>

</asp:LinkButton>

This works on ie7/8, Google Chrome but with FF3.5 the trigger doesn't seem to actually trigger click event.

I have tested this by adding alerts before $('.googlesubmit').trigger('click') , which does show and adding $('googlesubmit').click( function (e )

{

alert('foo')

}), which doesn't work ( neither, obviously, works the intended action )

Attachments (0)
Change History (1)

Changed December 03, 2009 05:15PM UTC by dmethvin comment:1

resolution: → invalid
status: newclosed

It would be best to get some help in the jQuery-en forums to see if this is a programming bug rather than a jQuery one. If it's narrowed down to jQuery, please reopen with a test case that does not require ASPX. You may be able to create one from the generated HTML. It should include only the minimum script and html required to demonstrate the issue.