Sebastian
2007-Sep-04 23:25 UTC
Ajax.InPlaceCollectionEditor - changing collection at runtime
Hi I am writing an ajax site that has several InPlaceCollectionEditors that are initialized when the site is launched. The collection is read from an array. It appears the collection is read when the InPlaceCollectionEditor is initialized along with the rest of the website in the beginning of the user session and therefor does not reflect the state of the array used to initialize it when the field is entering the editing mode! new Ajax.InPlaceCollectionEditor(el, url, { ajaxOptions: {method: ''get''}, collection: an_array } ); For examlple: * The user loads the site and the inPlaceCollectionEditor is initialized. * After a minute the values of the array are programatically changed * After another minute the user wants to edit a field and enables the editmode, but the field does not contain the changes previously made to the array. Is there a way to make the editor read the values from the array when it is going into the edit mode? Best regards Sebastian --~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---