Welcome Guest, Not a member yet? Register   Sign In
Xajax intergration
#1

[eluser]Mat-Moo[/eluser]
I've been following the steps for xajax intergration and copied the test class etc, but all I keep getting is "Fatal error: Class 'xajaxUserFunction' not found in public_html/system/application/libraries/xajax.php on line 1258". I've tried many thing but just keep ending up with that, what am I missing?
#2

[eluser]Mat-Moo[/eluser]
Sorry to do this, but bump Smile
#3

[eluser]Adam Balachowski[/eluser]
My Xajax for Codeigniter: (xajax 0.5 rc2)

folder = /xajaxci

xajax_core - copy in folder/system/application/libraries

My library class: folder/system/application/libraries/MY_xajax.php

Code:
<?php if (!defined('BASEPATH')) exit('No direct script access allowed');

if ( ! class_exists('xajax')) {
    require_once(APPPATH.'libraries/xajax_core/xajax.inc'.EXT);
}


/**
* Xajax object for Codeigniter
*
*/
class MY_xajax extends xajax {

    // Object Constructor
    public function MY_xajax () {
        $obj =& get_instance();
        
        log_message('debug', "MY_xajax Class Initialized");
        
        $obj->xajax = new xajax();
        $obj->ci_is_loaded[] = 'xajax';
    }

} // END LIAxajax class

/* End of file MY_xajax.php */
/* Location: ./system/application/libraries/MY_xajax.php */

Copy /xajax_js in folder/

controller:

Code:
// Load  Xajax
$this->load->library('MY_xajax');

Now we have Xajax object in Codeigniter:

Code:
$this->xajax->processRequest();
$this->xajax->registerFunction(array('getSid',&$this,'getSid'));
$data['xajax_js'] = $this->xajax->getJavascript(base_url());
#4

[eluser]Mat-Moo[/eluser]
You superstar! That worked for my unlike the one in the wiki!
#5

[eluser]CARP[/eluser]
Hi guys

I've followed Adam's micro-tutorial, and all went ok. I'm using latest CI, xajax version. I verified xajax is loading ok, then the javascript shows in the view, and all goes right, until I click an example button in the view, and nothing happens.

However, I've got this (when doubleposted data using firebug feature) error? message..

Code:
&lt;?xml version="1.0" encoding="utf-8" ?&gt;<xjx><cmd cmd="dbg">SInvalid function request received; no request processor found with this name.</cmd></xjx>

Searching google, found this
http://community.xajaxproject.org/viewto...401#p20401

Then changed the order of the function calls (registerfunction before processrequest)

and all went AWESOME Smile
#6

[eluser]Thiago Luiz[/eluser]
Hi, can someone tell me how i can use xajax and where i find it?
#7

[eluser]pistolPete[/eluser]
http://xajaxproject.org/en/docs-tutorials/
#8

[eluser]Thiago Luiz[/eluser]
I want to do is recover some information from the database before submitting a form, the user enters an id in a field and lose focus, then ajax or xajax get the information from the database to the form. Somebody help me how to do this in Code Ignite?




Theme © iAndrew 2016 - Forum software by © MyBB