hello
i was trying to send a form from frontend with mootools ajax
from the docs i understood i have to use connectors for ajax requests
but url i have to give in the javascript
i have created connectors.php like in myassets components directory
require_once dirname(dirname(dirname(dirname(dirname(__FILE__))))).’/config.core.php’;
require_once MODX_CORE_PATH.’config/’.MODX_CONFIG_KEY.’.inc.php’;
require_once MODX_CONNECTORS_PATH.’index.php’;
require_once MODX_BASE_PATH.’trunk/core/components/mycomponent/model/component.class.php’;
$modx->mycompo= new Mycompo($modx);
if (isset($_REQUEST[’resource’])) {
$modx->resource = $modx->getObject(’modResource’,$_REQUEST[’resource’]);
}
/* handle request */
$path = $modx->getOption(’processors_path’,$modx->comments->config,$modx->getOption(’base_path’).’trunk/core/components/mycomponent/processors/’);
$modx->request->handleRequest(array(
’processors_path’ => $path,
’location’ => ’’,
));
but my actual script is in processors directory
my example js code look like this
var myRequest = new Request({url: ’
http://localhost/some_url/processors/create.php’}).send(’......’);
i am confused about this
so what URL i have to give in the javascript url?
please help me here
thanks
venu