[TYPO3-dev] Status report for xaJax

Elmar Hinz elmar.DOT.hinz at team.MINUS.red.DOT.net
Mon Mar 20 10:44:31 CET 2006


Dmitry Dulepov schrieb:
> I tried using xajax in FE extension but it was not very successful. I
> got random hangs of the typo3 installation. Xajax works fine in
> non-typo3 project.
> 

I did a FE implementation wich works fine. But that was before I moved
xajax to an own extension. The extension also works fine in xajax_example.

I needed to deal with entities in I.E. Maybe this can help you:


27 	  if(is_array($vars['tx_sbpro_pi1'])){
28 	    foreach($vars['tx_sbpro_pi1'] as $key => $value)
29 	      $vars['tx_sbpro_pi1'][$key] = utf8_decode($value);
30 	  }
31 	  $trans->piVars = $vars['tx_sbpro_pi1'];
32 	  $out = $trans->controller();
33
34 	  $tbl=get_html_translation_table(HTML_ENTITIES);
35 	  unset ($tbl["<"]);
36 	  unset ($tbl[">"]);
37 	  unset ($tbl["'"]);
38 	  unset ($tbl['"']);
39 	  unset ($tbl['&']);
40 	  $out =  str_replace(array_keys($tbl),array_values($tbl),$out);
41
42 	  $objResponse = new xajaxResponse();
43 	  $objResponse->addAssign('tx-sbpro-pi1', 'innerHTML' , $out);
44 	  return $objResponse;


Regards

Elmar








More information about the TYPO3-dev mailing list