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,
-- 
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... 
_______________________________________________
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

Reply via email to