Ajax and Xaraya
- From: Brian Bain <xaraya (at) tefen.net>
- Date: Fri, 08 Dec 2006 07:14:45 -0800
Sorry, my example forgot an "include" line. I've inserted it in the
code below.
Brian Bain wrote:
> I've been working with AJAX on Xaraya, but for my responses I've simply
> created an AJAX theme (which outputs valid xml) and go through the
> normal route, loading the entire core.
>
> You have a good point though about the overhead, in the past I've crated
> my own scripts that sat along side the index.php and contained the
> following:
>
> <?
>
include 'includes/xarCore.php';
> xarCoreInit(XARCORE_SYSTEM_ADODB|XARCORE_SYSTEM_MODULES);
>
> //The rest of your script
> xarModAPIFunc(....);
> etc...
>
>
> ?>
>
> The xarCoreInit line tells the system to load the database (ADODB) and
> module apis. (A list of available apis to load are in the
> /includes/xarCore.php script.)
>
> I'm not too familiar with the ws.php script that exists in the root
> directory, but it was intended for "WebServices" which really should
> include ajax requests I would think.
>
> Brian
>
> j
>
>>
>>
>
> _______________________________________________
> Xaraya_devel mailing list
> Xaraya_devel (at) xaraya.com
> http://xaraya.com/mailman/listinfo/xaraya_devel
>
>
_______________________________________________
Xaraya_devel mailing list
Xaraya_devel (at) xaraya.com
http://xaraya.com/mailman/listinfo/xaraya_devel