Re: Other parameters on InPlaceEditor

a.alonzi-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
Wed, 11 Jul 2007 07:31:57 -0000

>
> > I have used the callback, but it does not come passed no parameter
>
> How do you know?  Your code doesn''t use them...

Are you sure? How to I must change the code?
the code is:
----------------------------------------------------
 var editor= new Ajax.InPlaceCollectionEditor(el, url,
 {
  ajaxOptions: {method: ''get''},
  value: ($(el).innerHTML==''Yes'') ? ''1'' :
''0'',
  collection: [[0,''No''],[1,''Yes'']],
  callback: function(form, value) { return
''op=pag_sca&id='' + id_pagam
+
''&id_cliente=<?=$id_user?>&id_order=<?=$_REQUEST[''id'']?>''},
  onBlur: function(request) {Element.show(''indicator'')}
});

----------------------------------------------------
I have used:
-------------------------------------------
callback: function(form, value) { return ''op=pag_sca&id=''
+ id_pagam
+
''&id_cliente=<?=$id_user?>&id_order=<?=$_REQUEST[''id'']?>''},
-------------------------------------------

perhaps it is not corrected?

>
> > the InPlaceEditor function isn''t into a form.
>
> Indeed.  The form is created dynamically at runtime by IPE when you
> start editing.

mmm... ok :-)

Thank you very much