I''m looking for onSuccess: in Ajax.InPlaceEditor, but it doesn''t appear to exist. onComplete isn''t what I need because I only want my callback on success. Is there a way to do this? Thanks, Jamie
I''m looking for onSuccess: in Ajax.InPlaceEditor, but it doesn''t appear to exist. onComplete isn''t what I need because I only want my callback on success. Is there a way to do this? Thanks, Jamie
I''m using : "if (!transport) return;" at the beginning of onComplete. It does the trick. Regards, Nico On 1/26/06, Jamie Orchard-Hays <jamie-fswG1Ka7Iew@public.gmane.org> wrote:> > I''m looking for onSuccess: in Ajax.InPlaceEditor, but it doesn''t > appear to exist. onComplete isn''t what I need because I only want my > callback on success. Is there a way to do this? > > Thanks, > > Jamie > > _______________________________________________ > Rails-spinoffs mailing list > Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs >_______________________________________________ Rails-spinoffs mailing list Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
Thanks Nico, I''ll try that and then look at adding a patch for onSuccess. Jamie On Jan 28, 2006, at 6:24 AM, Nicolas wrote:> I''m using : "if (!transport) return;" at the beginning of onComplete. > It does the trick. > > Regards, > Nico > > On 1/26/06, Jamie Orchard-Hays <jamie-fswG1Ka7Iew@public.gmane.org> wrote: > I''m looking for onSuccess: in Ajax.InPlaceEditor, but it doesn''t > appear to exist. onComplete isn''t what I need because I only want my > callback on success. Is there a way to do this? > > Thanks, > > Jamie > > _______________________________________________ > Rails-spinoffs mailing list > Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs > > _______________________________________________ > Rails-spinoffs mailing list > Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs_______________________________________________ Rails-spinoffs mailing list Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
here is most likely an easy question.... how come this will not work? i am trying to change the values of a hidden input inside each sortable to the current index. thanks! <script type="text/javascript" language="javascript" charset="utf-8"> Sortable.create(''list_filmLnks'', { onUpdate: function() { alert(''hi''); ids = getElementsByClassName(''linkIndexNumber''); for (i=0; i< ids.length; i++){ $(ids[i]).innerHTML = i; } } }); </script>
I think you should be able to use the ajaxOptions option just like you would any other option for an Ajax.Request. IIRC ajaxOptions: {onSuccess: function() {...blah...}} should do the trick. HTH Cheers, Jon On 1/26/06, Jamie Orchard-Hays <jorchardhays-jL3ZA1QiTdxBDgjK7y7TUQ@public.gmane.org> wrote:> I''m looking for onSuccess: in Ajax.InPlaceEditor, but it doesn''t > appear to exist. onComplete isn''t what I need because I only want my > callback on success. Is there a way to do this? > > Thanks, > > Jamie > _______________________________________________ > Rails-spinoffs mailing list > Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs >
Thanks for that tip Jon. I hadn''t noticed that one. So ajaxOptions is standard in the framework? btw, Nicolas''s solution also worked. Jamie On Jan 30, 2006, at 2:57 PM, Jon Tirsen wrote:> I think you should be able to use the ajaxOptions option just like you > would any other option for an Ajax.Request. IIRC ajaxOptions: > {onSuccess: function() {...blah...}} should do the trick. > > HTH > > Cheers, > Jon > > On 1/26/06, Jamie Orchard-Hays <jorchardhays-jL3ZA1QiTdxBDgjK7y7TUQ@public.gmane.org> wrote: >> I''m looking for onSuccess: in Ajax.InPlaceEditor, but it doesn''t >> appear to exist. onComplete isn''t what I need because I only want my >> callback on success. Is there a way to do this? >> >> Thanks, >> >> Jamie >> _______________________________________________ >> Rails-spinoffs mailing list >> Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org >> http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs >> > _______________________________________________ > Rails-spinoffs mailing list > Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
It''s standard with anything ajax related. On 1/30/06, Jamie Orchard-Hays <jamie-fswG1Ka7Iew@public.gmane.org> wrote:> > Thanks for that tip Jon. I hadn''t noticed that one. So ajaxOptions is > standard in the framework? > > btw, Nicolas''s solution also worked. > > Jamie > On Jan 30, 2006, at 2:57 PM, Jon Tirsen wrote: > > > I think you should be able to use the ajaxOptions option just like you > > would any other option for an Ajax.Request. IIRC ajaxOptions: > > {onSuccess: function() {...blah...}} should do the trick. > > > > HTH > > > > Cheers, > > Jon > > > > On 1/26/06, Jamie Orchard-Hays <jorchardhays-jL3ZA1QiTdxBDgjK7y7TUQ@public.gmane.org> wrote: > >> I''m looking for onSuccess: in Ajax.InPlaceEditor, but it doesn''t > >> appear to exist. onComplete isn''t what I need because I only want my > >> callback on success. Is there a way to do this? > >> > >> Thanks, > >> > >> Jamie > >> _______________________________________________ > >> Rails-spinoffs mailing list > >> Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > >> http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs > >> > > _______________________________________________ > > Rails-spinoffs mailing list > > Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > > http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs > > _______________________________________________ > Rails-spinoffs mailing list > Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs >_______________________________________________ Rails-spinoffs mailing list Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
i am having problems with editing items which are inside a sortable list... different on browsers PC IE - Works fine PC FF - select boxes work, input boxes are NOT editable MAC Safari - select boxes are NOT edtable, input boxes work thanks!
Well, both. ajaxOptions is used to pass-through options to the underlying AJAX infrastructure inside the InPlaceEditor. So they are the standard Ajax.Xxxx options. The use of ''ajaxOptions'' itself for this purpose is probably not entirely standard (but maybe it should be). On 1/31/06, Jamie Orchard-Hays <jamie-fswG1Ka7Iew@public.gmane.org> wrote:> Thanks for that tip Jon. I hadn''t noticed that one. So ajaxOptions is > standard in the framework? > > btw, Nicolas''s solution also worked. > > Jamie > On Jan 30, 2006, at 2:57 PM, Jon Tirsen wrote: > > > I think you should be able to use the ajaxOptions option just like you > > would any other option for an Ajax.Request. IIRC ajaxOptions: > > {onSuccess: function() {...blah...}} should do the trick. > > > > HTH > > > > Cheers, > > Jon > > > > On 1/26/06, Jamie Orchard-Hays <jorchardhays-jL3ZA1QiTdxBDgjK7y7TUQ@public.gmane.org> wrote: > >> I''m looking for onSuccess: in Ajax.InPlaceEditor, but it doesn''t > >> appear to exist. onComplete isn''t what I need because I only want my > >> callback on success. Is there a way to do this? > >> > >> Thanks, > >> > >> Jamie > >> _______________________________________________ > >> Rails-spinoffs mailing list > >> Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > >> http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs > >> > > _______________________________________________ > > Rails-spinoffs mailing list > > Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > > http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs > > _______________________________________________ > Rails-spinoffs mailing list > Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs >
Has anyone else experienced problems with this, and furthermore how to allow it to work cross browser?> i am having problems with editing items which are inside a sortable > list... > different on browsers > > PC IE - Works fine > PC FF - select boxes work, input boxes are NOT editable > MAC Safari - select boxes are NOT edtable, input boxes work > > thanks! >