You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Andrea Del Bene (Commented) (JIRA)" <ji...@apache.org> on 2012/03/22 10:32:22 UTC

[jira] [Commented] (WICKET-4465) Autocomplete IE javascript error: 'target' is null or not an object

    [ https://issues.apache.org/jira/browse/WICKET-4465?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13235476#comment-13235476 ] 

Andrea Del Bene commented on WICKET-4465:
-----------------------------------------

That's the old problem with event.target property and IE. The property must be accessed in a safe mode like this:

var input = event.target ? event.target : event.srcElement;

See patch above.
                
> Autocomplete IE javascript error: 'target' is null or not an object
> -------------------------------------------------------------------
>
>                 Key: WICKET-4465
>                 URL: https://issues.apache.org/jira/browse/WICKET-4465
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket-extensions
>    Affects Versions: 1.5.5
>         Environment: javascript - IE7, IE8, IE9
>            Reporter: Ondrej Fafejta
>              Labels: javascript
>         Attachments: WICKET-4465.patch
>
>
> When I click to autocomplete textfield the javascript error bellow is shown.
> Webpage error details
> User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729)
> Timestamp: Thu, 22 Mar 2012 08:05:57 UTC
> Message: 'target' is null or not an object
> Line: 68
> Char: 1
> Code: 0
> URI: http://xxx:8080/wicket/resource/org.apache.wicket.extensions.ajax.markup.html.autocomplete.AutoCompleteBehavior/wicket-autocomplete-ver-C51E30D722C9620E9D06F141A171849F.js
> Wicket 1.5.4 works fine.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira