Feature #20952

Add inline Javascript rendering type for TYPO3AJAX

Added by Jeff Segars over 10 years ago. Updated over 9 years ago.

Status:
Closed
Priority:
Should have
Assignee:
Category:
-
Target version:
-
Start date:
2009-08-28
Due date:
% Done:

0%

PHP Version:
5.3
Tags:
Complexity:
Sprint Focus:

Description

The ajax handling in TYPO3AJAX supports several output formats (plain text, JSON, XML) but inline Javascript would be a nice addition. iFrames are often used for transporting AJAX data and rather than returning pure JSON, you want the JSON contents embedded in a script tag and assigned to a variable instead. The attached patch adds a new rendering type to create this inline script.

Note: This is particularly useful inside frontend editing, where the editing form is rendered inside an iframe. When editing is complete, we can return inline Javascript inside the iframe and then pass that data back to the parent page.

(issue imported from #M11819)

11819.diff View (1.2 KB) Administrator Admin, 2009-08-28 22:35

11819_v2.diff View (1.24 KB) Administrator Admin, 2009-09-16 16:33

History

#1 Updated by Jeff Segars about 10 years ago

Committed v2 patch to trunk in r5945.

Also available in: Atom PDF