hello, I have this js function updateopt(id){
id= document.getElementById(id).innerthHTML; new Ajax.Updater('div2', '/listlevel.thtml', { parameters: { id: id }}); } listlevel.thtml is a views and in the same directory than the index.thml index.thtml <h1>Secteur</h1> <?php echo $ajax->div('div1'); echo $html->link("Ajouter un secteur", "/sectors/add"); $i=0; echo"<select size='10'>"; foreach($sector as $sectors): $id="name".$i; echo"<option id=".$id." onclick=updateopt('".$id."');>". $sectors['Sector']['name']."</option>"; $i++; endforeach; echo '</select>'; echo $ajax->divEnd('div1'); echo $ajax->div('div2'); echo $ajax->divEnd('div2'); ?> error onclick event : Object not found! The requested URL was not found on this server. The link on the referring page seems to be wrong or outdated. Please inform the author of that page about the error. If you think this is a server error, please contact the webmaster. Error 404 localhost 04/23/08 16:11:12 Apache/2.2.8 (Win32) DAV/2 mod_ssl/2.2.8 OpenSSL/0.9.8g mod_autoindex_color PHP/5.2.5 Prehaps /listlevel.thtml isn't found ANYBODY can help me!!!!!!!!!!!!!!!! Thanks you --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---