Welcome Guest, Not a member yet? Register   Sign In
Cjax (Ajax Framework) for CodeIgnater v5.1
#1

[eluser]Ajaxboy[/eluser]
---------------------------------------------------------------------------
|
| There is a new version here: 5.3
|
| http://ellislab.com/forums/viewthread/229077/
|
|-------------------------------------------------------------------------

AjaxFw 5.1-Stable is available!

Maintenance Release

Thank you so much for all these that took the time to contact me to let me know about issues you were having, that has helped us to find some hard to find bugs.

If some of you had not taken the time to report these problems I probably would have nothing to release!, be sure to let me know if you find issues or limitations.


Proceed to download

https://sourceforge.net/projects/cjax/fi...deIgnater/


Changes and new Features:

* Support for PHP 5.2

* New usage for Exec events:
Code:
$ajax->click($element_id, $actions);
$ajax->change($element_id, $actions);
$ajax->keyup($element_id, $actions);
$ajax->keydown($element_id, $actions);
$ajax->blur($element_id, $actions);

**Update in all demos, you can see these changes

This is alternative replacement wrapper of the clasic:

$ajax->Exec();

* Multiple APIs now work on overlays callbacks
for example you may use Cjax in overlays elements

This means that you can assign actions in an overlay before the overlay is loaded, for example an overlay having an ajax form, would require you to assign the form-api to the overlay (like in this example: http://cjax.sourceforge.net/examples/ajax_login.php) , and this was possible in 5.0, however this functionality was not previously tested with with multiple APIs in the overlay, and only could support one API, now it supports multiple in case you wanted to do other ajax operation within the scope of the overlay, now you in 5.1 you can have work with the scope of the overlay with as many APIs as you please, see sample below:

Eg:

Code:
$overlay = $ajax->overlay('resources/html/login.html');

//work within the scope of the overlay (elements in resources/html/login.html)

//type something in field (within the overlay), and it will change the title
$overlay->keyup('field1', $ajax->document('title','|field1|'));

//Example of adding one more operation in the overlay
$overlay->click('some_image', $ajax->call('ajax.php?url/to/controller'));

//submit ajax-form in the overlay
$overlay->click('button1', $ajax->form('ajax.php?ajax_login/handler'));

//assign the overlay to an element so when you click on it, the overlay pops
$ajax->click('#some_link', $overlay);
On 5.0, this was limited to 1 single API. Now you may add as many as you want.

* Minor improvements & minor bugs fixed
* Expanded the number of parameters you can pass from a to f to a to z.
* Fixed "select" bug that chopped off last item in the array list in "select" ajax API.
* Allow to require 'ajax.php' for codeIgnater, when before it had to be 'ajaxfw.php', (the old way still works)
* Validate & Uploader plugins integration
Plugin validate now integrates with plugin uploader.
Example:

Code:
$ajax->validate('buttonID', 'ajax.php?optional/pre/action', $rules)->uploader(
array(
  'target' => 'directory/where/files/are/uploaded/to',
  'text'=> 'Uploading Files..',
  'url' => 'ajax.php?optional/post/action', //form post after the files are uploaded
  'form_id' => 'form_id',
  'success_message' => 'Files Uploaded Successfully..',
  'suffix' => time()
  )
);




Demos
http://cjax.sourceforge.net/examples/




-cj




Messages In This Thread
Cjax (Ajax Framework) for CodeIgnater v5.1 - by El Forum - 09-16-2012, 03:13 PM
Cjax (Ajax Framework) for CodeIgnater v5.1 - by El Forum - 09-17-2012, 02:49 PM
Cjax (Ajax Framework) for CodeIgnater v5.1 - by El Forum - 10-29-2012, 04:11 PM
Cjax (Ajax Framework) for CodeIgnater v5.1 - by El Forum - 10-31-2012, 02:02 AM
Cjax (Ajax Framework) for CodeIgnater v5.1 - by El Forum - 10-31-2012, 01:54 PM
Cjax (Ajax Framework) for CodeIgnater v5.1 - by El Forum - 10-31-2012, 02:32 PM
Cjax (Ajax Framework) for CodeIgnater v5.1 - by El Forum - 11-02-2012, 04:58 PM
Cjax (Ajax Framework) for CodeIgnater v5.1 - by El Forum - 11-07-2012, 02:42 AM
Cjax (Ajax Framework) for CodeIgnater v5.1 - by El Forum - 11-19-2012, 08:57 AM
Cjax (Ajax Framework) for CodeIgnater v5.1 - by El Forum - 11-20-2012, 04:31 AM



Theme © iAndrew 2016 - Forum software by © MyBB