Hi: I understand the second answer but the one not leave much clarify to me. What's mean: "I usually use the $_REQUEST in PHP which takes _GET and / or _POST. ". I read in doc and found that $_POST is method by default but not know where is my mistake 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 Benjamin Mack > Enviado el: Monday, February 20, 2006 10:15 PM > Para: rails-spinoffs@lists.rubyonrails.org > Asunto: Re: [Rails-spinoffs] Help with Script.aculo inPlaceEditor > > Hey, > > I was just thinking about 1) - maybe (I did not check yet) is > using the > $_POST variable, since this is default I think. > > 2) Your syntax is probably not correct (maybe this is the > solution for > 1) too). > > new Ajax.InPlaceEditor('aNombre', > 'productos.php?a=actualizar&f=aNombre', {okText:'Update', > cancelText:'Leave changes'} ); > > so, the third parameter is surrounded with the { brackets, > the options > are seperated with commas, the values have a colon, no equal. > > see the extended demos for more information > http://wiki.script.aculo.us/scriptaculous/show/Ajax.InPlaceEditor > > hope this helps. GNight. > > greetings, > benni. > -SDG- > > > Reynier Perez Mira wrote: > > Well, I start recently with Scriptacolus and inPlaceEditor. > I have two doubts about use it. > > 1) When I specify URL for save changes or not it doesn't > work. See example below: > > <script type="text/javascript"> > > new Ajax.InPlaceEditor('aNombre', > 'productos.php?a=actualizar&f=aNombre'); > > </script> > > In productos.php file I have this: > > $field = isset($_GET['f'])?$_GET['f']:null; // wich means > the field for update or not > > if ($_GET['a'] == "actualizar") { > > switch ($field){ > > case "aNombre": > > die (' You try to edit aNombre field '); > > break; > > } > > } > > But it not works, nothing is returned for me. > > 2) How I can customize elements? I see in inPlaceEditor doc > the sintax for this one: > > new Ajax.InPlaceEditor( element, url, [options]); > > It's simply. My doubt is for example how to change the > value for "Ok" and "Cancel" button . I try with this: > > new Ajax.InPlaceEditor('aNombre', > 'productos.php?a=actualizar&f=aNombre','okText=Update > cancelText='Leave changes''); > > But not works > > Best, > _______________________________________________ > 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