Uploaded image for project: 'Cocoon'
  1. Cocoon
  2. COCOON-1718

Ajax client library handling script tags

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • 2.1.8, 2.1.9, 2.2
    • None
    • Blocks: Ajax
    • None

    Description

      The way Ajax currently handles script tags in browser updates, the scripts are evaluated before the HTML elements are replaced.
      Because scripts may call for example document.getElementById() they act on the old elements, that are replaced later on.
      It would be better to evaluate the scripts after the element has been replaced.

      The attached file contains a few overridden functions from from the default cocoon-ajax.js file to postpone script evaluation until after element replacement.

      I'm still investigating a possible problem with IE.

      Attachments

        1. patch_cocoon-ajax.js_1_1_8.txt
          5 kB
          Freek Segers
        2. ASF.LICENSE.NOT.GRANTED--cocoon-ajax.js
          5 kB
          Freek Segers

        Activity

          People

            Unassigned Unassigned
            fsegers Freek Segers
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: