Hi all,

I use prototype v1.5 and script.aculo.us controls v1.7.0

I did this simple code :

---------------------------------------------------------------------------------------------------
new Ajax.Request("myPageSel.asp", {
        method: "get",
        parameters: {r:$el.id},
        onSuccess: function(xhr) {
                new Ajax.InPlaceCollectionEditor($el.id, 'myPageMaj.asp', {
                        paramName: $el.id,
                        collection: xhr.responseText.evalJSON()
                });
                alert($el.id);
        }
});
---------------------------------------------------------------------------------------------------

Ajax.InPlaceCollectionEditor always sends paramName as "value".
alert($el.id) return what I want and if I use InPlaceEditor instead of
InPlaceCollectionEditor, paramName = $el.id. It works, it sends
paramName as $el.id.

Do you know what I'm doing wrong?

Thanks.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Spinoffs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to