Die TYPO3 Mailingliste - nicht fragen: lesen!
This is a discussion on [TYPO3] xajax and realurl within the typo3-english@lists.netfielders.de forums, part of the TYPO3-Mailinglists: ENGLISH category; Hi all, Sorry for posting again, but I've still 1 problem left while getting my extension compatible with real_url. ...
|
|||||||
| Registrieren | Hilfe | Benutzerliste | Kalender | Suchen | Heutige Beiträge | Alle Foren als gelesen markieren |
|
#1
|
|||
|
|||
|
Hi all,
Sorry for posting again, but I've still 1 problem left while getting my extension compatible with real_url. It seems that xajax doesn't work with real_url. When I do a xajax request I get the error 'there is whitespace in your response' The exact same code works perfectly in a typo3 installation without real_url. Maybe I need to make some exteption in my localconf.php or .htaccess file, but I can't find any information on google... Does anyone know if I have to make changes to my real_url, or something else, and what those changes are??? This is my code I use to make the xajax request: $objResponse->addAssign('itemprijs[' . $uid . ']', 'innerHTML', $this- >bedrag($productprijs)); $objResponse->addAssign('btwbedrag', 'innerHTML', $this->bedrag ($btw)); $objResponse->addAssign('totaalprijs', 'innerHTML', $this->bedrag ($totaalprijs)); $objResponse->addAssign("ajax_error", "innerHTML", ""); $objResponse->addAssign('aantal_producten', 'innerHTML', $this- >countProductsInCart()); $objResponse->addAssign('item[' . $uid . ']', 'value', '' . $aantal); $objResponse->addScript("checkMinimumPrice(" . $this- >getMinimumOrderSize() . ")"); //return the XML response return $objResponse->getXML(); removing all the addAssign / addScript lines still gives the same error... This is my localconf.php code for real_url: $TYPO3_CONF_VARS['EXTCONF']['realurl'] = array( 'www.kunstboekwinkel.nl' => array( 'init' => array( 'adminJumpToBackend' => 1, 'enableCHashCache' => 1, 'enableUrlDecodeCache' => 1, 'enableUrlEncodeCache' => 1, ), 'redirects' => array(), 'preVars' => array( array( 'GETvar' => 'no_cache', 'noMatch' => 'bypass', ), ), 'pagePath' => array( 'type' => 'user', 'userFunc' => 'EXT:realurl/ class.tx_realurl_advanced.php:&tx_realurl_advanced->main', 'spaceCharacter' => '-', 'languageGetVar' => 'L', 'expireDays' => 7, 'rootpage_id' => 27, // 'encodeTitle_userProc'=>'EXT:realurl/ tx_realurl_encodeTitle_userProc.php:&user_encodeDa tes', ), 'postVarSets' => array( '_DEFAULT' => array( 'catalogus' => array( array( 'GETvar' => 'tx_AmbitionWebshopFE_pi1[pgroup]', 'lookUpTable' => array( 'table' => 'tx_AmbitionWebshopBE_groups', 'id_field' => 'uid', 'alias_field' => 'title', 'spaceCharacter' => '-', 'addWhereClause' => ' AND NOT deleted', 'useUniqueCache' => 1, 'useUniqueCache_conf' => array( 'strtolower' => 1, ), ), 'no_match' => 'bypass', ), array ( 'GETvar' => 'tx_AmbitionWebshopFE_pi1[amb_product_id]', 'lookUpTable' => array( 'table' => 'tx_AmbitionWebshopBE_products', 'id_field' => 'uid', 'alias_field' => 'title', 'spaceCharacter' => '-', 'addWhereClause' => ' AND NOT deleted', 'useUniqueCache' => 1, 'useUniqueCache_conf' => array( 'strtolower' => 1, ) ), 'no_match' => 'bypass', ), ), ), ), 'fixedPostVars' => array(), 'fileName' => array( 'index' => array ( ), 'defaultToHTMLsuffixOnPrev' => 1, ), ), ); _______________________________________________ TYPO3-english mailing list TYPO3-english (AT) lists (DOT) netfielders.de http://lists.netfielders.de/cgi-bin/.../typo3-english |
|
#2
|
|||
|
|||
|
I've never used xajax, but use the Firebug extension (http://getfirebug.com) to debug your ajax calls and responses. You will be able to see very clearly what the exact issue is.
Have a good day, sudara -----Original Message----- From: typo3-english-bounces (AT) lists (DOT) netfielders.de on behalf of Rens Admiraal Sent: Tue 5/8/2007 9:45 PM To: TYPO3 English Subject: [TYPO3] xajax and realurl Hi all, Sorry for posting again, but I've still 1 problem left while getting my extension compatible with real_url. It seems that xajax doesn't work with real_url. When I do a xajax request I get the error 'there is whitespace in your response' The exact same code works perfectly in a typo3 installation without real_url. Maybe I need to make some exteption in my localconf.php or .htaccess file, but I can't find any information on google... Does anyone know if I have to make changes to my real_url, or something else, and what those changes are??? This is my code I use to make the xajax request: $objResponse->addAssign('itemprijs[' . $uid . ']', 'innerHTML', $this- >bedrag($productprijs)); $objResponse->addAssign('btwbedrag', 'innerHTML', $this->bedrag ($btw)); $objResponse->addAssign('totaalprijs', 'innerHTML', $this->bedrag ($totaalprijs)); $objResponse->addAssign("ajax_error", "innerHTML", ""); $objResponse->addAssign('aantal_producten', 'innerHTML', $this- >countProductsInCart()); $objResponse->addAssign('item[' . $uid . ']', 'value', '' . $aantal); $objResponse->addScript("checkMinimumPrice(" . $this- >getMinimumOrderSize() . ")"); //return the XML response return $objResponse->getXML(); removing all the addAssign / addScript lines still gives the same error... This is my localconf.php code for real_url: $TYPO3_CONF_VARS['EXTCONF']['realurl'] = array( 'www.kunstboekwinkel.nl' => array( 'init' => array( 'adminJumpToBackend' => 1, 'enableCHashCache' => 1, 'enableUrlDecodeCache' => 1, 'enableUrlEncodeCache' => 1, ), 'redirects' => array(), 'preVars' => array( array( 'GETvar' => 'no_cache', 'noMatch' => 'bypass', ), ), 'pagePath' => array( 'type' => 'user', 'userFunc' => 'EXT:realurl/ class.tx_realurl_advanced.php:&tx_realurl_advanced->main', 'spaceCharacter' => '-', 'languageGetVar' => 'L', 'expireDays' => 7, 'rootpage_id' => 27, // 'encodeTitle_userProc'=>'EXT:realurl/ tx_realurl_encodeTitle_userProc.php:&user_encodeDa tes', ), 'postVarSets' => array( '_DEFAULT' => array( 'catalogus' => array( array( 'GETvar' => 'tx_AmbitionWebshopFE_pi1[pgroup]', 'lookUpTable' => array( 'table' => 'tx_AmbitionWebshopBE_groups', 'id_field' => 'uid', 'alias_field' => 'title', 'spaceCharacter' => '-', 'addWhereClause' => ' AND NOT deleted', 'useUniqueCache' => 1, 'useUniqueCache_conf' => array( 'strtolower' => 1, ), ), 'no_match' => 'bypass', ), array ( 'GETvar' => 'tx_AmbitionWebshopFE_pi1[amb_product_id]', 'lookUpTable' => array( 'table' => 'tx_AmbitionWebshopBE_products', 'id_field' => 'uid', 'alias_field' => 'title', 'spaceCharacter' => '-', 'addWhereClause' => ' AND NOT deleted', 'useUniqueCache' => 1, 'useUniqueCache_conf' => array( 'strtolower' => 1, ) ), 'no_match' => 'bypass', ), ), ), ), 'fixedPostVars' => array(), 'fileName' => array( 'index' => array ( ), 'defaultToHTMLsuffixOnPrev' => 1, ), ), ); _______________________________________________ TYPO3-english mailing list TYPO3-english (AT) lists (DOT) netfielders.de http://lists.netfielders.de/cgi-bin/.../typo3-english _______________________________________________ TYPO3-english mailing list TYPO3-english (AT) lists (DOT) netfielders.de http://lists.netfielders.de/cgi-bin/.../typo3-english |
| Themen-Optionen | Thema durchsuchen |
| Ansicht | Thema bewerten |
|
|
|
||||
| Thema | Autor | Forum | Antworten | Letzter Beitrag |
| [TYPO3-dev] Problem with uncached output in hook of tt_news + xajax | Georg Ringer | typo3-dev@lists.netfielders.de | 0 | 02.05.2007 08:12 |
| [TYPO3] realUrl - alias instead of realUrl | Camilla | typo3-english@lists.netfielders.de | 6 | 29.01.2007 15:25 |