i'm trying send url date taken html table, has button send post url action '/item/2016-04-04'
comes out in the
uncaught browser referenceerror: $ not defined at 2016-01-01: 1; failed load resource: server responded status of 404 (not found).
client side:
<form role="form" action="/item/2016-01-01" method="post" class="form-horizontal form-label-left"><button type="submit" class="btn btn-primary btn-xs"><i class="fa fa-eye"></i> ver</button></form>
server side:
app.post('/item/:date', function(req, res){ if(!req.carpoolsession.username){ res.redirect('/'); } else { db_handler.obtener_localizacion_departamento_local(req.carpoolsession.username,function(queryreslocaldeplocalizacion){ console.log(req.params.id); res.render('vista_caja_chica_item.jade',{username:req.carpoolsession.username,titulo:queryreslocaldeplocalizacion}); }); } });
Comments
Post a Comment