[TYPO3-ect] xaJax - Further development

Franz Holzinger franz at fholzinger.com
Wed Mar 28 21:27:54 CEST 2007


Hello Elmar,


>> This still does not work with MS Internet Explorer 6. The problem of not
>> passed no_cache=1 parameter remains.
>>
>> <script type="text/javascript">
>> /*<![CDATA[*/
>> var
>> xajaxRequestUri="http://thehomepage.com/index.php?id=1395&amp;no_cache=1";
> 
> it should look like: 
> 
> <script type="text/javascript">
> /*<![CDATA[*/
> var xajaxRequestUri="http://thehomepage.com/index.php?id=1395&no_cache=1";
> 
> 
> The bare & is the reason why the CDATA comment is required.
> 

thanks.

This undoing of one of the last bugfixes has fixed it now to work even
with MS Internet Explorer.
This will come into tt_products >= 2.5.2 .



$this->xajax = t3lib_div::makeInstance('tx_xajax');

	// Encoding of the response to iso-8859-1.
$this->xajax->setCharEncoding('iso-8859-1');
$reqURI = t3lib_div::getIndpEnv('TYPO3_REQUEST_SCRIPT') . '?' .
t3lib_div::getIndpEnv('QUERY_STRING');
$reqURI .= '&no_cache=1';
$this->xajax->setRequestURI($reqURI);

	// Do you want messages in the status bar?
$this->xajax->statusMessagesOn();

-------------------------------------------

$objResponse = new tx_xajax_response('iso-8859-1');

$artListKey = array_search('SEARCH', $this->codeArray);
if ($this->codeArray[$artListKey] == 'SEARCH')	{
	unset($this->codeArray[$artListKey]);
}

$idClass = 'FunctionId';
$content = $this->doProcessing('',true);
// $content = '<br /><strong>Content from AJAX server</strong><br />';

$objResponse->addAssign($idClass,'innerHTML', $content);

//return the XML response generated by the tx_xajax_response object
$rc = $objResponse->getXML();

--------------------------------------------------------

<script type="text/javascript">
var xajaxRequestUri="http://thehomepage.com/index.php?id=1395&no_cache=1";
var xajaxDebug=false;



- Franz



More information about the TYPO3-team-extension-coordination mailing list