TYPO3Jack.net - Das TYPO3 Mailinglist Forum Archiv

Die TYPO3 Mailingliste - nicht fragen: lesen!

[TYPO3] xajax and realurl

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. ...


Zurück   TYPO3Jack.net - Das TYPO3 Mailinglist Forum Archiv > TYPO3-Mailinglists: ENGLISH > typo3-english@lists.netfielders.de

Registrieren Hilfe Benutzerliste Kalender Suchen Heutige Beiträge Alle Foren als gelesen markieren
  #1  
Alt 08.05.2007, 21:41
Rens Admiraal
Gast
 
Beiträge: n/a
Standard [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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
  #2  
Alt 09.05.2007, 09:10
Sudara Williams
Gast
 
Beiträge: n/a
Standard Re: [TYPO3] xajax and realurl

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
 

Themen-Optionen Thema durchsuchen
Thema durchsuchen:

Erweiterte Suche
Ansicht Thema bewerten
Thema bewerten:

Forumregeln
Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are an


Ähnliche Themen

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


Alle Zeitangaben in WEZ +1. Es ist jetzt 20:43 Uhr.


Powered by vBulletin® Version 3.7.2 (Deutsch)
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.1.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39