Project

General

Profile

Actions

Feature #20952

closed

Add inline Javascript rendering type for TYPO3AJAX

Added by Jeff Segars over 14 years ago. Updated over 13 years ago.

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

0%

Estimated time:
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)


Files

11819.diff (1.2 KB) 11819.diff Administrator Admin, 2009-08-28 22:35
11819_v2.diff (1.24 KB) 11819_v2.diff Administrator Admin, 2009-09-16 16:33
Actions

Also available in: Atom PDF