You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Christoph Leiter (Commented) (JIRA)" <ji...@apache.org> on 2012/02/20 12:59:36 UTC

[jira] [Commented] (WICKET-4111) addDomReadyEvent broken for IE

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

Christoph Leiter commented on WICKET-4111:
------------------------------------------

I can reliably reproduce this with the given testcase by setting the wicket version in the pom to 1.5.4 and adding
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js" />
to the <head>. There seems to be some conflict with jquery. The error message is:

SCRIPT5007: Unable to get value of the property 'addDomReadyEvent': object is null or undefined 
wicket-ajax-ver-1327324821063.js, line 2471 character 1
                
> addDomReadyEvent broken for IE
> ------------------------------
>
>                 Key: WICKET-4111
>                 URL: https://issues.apache.org/jira/browse/WICKET-4111
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.5.1
>         Environment: IE 7-9
>            Reporter: Matthias Piepkorn
>            Assignee: Martin Grigorov
>              Labels: core, event, ie, javascript
>             Fix For: 1.4.19, 1.5.2
>
>         Attachments: wicket-qs-domready.zip
>
>
> Wicket.Event.addDomReadyEvent is broken in IE since 1.5.1. I identified WICKET-4080 as the cause of the problem: onreadystatechange with readyState="loaded" is sometimes fired before the document is fully loaded, causing scripts that reference DOM nodes to fail.
> See http://msdn.microsoft.com/en-us/library/ms534359%28v=vs.85%29.aspx for the order of the readystate events.
> The attached quickstart reproduces the issue (you may need to F5 a few times as it does not happen reliably). The actual JS error is:
> SCRIPT5007: The property "onkeydown" has no value: The object is null or undefined
> wicket-autocomplete-ver-1317728550188.js, Line 91 Character 9

--
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