UI Plugin

AJAX updates must call eval() on all <script/> tags within responseText

Details

  • Type: Task Task
  • Status: Resolved Resolved
  • Priority: Critical Critical
  • Resolution: Fixed
  • Affects Version/s: 1.0
  • Fix Version/s: 1.0.1
  • Component/s: None
  • Labels:
    None

Description

The dialog already does this, but ensure all other components that update the innerHTML of an HTML element do the same.

Issue Links

Activity

Hide
Matthew Taylor added a comment -

Added GRAILSUI.util.replaceWithServerResponse(div, response) to be used whenever a div needs its contents replaced with server text. This sets the inner HTML as well as evaluating all scripts within it. This should be used from any component that does a partial page refresh.

Show
Matthew Taylor added a comment - Added GRAILSUI.util.replaceWithServerResponse(div, response) to be used whenever a div needs its contents replaced with server text. This sets the inner HTML as well as evaluating all scripts within it. This should be used from any component that does a partial page refresh.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: