javascript - send content from node.js to jade -


How can I return the contents of an existing view ('index.jade') document without reloading the entire page Am I content only of a div?

This is a search and it is going to be updated on every keyword with which many sites will be updated in other cases,

I am grateful for all help!

node

  function pageist (item) {var db = db_login; Console.log (items) items.for each (function (item) {console.log (item) db.collection ('insight') FindById (item._id, function (error, document) {console.log (document) If (error || | document) {res.render ('error', {});} and {console.log (document.insightheader) // SEND BACK CONTENT}}}}}}  


Comments

Popular posts from this blog

java - Can't add JTree to JPanel of a JInternalFrame -

javascript - data.match(var) not working it seems -

javascript - How can I pause a jQuery .each() loop, while waiting for user input? -