Well I check again and the code now is this:

-------------
<div id="fNombre">Some Text</div>
 <script type="text/javascript">
  new Ajax.InPlaceEditor('fNombre', 'test.php?a=actualizar&f=fNombre', 
{okText:'Salvar', cancelText:'Cancelar', clickToEditText:'Click para editar', 
size:25, highlightcolor: '#F5F5FF'});
 </script>
-------------

and test.php contains this:
-------------
<?
 $field = isset($_REQUEST['f'])?$_REQUEST['f']:null;
 die ( $field );
?>
-------------
The field by default have this "Some text". Now, when I edit field and put this 
"Some text two" is supposed that when I click in Save button (okButton) the 
file test.php return this: "Some text two", because I die with $_REQUEST['f'] 
or not? What's wrong? Why I can't obtain the really edited value?
Best,
-- 
ReynierPM 
4to. Ing. Informática 
Linux User: #310201
El programador superhéroe aprende de compartir sus conocimientos. Es el 
referente de sus compañeros. Todo el mundo va a preguntarle y él, secretamente, 
lo fomenta porque es así como adquiere su legendaria sabiduría: escuchando 
ayudando a los demás...  

> -----Mensaje original-----
> De: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] En 
> nombre de Todd Ross
> Enviado el: Tuesday, February 21, 2006 6:40 AM
> Para: rails-spinoffs@lists.rubyonrails.org
> Asunto: Re: [Rails-spinoffs] Help with Script.aculo inPlaceEditor
> 
> On 2/20/06, Reynier Perez Mira <[EMAIL PROTECTED]> wrote:
> >  new Ajax.InPlaceEditor('fNombre', 
> 'test.php?a=actualizar&f=aDescripcion', {okText:'Save', 
> cancelText:'Discard', size:25});
> #
> >  new Ajax.InPlaceEditor('fDescripcion', 
> 'test.php?a=actualizar&f=aNombre', {okText:'Save', 
> cancelText:'Discard', size:25, cols:50, rows: 10});
> #
> > But this not happen. When I do this:
> > 1) Play with first "inPlaceEditor" called 'fNombre' and 
> clic in Save button then the value take is fDescripcion
> > 2) Play with second "inPlaceEditor" called 'fDescripcion' 
> and clic in Save button then the value take is fNombre
> 
> You have the 'fNombre' and &f=aDescripcion mixed up.  Same with
> 'fDescripcion' and &f=aNombre.
> 
> Todd
> _______________________________________________
> Rails-spinoffs mailing list
> Rails-spinoffs@lists.rubyonrails.org
> http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
> 
_______________________________________________
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

Reply via email to