Yes it is Ajaxboy.. i Wonder if it is Possible to use the Validation rules..
Thanks for the fast Reply.. ^_^
This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.
The active forums are here.
April 29, 2012 11:33am
Subscribe [24]#16 / May 15, 2012 3:05pm
Yes it is Ajaxboy.. i Wonder if it is Possible to use the Validation rules..
Thanks for the fast Reply.. ^_^
#17 / May 16, 2012 3:54am
Yes it is possible, and it is workable on the upcoming release. Some improvements were made on that area the last few days, fortunately for you the stable release will be released by today.
#18 / May 16, 2012 11:51am
http://code.google.com/p/ajax-framework-for-codeigniter/downloads/detail?name=AJAXFW4.2_4CI_1.6.zip
Changes from 4.1RC3 to 4.2
* Full support for Cross Domain Ajax
* 2 New samples/demos added. Search, and Cross Domain Request.
* New API table
* Improved demos listings
* Made improvements to ajax form handling and refined form processing params handling
* Other small improvements
* New CJAX+Jquery+Jquery.validate plugin - integration of CJAX with jquery.validate (Sample included in demos)
See full ChangeLog
http://ajax-framework-for-codeigniter.googlecode.com/svn/trunk/CHANGELOG.txt
It is recommended to upgrade to this version if you use any other previous version. This version seals the Release candidate (RC) label mark, and this release is considered stable. By upgrading none of your code has to change it is backward compatible. Upgrade by overwriting your previous Cjax installation. Make sure to make a backup of your files, just in case.
2 New demos/samples
Full support for Cross domain ajax request, you may now send ajax request across domains and fetch remote content with the same api you create ajax requests.
Ps:
Distortion,
This release should be able to fix your issue.
#19 / May 16, 2012 1:57pm
Client Side Validation Plugin with Jquery Integration
CJAX Jquery.validate Plugin
This plugin is an alternative if you already use Jquery, and jquery.validate.
You may now make full use of the jquery.validate plugin, through cjax API, in PHP, Example included in demos zip. This plugin requires for you to load jquery and jquery.validate plugin in your page. This plugin is fully compatible and can be use with other Ajax API such as $ajax->form() and $ajax->call()
Quick Samples
You’d use the exact same format (in PHP) that is used in jquery.validate plugin (JAVASCRIPT) options, that is what makes it easy to use, if you are already familiar with this plugin in jquery.
$validate = array(
//'errorElement' => 'div'
//'submitHandler' => "function() { alert('no error were found!') }"
//'invalidHandler' => "function() { alert〈'this is executed if errors are found..') }"
'rules' => array(
'a[name]' => array(
'required' => true,
'minlength' => 5,
),
'a[last_name]' => array(
'required' => true,
'minlength' => 5,
),
'a[email]' => array(
'required' => true,
'email' => true
)
),
'messages' => array(
'a[name]' => array(
'required' => 'Please enter your name',
),
'a[last_name]' => array(
'required' => 'Enter your last name',
),
'a[email]' => array(
'required' => 'Email is required',
)
〉
);
$ajax->validate('button_id', $validate);
$ajax->Exec('button_id', $ajax->form('ajax.php?controller/function', 'form_id'));Review plugin documentation
A working sample is included in the samples/demos zip
Download the Plugin
Hope that makes sense to anyone that might use the plugin
#20 / May 17, 2012 2:05am
This post was moved to the wiki:
#21 / May 17, 2012 3:22am
@Distortion
I am wondering if your issue was fixed?
#22 / May 17, 2012 7:26pm
Hi Ajaxboy..Thanks for the new release It helps a lot to me.
btw i got problem after i upgraded when i click the button it says..“CJAX: Util. form() does not exist”.
#23 / May 17, 2012 7:29pm
Hi Distortion,
Glad it helped.
Sounds like the old cjax/core/js/cjax.js file might be cached in your browser, try deleting your browser cache then press Ctrl+F5 to force refresh. After let me know if you continue experiencing this issue, if that does not work then just to be sure, if possible go to the js file in your browser, and tell me the version number marked on it
#24 / May 17, 2012 7:56pm
still the same Ajaxboy.. when i switched to the old release it does not happen..
btw where can i locate the js files of my browser.. i used mozilla firefox..
thanks for the reply..
#25 / May 17, 2012 7:57pm
<base>/cjax/core/js/cjax.js
replace <base> with the url where your site is
In firefox, just right click on the page and select “View Source Code”, then when you see the js file link in the source window - you can click on it, and it will be shown
#26 / May 17, 2012 8:06pm
/** ################################################################################################**
* Copyright (c) 2008 CJ.
* Permission is granted to copy, distribute and/or modify this document
* under the terms of the GNU Free Documentation License, Version 1.2
* or any later version published by the Free Software Foundation;
* Provided 'as is' with no warranties, nor shall the autor be responsible for any mis-use of the same.
* A copy of the license is included in the section entitled 'GNU Free Documentation License'.
*
* CJAX 4.2 $
* ajax made easy with cjax
* -- DO NOT REMOVE THIS --
* -- AUTHOR COPYRIGHT MUST REMAIN INTACT -
* Written by: CJ Galindo
* Website: <a href="https://github.com/cjax/Cjax-Framework">https://github.com/cjax/Cjax-Framework</a> $
* Email: .(JavaScript must be enabled to view this email address)
* Date: 2/12/2007 $
* File Last Changed: 05/16/2012 $
**#################################################################################################### */#27 / May 17, 2012 8:12pm
Ok Thanks Distortion,
let me investigate a little, I’ll post again
#28 / May 18, 2012 7:46am
Hi
I am using latest version of CI 2.x.
I am new to ajax-framework.
I have installed ajax-framework “Current Version 4.2” and after that download demo from the link of http://code.google.com/p/ajax-framework-for-codeigniter/downloads/detail?name=CJAXFW_EXAMPLES_1.6.zip&can=2&q=
extract examples file in controller folder.
my ci url is http://localhost/ci/index.php/examples/ajax
getting error
"Cjax Framework for CI was not detected in the parent directory. Make sure the framework is placed in the upper directory.
You may download the framework in the official repository:Download <a href="http://code.google.com/p/ajax-framework-for-codeigniter/downloads/list">http://code.google.com/p/ajax-framework-for-codeigniter/downloads/list"</a>what’s problem I cant find.
Thanks in advance
#29 / May 18, 2012 7:49am
Hello Sanjay,
instead of:
http://localhost/ci/index.php/examples/ajax
use:
or
try that
make sure the examples directory is placed in your base installation directory
#30 / May 18, 2012 2:51pm
Thanx Ajaxboy,
I was wrong, I had pasted examples in controller directory. now its working.