On Jueves, 24 de Junio de 2010 06:20:50 Jefflin escribió:
> Hi:
>
> I am using AS with jrail and jQuery for my project. It has been
> working fine for a while.
>
> Recently, I updated AS. the problem I have is that after updated AS,
> when updating/creating record with failed validation, AS produced the
> javascript error as following.
>
> RJS error:
> TypeError: jQuery("#as_hardwares-create--form").scrollTo is not a
> function
>
> I traced down the error occurred at on_create.rjs and on_update.rjs
> view templates. In these two files, they have the following code:
>
> page[form].scroll_to
>
> Compared to the previous version of AS, the above line did not exist
> before. So can someone let me know what kind of the function does the
> code perform? And is it safe to just commented it out?

It scrolls to top of form to show the errors. You should implement scrollTo in 
jQuery calling the right method in jQuery.

-- 
Sergio Cambra .:: entreCables S.L. ::.
Mariana Pineda 23, 50.018 Zaragoza
T) 902 021 404 F) 976 52 98 07 E) [email protected]

-- 
You received this message because you are subscribed to the Google Groups 
"ActiveScaffold : Ruby on Rails plugin" 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/activescaffold?hl=en.

Reply via email to