You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Martin Grigorov (JIRA)" <ji...@apache.org> on 2011/06/30 12:04:28 UTC
[jira] [Assigned] (WICKET-3847) Modal window won't show in internet
explorer document mode 8
[ https://issues.apache.org/jira/browse/WICKET-3847?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Martin Grigorov reassigned WICKET-3847:
---------------------------------------
Assignee: Martin Grigorov
> Modal window won't show in internet explorer document mode 8
> ------------------------------------------------------------
>
> Key: WICKET-3847
> URL: https://issues.apache.org/jira/browse/WICKET-3847
> Project: Wicket
> Issue Type: Bug
> Components: wicket-core
> Affects Versions: 1.5-RC5.1
> Environment: Internet Explorer <=8
> Reporter: Sodasmile
> Assignee: Martin Grigorov
> Labels: ajax, modal, window
> Attachments: mowi.zip
>
>
> Plain modal window won't show after revision 1135146, WICKET-3782 Notifications before and after DOM node replacement (...) using Internet Explorer 9 in document mode quirks, 7 and 8. Works in document mode 9, Opera 11.11, Chrome 13.0.782.32 beta-m, Firefox 3.6.18 and 5.0
> Seems like the lines:
> var newElement = Wicket.$(element.id);
> Wicket.Event.publish('/dom/node/added', newElement);
> the 2nd time they run, element.id = "", which makes Wicket.$ (document.getElementById("")) crash, and an "ERROR: Wicket.Ajax.Call.processEvaluation: Exception evaluating javascript: [object Error]" is logged to the Wicket ajax debug window.
> Quick workaround: Somewhere in your code, include the following script:
> <script type="text/javascript">
> oldFu = Wicket.$;
> Wicket.$ = function(arg) {
> if (arg == null || typeof(arg) == "undefined" || arg == "") {
> return null;
> }
> return oldFu(arg);
> }
> </script>
> Where the difference to the original $ function is the arg=="" check
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira