'nombre_archivo');
> echo $this->Form->input('token_separador');
> echo $this->Form->input('Tabla_Correspondiente',
> array('options' =>
> $campos, 'empty'=>'--Seleccionar--'
Hi guys,
i have a problem using this ajax function, i'm new on cakephp and
don't know if i'm making a mistake.
I hace a observeFiel in my view as follows:
Form->create('ArchivosSistema', array('action' =>
'add1'));?>
Por favor llene los siguientes campos: Datos pa
#x27;Test']['client_id']) ? $this-
>data['Test']['client_id'] : ''));
echo $form->input('vatnumber',
array('label' => 'VAT',
'value' => isset($this->data['T
This is really more of a javascript question- have whatever ajax
function you are using
On Aug 26, 10:59 pm, Louie Miranda wrote:
> Anyone?
> --
> Louie Miranda
> - Email: lmira...@gmail.com
> - Web:http://www.louiemiranda.com
>
>
>
> On Thu, Aug 26, 2010 at 2:37 PM, Louie Miranda wrote:
> > I
Anyone?
--
Louie Miranda
- Email: lmira...@gmail.com
- Web: http://www.louiemiranda.com
On Thu, Aug 26, 2010 at 2:37 PM, Louie Miranda wrote:
> I am trying to get ajax to work on my username field to check if the
> account is taken or not using this function.
> http://bin.cakephp.org/view/16
I am trying to get ajax to work on my username field to check if the account
is taken or not using this function.
http://bin.cakephp.org/view/1632401399
The function works. And the view/register.ctp (below)
http://bin.cakephp.org/view/258044293
Works too, I debug using Firebug.
I am just curious
echo $form->create('');
>> echo
>> $form->select('document_type_id',array($docTypes),null,array('id'=>'document'),true);
>>
>> echo $form->input('document_number', array('id'
:
> Sorry, the code I wrote should be like this, but it still doesn't work
> test_ajax.ctp
> echo $form->create('');
> echo
> $form->select('document_type_id',array($docTypes),null,array('id'=>'document'),true);
>
Sorry, the code I wrote should be like this, but it still doesn't work
test_ajax.ctp
create('');
echo
$form->select('document_type_id',array($docTypes),null,array('id'=>'document'),true);
echo $form->input('document_num
gt; Here's the code:
> document.ctp
> echo $form->create('');
> echo
> $form->select('document_type_id',array($docTypes),null,array('id'=>'document'),true);
>
>
> //this form field will output the
//this form field will output the recent document number
echo $form->input('document_number', array('id'=>'docnum'));
echo
$ajax->observeField('document',array('url'=&
Hi,
I am migrating from 1.2 to cakephp 1.3 and am trying to
switch to the new JsHelper (engine JQuery)
anybody an idea how to easily replace the deprecated $ajax->observeField
with the new $js-> functionality ? e.g. for the example in
http://book.cakephp.org/view/630/observeField
create(
I'm attempting to replace the contents of a div, "stupidtest", using
ajax->observeField. The event is observed, the post occurs, but the
contents of the div are simply destroyed. The same arguments sent to
ajax->link work correctly.
In other words, the second line clears
You were right. It didn't even cross my mind to look for a user written
helper. Found one, and it works! Thanks!
Marcelo Andrade wrote:
>
>
> On Tue, Oct 13, 2009 at 4:28 PM, hahmadi82 wrote:
>>
>> If anyone could help with this it would be much appreciated.
>
> I'm not a jQuery expert, b
On Tue, Oct 13, 2009 at 4:28 PM, hahmadi82 wrote:
>
> If anyone could help with this it would be much appreciated.
I'm not a jQuery expert, but it's not so hard do accompplish that.
I guess making the appropriate ajax call from a .onchange() event
should do the trick.
If I'm not wrong, there's
If anyone could help with this it would be much appreciated.
hahmadi82 wrote:
>
> Can someone please post the jquery equivalent of:
>
> echo $ajax->observeField('makes',array('url' => 'update_select', 'update'
> => 'y
Can someone please post the jquery equivalent of:
echo $ajax->observeField('makes',array('url' => 'update_select', 'update' =>
'years'));
I'm trying to replace all prototype-dependent code with jquery...
--
View this messa
Been a while since I did this but as CakePHP uses the id of each
record as the key I think I did
$array[0] => 'value';
ksort($array);
Should work as you can't have a primary key of 0 so it should always
sort to first, actually this would mess with an array sorted by a-z
values.
Ok, how about ..
I think I solved my problem referenced on this thread. The solution
proposed with the array_unshift scrambled the data inside the
dropdown. The names were still sorted properly, but the id number with
that name got resequenced. Apparently that is what array_unshift does
for you, according to the d
In case you miss the other thread: you need to call set() before
rendering the view because the view's copy of the variable is not
changed otherwise.
On Sun, Aug 30, 2009 at 9:33 AM, FrederickD wrote:
>
> I understand. That is what I would like to do; have the first row be
> 'Please select...' so
'
=>'update_select' ),
'update'=>'test',
));
But the same code with a select field doesn't work:
echo $ajax->observeField('district_name',
array( 'url'=> array( 'controller' =>
I understand. That is what I would like to do; have the first row be
'Please select...' so that the observeField 'sees' a change in the
field.
I am just not sure how to push an entry into element 0 of an array
that has already been loaded by a find('List'), and thereby pushing
all the other eleme
As brian states you add the blank entry to the arrays that you pass
from the controller to the view.
So the $states, $counties and $cities arrays need to include the blank
'Please select ...' options as their first row.
--~--~-~--~~~---~--~~
You received this messa
element of 'Please select a [whatever]'. So
> > all three combo boxes start out with the first value being 'Please
> > select a [whatever]'.
>
> > The user selects a state. The $ajax->observeField on the state combo
> > box fires and loads the county
ect-dropdown-box-t29.html.
>
> They work great... mostly. I have added to the code in the add.ctp
> file to include an 'empty' element of 'Please select a [whatever]'. So
> all three combo boxes start out with the first value being 'Please
> select a [whateve
-box-t29.html.
They work great... mostly. I have added to the code in the add.ctp
file to include an 'empty' element of 'Please select a [whatever]'. So
all three combo boxes start out with the first value being 'Please
select a [whatever]'.
The user selects a state.
I am not so sure if this is the right way, but you can use another
$ajax->submit button to call your function along with the submited
data. Then in your action You will have access to the submited data in
$this->data. But if You use the $ajax->link, then You can specify the
parameters in the url l
Hello Everyone,
I have dynamic listing of some categories and on click on each of
them, I want to show related user listing.
I want to use Ajax for this and have to pass category id to that ajax
function.
I have tried remoteFunction() for this, but I did not get how to send
category id to that
); ?>
$options = array('url' => 'update_select', 'update'
=>'valid_username');
echo $ajax->observeField('login_name',$options);
?>
This is working properly and showing me error message "Username
already exist" in valid_username div
,
array('label'=>false,'div'=>false,'style'=>'margin-left:0;width:150px','type'=>'select','options'=>$firmlist
,'id'=>'popularlist','empty'=>'All'));
echo $ajax->observeFiel
Hello All,
I am using $ajax->observeField()
It is showing me error 'Form is not defined' in javascript console.
Does anyone has some solution for this?
Thanks in advance
Manisha.
--~--~-~--~~~---~--~~
You received this message because you are subs
er']['id']),
> 'before' => 'startLoading()',
> 'complete' => 'endLoading()',
> 'failure' => 'failure()',
> 'frequency' => '10'
> );
> $options['
r'=>'users','action'=>'getAJAX', $user
['User']['id']),
'before' => 'startLoading()',
'complete' => 'endLoading()',
'failure
I am having problems with ajax observeField on a checkbox thats not
working in IE7. It works fine in firefox, and safari. I have run
Fiddler HTTP Proxy on my windows machine to see whether a request was
being made when I clicked the checkbox and it appears that nothing is
happening. I am running
I am having problems with ajax observeField on a checkbox thats not
working in IE7. It works fine in firefox, and safari. I have run
Fiddler HTTP Proxy on my windows machine to see whether a request was
being made when I clicked the checkbox and it appears that nothing is
happening. I am running
php.org/saved/38610
>
> I'm having real trouble with $ajax->observeField. I have a form that
> has a product category, product group, and then product size. Product
> group is dependent on product category so I have an observeField on
> Product Category. This triggers an ac
http://bin.cakephp.org/saved/38610
I'm having real trouble with $ajax->observeField. I have a form that
has a product category, product group, and then product size. Product
group is dependent on product category so I have an observeField on
Product Category. This triggers an action, whi
null,
> array('size'=>'5'),
> false
> );
>
> $options = array('url' => '/contacts/view/', 'update' =>
> 'contactinfo');
>
> echo $ajax->observeField('ContactID',$options);
&
I'm continuing to refactor code with 1.2RC2 and latest cake learnings!
I've got an $ajax->observeField(...) working nicely watching a select list.
When the
option changes, a more lengthy description is dynamically updated into a div
on the page to help the user.
But... when you f
I dont know anything about jquery though :( are there any tutorials
for this kind of thing?
Thanks
Patrick
On May 16, 2:28 pm, francky06l <[EMAIL PROTECTED]> wrote:
> Maybe using jQuery, you can use jQuery AND prototype on same
> application.
> hth
>
> On May 16, 8:12 am, AussieFreelancer <[EMA
Maybe using jQuery, you can use jQuery AND prototype on same
application.
hth
On May 16, 8:12 am, AussieFreelancer <[EMAIL PROTECTED]>
wrote:
> hmm, think i will need to sticj to prototype then..
>
> On May 8, 12:07 pm, "b logica" <[EMAIL PROTECTED]> wrote:
>
>
>
>
>
> > If you're not too attache
hmm, think i will need to sticj to prototype then..
On May 8, 12:07 pm, "b logica" <[EMAIL PROTECTED]> wrote:
> If you're not too attached to Prototype you could have a look at liveQuery:
>
> http://docs.jquery.com/Plugins/livequery
>
> Of course, you then lose all the ajax helper functionality.
If you're not too attached to Prototype you could have a look at liveQuery:
http://docs.jquery.com/Plugins/livequery
Of course, you then lose all the ajax helper functionality.
On Wed, May 7, 2008 at 8:31 PM, AussieFreelancer
<[EMAIL PROTECTED]> wrote:
>
> Hi, is it possibl
Hi, is it possible to use the ajax observefield in 1.1 to create
dynamic selects? I figured this could be quite a handy way to achieve
chained selects, but it seems like you can only display the returned
value in a div, is that right?
If it is not possible to generate dynamic selects using ajax
Chris Hartjes wrote:
> D'oh -- that stuff I posted is Cake 1.2 specific.
>
> I don't use Cake 1.1 at all, so can't help you there.
Ok Chris but you gave me a hint. So searching in the core code
(session.php) I saw three points where Session.checkAgent is
present. The only way I found (puttin some
On Wed, Apr 23, 2008 at 11:52 AM, Davide <[EMAIL PROTECTED]> wrote:
> Some other ideas? Cake version 1.1.18.
>
D'oh -- that stuff I posted is Cake 1.2 specific.
I don't use Cake 1.1 at all, so can't help you there.
--
Chris Hartjes
Internet Loudmouth
Motto for 2008: "Moving from herding eleph
Chris Hartjes wrote:
> You might have to change some stuff in your config/core.php file.
>
> Look for Session.checkAgent
>
> Often you have do
>
> Configure::write('Session.checkAgent', false);
>
> to preserve sessions when using Ajax
Session.checkAgent is not defined in my core.php. I tried defi
On Wed, Apr 23, 2008 at 11:37 AM, Davide <[EMAIL PROTECTED]> wrote:
>
> A strange thing regarding this topic.
>
> I can't understand where's the problem.
>
> Everytime I call the method with the observeField, all my Session data
> is lost and so I'm disconnected.
You might have to change some
A strange thing regarding this topic.
I can't understand where's the problem.
Everytime I call the method with the observeField, all my Session data
is lost and so I'm disconnected.
It's the first time I'm using Ajax+AjaxHelper+Cake, so I could do
something wrong.
When I remove the observeFiel
Davide wrote:
> ...
> everything "works" except that it's returned to me that is missing
> argument 1 for the controller action.
Solved at moment making the function argument as optional and testing
for the existence of $this->data["Project"]["name"]
thank and bye
davide
--
Live life like you
Hello everybody
I'm trying to use the method in subject with no result. CakePHP
1.1.18.
The PHP code in thtml is:
...
echo $html->input("Project/name",array("maxlength"=>"50","class"=>""));
...
echo $ajax-&
It seems that observeField does not recognize when the value of a
field has been changed by javascript.
It only triggers on manual change.
Is there any way to solve this?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Grou
I solved the problem. Use magic '$' function, and avoid using ajax to
create the field.
On Jul 5, 11:28 am, minglee <[EMAIL PROTECTED]> wrote:
> I use $Ajax->observeField, with Option['with'=>'type_id'], however, an
> error reported:
> Form.E
I use $Ajax->observeField, with Option['with'=>'type_id'], however, an
error reported:
Form.Element.Serializers[method] is not a function.
But from the manual, to use Option['with'] of phpCake Ajax, only need
to call by DOM ID, and in my case 'type_id
> Is there any way to debug the browser side? How can one find out if
> the prototype script is even detecting when the select changes, and
> whether it tries to notify the server side? I need to try and find out
> where in this control flow things are failing (unfortunately, my js
> skills are no
Found the problem, am posting the solution for those that follow.
I had mistakenly left an old (and long forgotten) includes of the
jQuery library in the page. That was what was causing problems for
Prototype. I removed it, and things work fine.
Moral - don't use both jQuery and Prototype togeth
...further debugging yields some interesting tidbits...
When debug=2, the 'url' specified in $ajax->observeField() is invoked.
I determined this by having the cake action output a log.
When debug=0, the 'url' specified in $ajax->observeField() is not
getting invoked (n
Thanks for the reply Chris.
That wasn't the problem though, I cleared out the cache completely,
problem is still occuring.
Any other ideas?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post
On 5/14/07, keymaster <[EMAIL PROTECTED]> wrote:
>
>
> So, when debug=0, neither the sql statements, nor the new fields,
> appear. When debug=2 both the sql statments and the new fields appear
> in the searchbox.
You probably need to clean up some stuff in your tmp/cache directory
as debug=0 cach
I have $ajax->observeField() working on one of the fields in our
searchbox. The new view sent back to the browser is being displayed.
Well, almost ... there is a teensy problem.
The new fields sent back to the browser (after the observeField is
triggered), only display when cake's debug
Hi Bakers
Sorry I just changed
$this->Vehicule->listedesvehicules(mysql_real_escape_string($params['form']['vehicule_select']));
for
$this->Vehicule->listedesvehicules(mysql_real_escape_string($this->params['form']['vehicule_select']));
AND IT WORKS!
Sten
--~--~-~--~~-
I'm a complete CakePHP and AJAX newbie. I'm trying to set up a pretty
simple ajax select element where my selecting an option in select A
will display relevant choices in a new select B. For whatever reason,
the code I've implemented is not working. My guess is that I'm missing
something vital in
Hi all,
I am stuck because my $params are undefined in the controller. May be
you have an idea or an experience that would help me and others.
I reload a select with an observe field
my element is :
==ELEMENT
Véhicule
observeField('vehicu
Not yet, thank you Léo, I will.
Have a nice day
Sten
--~--~-~--~~~---~--~~
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, s
Did you try an Ajax Autocompleter ? It works fine to replace a select
tag with a very long list.
--~--~-~--~~~---~--~~
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@google
Hi all,
I have a form with select tags. The list is too long and so I have,
each time, a text field to filter the display of the select. It does
not work. The query remains the same without any changing after the
filtering and the display is wrong.
---elementliste_vehicules.t
Yes I know... I'm a little stupid... :P
My problem was the ajax view, I forgot to put the ajax call...
Now it works ok! :D
ajax_actualize_version.thtml
-
div('ajax_serialnumber_version_id'); ?>
selectTag('SerialNumber/version_id', $versionArray,
null, ar
You are right :D.
I have 3 select tags (select1, select2 and select3). I want to modify
the content of select2 when I choose an option from select1, and the
same with select2 to select3.
Now i don't use the observeField, I have change it for the following
code:
formulario.thtml
You are right :D.
I have 3 select tags (select1, select2 and select3). I want to modify
the content of select2 when I choose an option from select1, and the
same with select2 to select3.
Now i don't use the observeField, I have change it for the following
code:
formulario.thtml
Hi,
With the ajax helper observeField I only follow the changes of one id.
Is there any method to pass any other id with the call?
Thanks a lot!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
T
Hi,
with this helper, can I pass any other "id value" apart of "field_id"?
I have try the "with" option but it doesn't work.
Thanks a lot!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To pos
Gonna have to get some more details. Possibly your code to help.
--~--~-~--~~~---~--~~
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
72 matches
Mail list logo