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

Frank van Lankvelt commented on WICKET-1932:
--------------------------------------------

In Wicket.Head.Contributor.prototype.processScript, the eval() method is called 
(in the quickstart) with the string
<!--/*--><![CDATA[/*><!--*/
alert('xxx');
/*-->]^]^>*/
I'm sure that quite some time has gone into this construction, but IE7 doesn't 
show the alert.

Changing the eval on line 1450 (revision 713975 on wicket-1.3.x branch) to
eval("//" + text);
fixes the problem for JavascriptTemplate based header contributions.  (or 
others that use the same pre- and postfix for javascript code)

> IE7 doesn't evaluate inline javascript without element id
> ---------------------------------------------------------
>
>                 Key: WICKET-1932
>                 URL: https://issues.apache.org/jira/browse/WICKET-1932
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.3.5
>            Reporter: Frank van Lankvelt
>            Assignee: Matej Knopp
>         Attachments: ie7eval.tar.gz
>
>
> The javascript as generated by the JavascriptUtils, is not evaluated by the 
> IE7 eval().  An AJAX response with javascript, but no element id, does not 
> lead to execution in Wicket.Head.Contributor.prototype.processScript.
> Prepending the SCRIPT_CONTENT_PREFIX with "//" seems to fix the problem.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to