I'm trying to pass an object with circular references from node.js server to client-side javascript.  Server (node.js):  var object = { circular: object } //.... app.get('/', function(req, res){         res.render('index.jade', {o...
When I send a JSON string to a jade file for rending I'm only able to print out the string in it's entirety but not by it's elements. How do I print out specific elements or loop through the JSON string?  app.js:  var http    = require(&#...
i want to implement a google map based on its api. i want to add a path based on coordinates to it. therefore i get my coordinates from my model and want to iterate over the object to fille the map with this points. in my jade template i include the...
I have a basic Express server:  // server.js: var Express = require('express'); app = Express.createServer(); app.configure(function(){   app.set('views', Path.join(__dirname, 'views'));   app.set('view engine', 'j...
I'm having difficulty getting a button to execute a javascript function when it is clicked, below is my jade file  extends layout block content   - var something = function() {   -   console.log('something')   - }    button(onclick='#...
i want to pass an array of objects from mongodb to the client...  this is the object  var objeto_img=                             {                                 name:'name of the file',                                 image:'image.jpg...
This is a somewhat noob-question for someone who had a few years of web development experience, but after not finding the answer on either Programmer Stack Exchange or Google, I have decided to ask it here.  I am using Express web framework for Node....
I have a problem integrating Mathjax and Jade in Express. I need to show formulas inside a 'pre', so I am trying to configure Mathjax through a script. This is my code:  script(type="text/x-mathjax-config")     MathJax.Hub.Config({...
I am using 'requirejs' for my app development, it was worked properly but certainly it is not working now. all the path are correct. but i am getting error on load the page  error i am getting:  Remote Address:127.0.0.1:3000 Request URL:http:...
I can't solve this for almost four hours, and i can't find any helpful documentation for this kind of problems. This is the issue, I'm using pug/jade templates and i want to call function inside pug template to transform some data This is...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.