[ 
https://issues.apache.org/struts/browse/WW-2501?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jeromy Evans resolved WW-2501.
------------------------------

    Resolution: Not A Problem
      Assignee: Jeromy Evans


I'm satisfied that there's no problem with the tags. It is quite easy for 
developers to write javascript that doesn't execute but this version of Dojo 
can't offer any further assistance in those cases. 

I have updated the documentation to clarify the causes:  
latest version: http://cwiki.apache.org/confluence/display/WW/Ajax+Tags

* inline scripts are ALWAYS removed from the response.  They MAY then be insert 
back again, independent of whether they are executed or not and this is browser 
dependent  *

case 1. executeScripts=true and separateScripts=true: valid javascript is 
executed and is not visible in the DOM. Code that makes assumptions on the 
scope of the "this" variable will not work, otherwise this combination works 
best.

case 2. executeScripts=true and separateScripts=false: valid javascript MAY be 
executed and MAY be visible in the DOM (browser dependent).  The code is 
correctly passed to the browser to be executed; the browsers often fail 
silently though (such as if its not valid for a <script> node to be created at 
the target position in the DOM).

case 3. executeScripts=false: javascript MAY be executed and MAY be visible in 
the DOM (browser dependent). MAY because IE sometimes executes scripts written 
to the DOM via innerHTML.  

The Dojo code is doing the best it can do under the situation. 

The operation for the parseContent attribute is completely independent of this 
issue.

The issues encountered with the doubleselect tag are the fault of the 
doubleselect tag's inline javascript.



> No JavaScript in sx:div
> -----------------------
>
>                 Key: WW-2501
>                 URL: https://issues.apache.org/struts/browse/WW-2501
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Plugin - Dojo Tags
>    Affects Versions: 2.1.0
>            Reporter: Alberto José Rodríguez Rodríguez
>            Assignee: Jeromy Evans
>            Priority: Critical
>             Fix For: 2.1.3
>
>
> Time ago I noticed that javascript were removed in the pages linked by 
> <sx:div ..>.
> Parameters executeScripts and separateScripts don't solve 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