Ever try to simulate $ajax->observeField() in Cake using Jquery, the
following video shows you how
URL : http://www.php.net.my/forum/video-cakephp-validation-jquery
- the video has no audio so you need to pay attention to whatever I
typed
- recorded using CamStudio in AVI and later converted to F
Hello,
I have a form that is being submitted via ajax:
add.ctp
form(null, 'post', array('update' => 'ajax', 'url' => array
('controller' => 'characters', 'action' => 'add')))?>
input('name', array('label' => __('Character name', true)))?
>
end(__('Create character', true))?>
form is submited fi
Hi Oli,
Basically you're just looking for client side form validation. You'd
want to write some kind of interpreter that would take the model-based
validation from CakePHP and translate it into Javascript that would
load when the form loads so that it could be triggered with
"onChange()" or some
Ajax or not does not change anything (unless you want to do something
special in the form).
Usually you would put your form in a "div" (in the ajax call you
should set this div' id's as parameter for update), when submitting
and trying to save, if it fails just render the same form. This one
(with
On May 22, 1:34 pm, Oli <[EMAIL PROTECTED]> wrote:
> hey,
>
> can someone explain me howto validate a form using ajax?
> submission works fine but ive no clue how to validate the form
> correctly before saving the data
>
Validation occurs just the same as a normal request. I don't use the
AJAX he
hey,
can someone explain me howto validate a form using ajax?
submission works fine but ive no clue how to validate the form
correctly before saving the data
oli
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Cak
I was trying to make a form and validate with ajax like in:
http://bin.cakephp.org/view/242085627
but when I have an error, the error div is updated with the content of
the view of the rendered element. so it's displayed twice the form
my validateField view is the form... what should be the val
hi
I'm looking for an example / tutorial showing how to validate forms
with Ajax in CakePHP 1.2
the only thing I found is : http://bin.cakephp.org/view/242085627
does anyone has something else ?
thanks
--~--~-~--~~~---~--~~
You received this message because yo
try this:
var $helpers = array('Ajax');
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
I tried to include the 'Ajax' helper but it could not find it.
var $components = array('Cookies', 'Logins', 'Geoip',
'RequestHandler');
var $helpers = array('AJAX');
It says
You are seeing this error because the view helper file
app\views\helpers\ajax.php can't be found or doesn'
I am trying to use AJAX to validate a form, I have a tick box next to
my register form inputs. So when a user enters a username, I want the
javascript to call the script and get a response wether the username is
taken.
I have looked at the AJAX helper manual and can't find much to help me,
I've l
11 matches
Mail list logo