By: khanhvu
Date: 2006-12-08
Time: 06:12
|
TBS and xajaxHi Skroll,
I have been googled for TBS and xajax (http://www.xajaxproject.org) so long but did'nt find any help. People can make Smarty with xajax together but I love TBS and finding a way to make TBS and xajax working together. I think this will be a perfect combination. Can you make it works ? Thank you very much, Skroll. |
||
By: ioguix
Date: 2006-12-08
Time: 10:37
|
Re: TBS and xajaxHello,
What's your problem with xajax & TBS ? I used already them together without any difficulties... -- ioguix |
||
By: khanhvu
Date: 2006-12-08
Time: 12:03
|
Re: TBS and xajaxHi ioguix,
I'm newbie to xajax, actually I don't know how save xajax response object to TBS varialbe then out put to html Here is the code: function refreshContent($formValues) { $response = new xajaxResponse(); $newContent = 'aaa'; $response->addAssign('content', 'innerHTML', $newContent); return $response; } // Generic xajax calls $xajax->registerFunction('refreshContent'); $xajax->processRequests(); // Initial layout of the page $TBS->LoadTemplate('main.html'); $TBS->MergeBlock('content', refreshContent); $TBS->MergeField('xajaxJavascript', $xajax->getJavascript('./inc/xajax/')); $TBS->Show(TBS_OUTPUT + TBS_NOTHING); The output prints entire javascript code maded by xajax and ofcourse it didn't work. Can you show me a working sample ? Thank you very much. |
||
By: ioguix
Date: 2006-12-08
Time: 12:47
|
Re: TBS and xajaxHello,
Here a working sample : XHTML :
php :
It's a very simple sample. Each time you click the button, a 'tralalalala' option will be append to the select list. Hope this will help you. Cheers, |
||
By: khanhvu
Date: 2006-12-08
Time: 15:19
|
Re: TBS and xajaxThank you very much, ioguix
I will try your exampe and figure out. |
||
By: khanhvu
Date: 2007-02-01
Time: 09:07
|
Re: TBS and xajaxHi ioguix,
Thank you very much for your help on making TBS + xajax. Now the problem is: I'm using OOP in my CMS. Can you make an instantiation like this: $xajax = new xajax('index.php?action=login'); Notice: 'index.php?action=login' I can not make this worked. Waiting you ... |
||
By: ioguix
Date: 2007-02-01
Time: 10:16
|
Re: TBS and xajaxMh, sorry, I don't really anderstand what you are trying to do...
I don't anderstand what the link between OOP and GET parameters... By the way, there is docs and a forum about xajax there : http://wiki.xajaxproject.org/Main_Page |
||
By: sheepy
Date: 2007-02-05
Time: 09:10
|
Re: TBS and xajaxxajax and tbs are two different system, and so you cannot initiate both using their native constructor.
However you can always write a custom function or class that do it for you, allowing you to call both system's function from the same object. Just don't expect you can save the trouble - you'll only get more. |