Cool plugin but i got stuck.
http://os.flvorful.com/super_in_place_controls/demo
Everything is fine until I click OK button after I edit a column. It
comes up:
RJS error: TypeError: $(element) has no properties
and
Element.update("sku_description_4", "ff");
$(''sku_description_4_form'').hide();
Element.hide("error_messages");
$$("#sku_description_4_form #sku_description").map(function(value,
index)
return value.removeClassName("fieldWithError");   })
Any ideas to fix it? I don''t even know where to start.
Thanks.
-- 
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---
hi matt, sorry about that, i really need to make some better docs :) The plugin uses a div to display error messages. Chances are, this is the element the JS error is talking about. There is a helper method called: inplace_error_div This method will drop a div container in your view for the plugin to target. Hope that helps --jake flvorful On Jan 16, 3:19 am, Matt Zhang <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> Cool plugin but i got stuck. > > http://os.flvorful.com/super_in_place_controls/demo > > Everything is fine until I click OK button after I edit a column. It > comes up: > > RJS error: TypeError: $(element) has no properties > > and > > Element.update("sku_description_4", "ff"); > $(''sku_description_4_form'').hide(); > Element.hide("error_messages"); > $$("#sku_description_4_form #sku_description").map(function(value, > index) > return value.removeClassName("fieldWithError"); }) > > Any ideas to fix it? I don''t even know where to start. > > Thanks. > -- > Posted viahttp://www.ruby-forum.com/.--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
hi matt, sorry about that, i really need to make some better docs :) The plugin uses a div to display error messages. Chances are, this is the element the JS error is talking about. There is a helper method called: inplace_error_div This method will drop a div container in your view for the plugin to target. Hope that helps --jake flvorful On Jan 16, 3:19 am, Matt Zhang <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> Cool plugin but i got stuck. > > http://os.flvorful.com/super_in_place_controls/demo > > Everything is fine until I click OK button after I edit a column. It > comes up: > > RJS error: TypeError: $(element) has no properties > > and > > Element.update("sku_description_4", "ff"); > $(''sku_description_4_form'').hide(); > Element.hide("error_messages"); > $$("#sku_description_4_form #sku_description").map(function(value, > index) > return value.removeClassName("fieldWithError"); }) > > Any ideas to fix it? I don''t even know where to start. > > Thanks. > -- > Posted viahttp://www.ruby-forum.com/.--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---