-1

So I'm trying to use rightjs's autocompleter (http://rightjs.org/ui/autocompleter) but when loading it up in my web browser I'm getting 'uncaught TypeError: undefined is not a function' on line 112. any ideas? my code: http://paste.pocoo.org/show/409248/

Chris Bolton
  • 2,878
  • 6
  • 38
  • 57

1 Answers1

2

My guess is you don't have right.js included before right-autocompleter.js because it is complaining that RightJS.Class is not a function which it is true if Class is not defined in the RightJS object.

chuckj
  • 27,773
  • 7
  • 53
  • 49
  • right.js is above right-autocompleter.js in the html file – Chris Bolton Jun 17 '11 at 04:03
  • could it not be loading it 'in time' or something? – Chris Bolton Jun 17 '11 at 04:04
  • Try checking if it being loaded at all. If you are using IE8 or IE9 try F12. For Firefox try firebug with F12 as well. In Chrome try Ctrl+Shift+J. Verify that right.js was loaded. If you reload the page you should check for errors in the console. If right was loaded one of the other js files might be interfering with it somehow. – chuckj Jun 17 '11 at 04:27