Other parameters on InPlaceEditor

a.alonzi-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
Tue, 10 Jul 2007 13:17:59 -0000

Hi to all,
I have a doubt on like passing other URL parameters to InPlaceEditor
function.

For Ajax.Updater I can use "parameters:", but for InPlaceEditor (or
InPlaceCollectionEditor) I cannot use "parameters". How I make to pass
other parameters to the page that callback?

A sample code:
----------------------------------
 var editor= new Ajax.InPlaceCollectionEditor(el, url,
 {
  ajaxOptions: {method: ''get''},
  value: ($(el).innerHTML==''Yes'') ? ''1'' :
''0'',
  collection: [[0,''No''],[1,''Yes]],
  parameters: ''op=pag_sca&id='' + id_pagam +
''&id_cliente=<?=$id_user?
>&id_order=<?=$_REQUEST[''id'']?>'',
  onBlur: function(request) {Element.show(''indicator'')}
});
----------------------------------

Thank you