CoreCommunity ExtensionsIncubatorDistributionsTYPO3 4.5 ProjectsTYPO3 4.6 ProjectsTYPO3 4.7 ProjectsTYPO3 6.0 ProjectsTYPO3 6.1 ProjectsTYPO3 6.2 Projects (+)

Task #26371

Extend the AJAX page object with TYPO3 API Javascript

Added by Dirk Wildt about 2 years ago. Updated 4 months ago.

Status:Accepted Start date:2011-04-27
Priority:Should have Due date:
Assignee:Dirk Wildt % Done:

100%

Category:AJAX Spent time: -
Target version:4.7.0 Estimated time:0.00 hour
Votes: 0

Description

The preconfigured AJAX page object of the browser removes all header code of course. This causes sometimes bugs:

  • The TYPO3 API is extending the HTML head with some Javascript snippets like openPic in some cases

The AJAX page object has to be extended with this needed Javascript snippets.

I take care of it.
Dirk

History

Updated by Dirk Wildt about 2 years ago

  • Target version changed from 3.6.4 to 3.7.1

Updated by Dirk Wildt over 1 year ago

  • Target version changed from 3.7.1 to 3.7.8

Updated by Dirk Wildt about 1 year ago

  • Target version changed from 3.7.8 to 4.3.0

Updated by Dirk Wildt 6 months ago

  • Due date set to 2012-12-09
  • Status changed from New to Closed
  • % Done changed from 0 to 100
  • Estimated time changed from 2.00 to 0.00

I hadn't any time :(

Updated by Dirk Wildt 6 months ago

  • Due date deleted (2012-12-09)
  • Status changed from Closed to Accepted
  • Target version changed from 4.3.0 to 4.4.0

See possible solution below:

  ////////////////////////////////////////////////////////////////////////////////////////////
  //
  // AJAX page object

[globalString = GP:tx_browser_pi1|segment=single] || [globalString = GP:tx_browser_pi1|segment=list] || [globalString = GP:tx_browser_pi1|segment=searchform]
  // Don't handle header of content element
  lib.stdHeader >
  // Don't wrap content element with a default div
  tt_content.stdWrap >
  // Don't prefix the content element with a comment
  tt_content.list.20.stdWrap.prefixComment >  
  // Remove the crrent page obeject
  page >
  // Create a page object for AJAX 
  page < plugin.tx_browser_pi1.javascript.ajax.page
  page.10.select.andWhere.cObject.10.value = list_type = 'browser_pi1' AND colPos = 0
  page.20 = TEXT
  page.20.value (
<script type="text/javascript">
/*<![CDATA[*/
<!--
  function openPic(url,winName,winParams) {
    var theWindow = window.open(url,winName,winParams);
    if (theWindow)    {theWindow.focus();}
  }
// -->
/*]]>*/

Updated by Dirk Wildt 4 months ago

  • Target version changed from 4.4.0 to 4.7.0

Also available in: Atom PDF