Anybody using SuperInPlaceControls?

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.

hi matt,

sorry about that, i really need to make some better docs :slight_smile:

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 Z. [email protected]

hi matt,

sorry about that, i really need to make some better docs :slight_smile:

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 Z. [email protected]

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs