Hi,
I'm new on this, and i dont know how to use properly the Drpal features, like forms and anothers...
But im trying to do some aniway. And i'd got a problem with javascript.
I builded a Node/page, and i could make connections to DB, make PHP code, with no problem. But now i needed an input box to enter tags, and i wanted autocomplete. I dont know how to use the autocompletes prebuilded in Drupal, specially cause i dont know how to use the froms features (and the copy paste gave me an empty page). Aniway, i dont want connection to DB, i just want to read an array on javascript to autocomplete.
The thing is, i downloaded a js library named suggestions.js, added to my page.tpl.php with src (yeah, weird, i dont know how to do that in another way), copied the example code, and... it dont work. The weird thing is, the error says "suggestion.toLowerCase is not a function", where suggestions is an object class. I tested the example page on the server (with drupal), and it works nice.
The src link is ok, code runs good until reach that error... the code i pasted in the node/page i created is this:
Tags
Ingrese caracteres de busqueda