Generic-user-small Kevin Bradshaw 1 post

Hi, I recently built an app that lets a user submit a form. If a field is blank, send error message to div ‘f_error’ and highlight same and at eh same time shake the form element in question.

The following script should achieve this:

new Effect.Shake('f_email', {distance:2});
new Effect.Highlight('f_error');

however I get the following javascript msg:

(this._base[i]+this._delta[i]*position).round().toRngorPart is not a function

This is something I have done a million times before, no problems.. any one got any idea what that error message is tring to tell me?

Thanks

Beedge

 
Headshot_120px_small Christophe P... 48 posts

Hey Kevin,

‘sounds to me like there was some weird overwrite+typo on your effects.js file: “toRngorPart” should read “toColorPart,” which bears the hallmark of an overzealous search-and-replace of “Col” to “Rng” (perhaps you did a project-wide change instead of a file-wide change?)

2 posts, 2 voices