Hello,
I am working on my CI project.
I meet an error with the Autocompletion with the CI Ajax Library.
I create a controller which will show the form :
class Accueil extends All_accueil {
...
function test(){
$this->load->view('javascript_test');
}
function auto(){
echo("<ul id=\"categorie_auto_complete\"><li>TEst</li><li>123</li></ul>");
}
...
}
Here is the view (form), the input type text categorie is normally autocompleted (with the LI created with auto())...
<form action="test.hpp" name="a">
<div id=\"categorie_auto_complete\" style="height:30px; width:100px; background-color:grey;"></div>
<input type="text" id="categorie" name="categorie" size="20">
<input type="submit" value="Tester">
<?
echo $this->ajax->auto_complete_field('categorie',array('url' => '/accueil/auto'));
?>
Nothing appears when i write some text on the input text…
When I look on firebug :
Erreur : $(element) has no properties
Fichier source : http://localhost/magnet/system/javascript/prototype.js
Ligne : 987
Don’t understand where is the problem with such an implicit error !
Thanks a lot,
François
