Re: ajax observeField()

2011-09-18 Thread WebbedIT
'nombre_archivo'); >                 echo $this->Form->input('token_separador'); >                 echo $this->Form->input('Tabla_Correspondiente', > array('options' => > $campos, 'empty'=>'--Seleccionar--'

ajax observeField()

2011-09-17 Thread aortizhi
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

Ajax observefield input text update problem

2010-10-14 Thread Tom
#x27;Test']['client_id']) ? $this- >data['Test']['client_id'] : '')); echo $form->input('vatnumber', array('label' => 'VAT', 'value' => isset($this->data['T

Re: Verify username, Ajax observeField - How to display the error message?

2010-08-27 Thread Sam
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

Re: Verify username, Ajax observeField - How to display the error message?

2010-08-26 Thread Louie Miranda
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

Verify username, Ajax observeField - How to display the error message?

2010-08-25 Thread Louie Miranda
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

Re: Using ajax observefield method to update text field

2010-05-11 Thread aveev
    echo $form->create(''); >> echo >> $form->select('document_type_id',array($docTypes),null,array('id'=>'document'),true); >>     >>         echo $form->input('document_number', array('id'

Re: Using ajax observefield method to update text field

2010-05-11 Thread John Andersen
: > 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); >  

Re: Using ajax observefield method to update text field

2010-05-11 Thread aveev
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

Re: Using ajax observefield method to update text field

2010-05-11 Thread John Andersen
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

Using ajax observefield method to update text field

2010-05-10 Thread aveev
//this form field will output the recent document number echo $form->input('document_number', array('id'=>'docnum')); echo $ajax->observeField('document',array('url'=&

cakephp 1.3 migration | $ajax->observeField

2010-03-18 Thread Johannes Goll
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(

Ajax::observeField deletes div contents; Ajax::link works fine. 1.2.5

2009-11-05 Thread Matthew Franklin
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

Re: jquery substitute for ajax->observeField

2009-10-15 Thread hahmadi82
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

Re: jquery substitute for ajax->observeField

2009-10-14 Thread Marcelo Andrade
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

Re: jquery substitute for ajax->observeField

2009-10-13 Thread hahmadi82
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

jquery substitute for ajax->observeField

2009-10-12 Thread hahmadi82
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

Re: How may I 'trick' $ajax->observeField into firing with linked combo boxes?

2009-08-31 Thread WebbedIT
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 ..

Re: How may I 'trick' $ajax->observeField into firing with linked combo boxes?

2009-08-30 Thread FrederickD
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

Re: How may I 'trick' $ajax->observeField into firing with linked combo boxes?

2009-08-30 Thread brian
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

$ajax->observeField not working

2009-08-30 Thread Justin Time
' =>'update_select' ), 'update'=>'test', )); But the same code with a select field doesn't work: echo $ajax->observeField('district_name', array( 'url'=> array( 'controller' =>

Re: How may I 'trick' $ajax->observeField into firing with linked combo boxes?

2009-08-30 Thread FrederickD
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

Re: How may I 'trick' $ajax->observeField into firing with linked combo boxes?

2009-08-30 Thread WebbedIT
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

Re: How may I 'trick' $ajax->observeField into firing with linked combo boxes?

2009-08-29 Thread FrederickD
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

Re: How may I 'trick' $ajax->observeField into firing with linked combo boxes?

2009-08-29 Thread brian
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

How may I 'trick' $ajax->observeField into firing with linked combo boxes?

2009-08-29 Thread FrederickD
-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.

Re: $ajax->observeField

2009-03-24 Thread logout
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

$ajax->observeField

2009-03-23 Thread Manisha P
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

$ajax->observeField problem

2009-03-20 Thread Manisha P
); ?> $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

Re: $ajax->observeField() problem

2009-03-17 Thread gayatri bhumarapu
, array('label'=>false,'div'=>false,'style'=>'margin-left:0;width:150px','type'=>'select','options'=>$firmlist ,'id'=>'popularlist','empty'=>'All')); echo $ajax->observeFiel

$ajax->observeField() problem

2009-03-16 Thread Manisha P
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

Re: Ajax observeField()

2009-03-14 Thread Aurelius
er']['id']), > 'before' => 'startLoading()', > 'complete' => 'endLoading()', > 'failure' => 'failure()', > 'frequency' => '10' > ); > $options['

Ajax observeField()

2009-03-13 Thread Aurelius
r'=>'users','action'=>'getAJAX', $user ['User']['id']), 'before' => 'startLoading()', 'complete' => 'endLoading()', 'failure&#

Ajax observeField() in internet explorer 7 (IE7) is not working

2009-03-08 Thread bmille...@gmail.com
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

Ajax observeField() in internet explorer 7 (IE7) - not working

2009-03-08 Thread bmille...@gmail.com
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

Re: ajax->observeField trouble

2008-10-19 Thread francky06l
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

ajax->observeField trouble

2008-10-19 Thread cds
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

Re: ajax observefield, select

2008-09-20 Thread Yves Latour
      null, >           array('size'=>'5'), >           false >     ); > >     $options = array('url' => '/contacts/view/', 'update' => > 'contactinfo'); > >     echo $ajax->observeField('ContactID',$options); &

how to fire ajax observeField rules for an initial value?

2008-07-15 Thread Howard Glynn
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

Re: 1.1 ajax->observefield for dynamic select... possible?

2008-05-15 Thread AussieFreelancer
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

Re: 1.1 ajax->observefield for dynamic select... possible?

2008-05-15 Thread francky06l
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

Re: 1.1 ajax->observefield for dynamic select... possible?

2008-05-15 Thread AussieFreelancer
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.

Re: 1.1 ajax->observefield for dynamic select... possible?

2008-05-07 Thread b logica
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

1.1 ajax->observefield for dynamic select... possible?

2008-05-07 Thread AussieFreelancer
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

Re: Ajax::observeField

2008-04-24 Thread Davide
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

Re: Ajax::observeField

2008-04-23 Thread Chris Hartjes
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

Re: Ajax::observeField

2008-04-23 Thread Davide
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

Re: Ajax::observeField

2008-04-23 Thread Chris Hartjes
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

Re: Ajax::observeField

2008-04-23 Thread Davide
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

Re: Ajax::observeField

2008-04-23 Thread Davide
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

Ajax::observeField

2008-04-23 Thread Davide
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-&

ajax->observeField ignores value change by JavaScript

2008-02-20 Thread teknoid
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

Re: Problem with Ajax: observeField

2007-07-06 Thread minglee
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

Problem with Ajax: observeField

2007-07-04 Thread minglee
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&#x

Re: $ajax->observeField only updating/displaying when cake debug=2 (?!)

2007-05-15 Thread Jon Bennett
> 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

Re: $ajax->observeField only updating/displaying when cake debug=2 (?!)

2007-05-15 Thread keymaster
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

Re: $ajax->observeField only updating/displaying when cake debug=2 (?!)

2007-05-14 Thread keymaster
...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

Re: $ajax->observeField only updating/displaying when cake debug=2 (?!)

2007-05-14 Thread keymaster
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

Re: $ajax->observeField only updating/displaying when cake debug=2 (?!)

2007-05-14 Thread Chris Hartjes
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

$ajax->observeField only updating/displaying when cake debug=2 (?!)

2007-05-14 Thread keymaster
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

Re: ajax observefield how to get $params in the controller ?

2006-10-25 Thread Steniskis
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 --~--~-~--~~-

AJAX observeField for n00bs

2006-10-25 Thread Finster
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

ajax observefield how to get $params in the controller ?

2006-10-24 Thread Steniskis
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

Re: ajax observeField on a select

2006-10-17 Thread Steniskis
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

Re: ajax observeField on a select

2006-10-16 Thread leo.cacheux
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

ajax observeField on a select

2006-10-13 Thread Steniskis
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

Re: Ajax->ObserveField

2006-09-27 Thread carlosrg
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

Re: Ajax->ObserveField

2006-09-27 Thread carlosrg
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

Re: Ajax->ObserveField

2006-09-27 Thread carlosrg
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

$ajax->observeField

2006-09-26 Thread carlosrg
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

Ajax->ObserveField

2006-09-26 Thread carlosrg
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

Re: Ajax->ObserveField

2006-09-26 Thread [EMAIL PROTECTED]
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