Posted by atomicbop on October 13, 2009 at 8:57pm
This is a great module and very easy to implement. I only have one problem. When AJAX is enabled for contact forms, the error messages are moved above the form instead of at the top of the page, which is great, but the scroll function scrolls to the top of the page instead of the top of the form. Is there any way to fix this? I can't seem to find where the scroller function is. Thanks.
Comments
you probably are using
you probably are using ajax_scroller module, in this case try to write ajax plugin:
/*** @param {String} hook
* @param {Object} args
* @return {Bool}
*/
Drupal.Ajax.plugins.YOUR_PLUGIN_ANY_NAME = function(hook, args) {
if (hook === 'scrollFind') {
return false;
}
}
see documentation under "Developers: JavaScript API" section