You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tapestry.apache.org by "Howard M. Lewis Ship (JIRA)" <ji...@apache.org> on 2010/05/17 07:47:42 UTC

[jira] Closed: (TAP5-1155) JavaScript initialization inside the partial page render Ajax response should be unquoted

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

Howard M. Lewis Ship closed TAP5-1155.
--------------------------------------

    Fix Version/s: 5.2.0
       Resolution: Fixed

> JavaScript initialization inside the partial page render Ajax response should be unquoted
> -----------------------------------------------------------------------------------------
>
>                 Key: TAP5-1155
>                 URL: https://issues.apache.org/jira/browse/TAP5-1155
>             Project: Tapestry 5
>          Issue Type: Improvement
>          Components: tapestry-core
>    Affects Versions: 5.2.0
>            Reporter: Howard M. Lewis Ship
>            Assignee: Howard M. Lewis Ship
>             Fix For: 5.2.0
>
>
> Currently, all the JS in an Ajax partial page render update comes inside the "script" key, as a long string. This is inefficient, since so many characters and quotes need to be escaped, and it is also harder to read and debug (especially since pretty printing is turned off, since pretty printing inside a string is no more readable that not).
> Instead, the calls to Tapestry.init() can be handled differently in an Ajax response, and encoded in a new key, "inits", an array of Tapestry.init() parameters (multiple calls to init because of the scheduling: early, normal, late).

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