0
votes
1answer
24 views

How to use AJAX with node.js

I am relatively new to server side programming, however I am building a framework in order to learn and as end outcome deliver it to the public after it is finished. I want some parts of the web ...
0
votes
0answers
13 views

Ajax Express NodeJS to load ejs template in part of page

Ok, so I have code that brings me to my index page, then I am calling code through ajax to give me back results from my mongoose db. All of those calls are working, but I cannot seem to figure out how ...
1
vote
0answers
22 views

Best way to keep the page connection on?

I'm working on a website with PHP and JQuery. I want to update the page content automatically if there is new data grabbed from the database. I tried doing this with JQuery and the only way is ajax ...
-1
votes
1answer
26 views

How do I avoid cross-domain issues accessing node.js using AJAX?

I am using node.js with express, jade and sass for my application. I have a couchdb database and I would like to use this using AJAX. Normally, to access couchdb with AJAX you would create a document ...
0
votes
0answers
40 views

Social Network : node.js or framework php + ajax (Comet) [closed]

I intend to make a kind of social network but I hesitate on the choose the technology. I thought to do everything with node.js but even if the application is surely very fast it will be difficult to ...
0
votes
0answers
37 views

Synchronous ajax in node.js server

I am trying to get html code from a series of cross domain urls with my node.js server using this function I have pasted in. If I do this asynchronously, I am successful at getting the needed html; ...
0
votes
0answers
15 views

Nodejs , cookies not getting set via ajax

I have the following piece of code in nodejs . The cookie is set when i make a direct request by typing in localhost:8120/stS in the browser . However when i make an ajax call to the same script , the ...
2
votes
5answers
95 views

How to send a message to a particular client with socket.io

I'm starting with socket.io + node.js, I know how to send a message locally and to broadcast thanks socket.broadcast.emit() function, it's mean that all the connected clients receive the same message. ...
0
votes
1answer
34 views

send file upload to dropbox

I want to send the uploads via javaScript to the drop box. All the referring posts at stackoverflow link to not existant pages. I'm using a NOde.js server.
0
votes
0answers
19 views

Why nodejs sockets fire multiple times when emit an action?

I have the following nodejs server.js: var DEFAULT_PORT = 9000, express = require('express'), http = require('http'), socketio = require('socket.io'), app = express(), server ...
0
votes
2answers
34 views

Return two objects in ajax call

I am using nodejs with expressjs. I am making an ajax call that queries a job table for multiple jobs and also each job's corresponding Customer table. Individually I get two arrays' of objects. I ...
0
votes
1answer
29 views

REST API - 404 not found for DELETE method

Client Side: function deleteData() { var txtId = $("#txtId").val(); jQuery.ajax({ url: "http://localhost:8090/delete/"+txtId, type: "DELETE", ...
0
votes
2answers
35 views

Only submit AJAX form if the variable is true

$(function () { $('#submit').submit(function() { var isValid = document.getElementById("form-setting").checkValidity(); var data = {}; data.id = $("#id").val(); data.title = ...
0
votes
1answer
38 views

Only allow to submit the form once all field is filled AJAX POST

I'm trying to send some data from my AJAX form to my Node.js Server. $(function () { $('#submit').click(function (e) { e.preventDefault() // prevents the form from being submitted var data ...
0
votes
1answer
27 views

Need help sending data and accessing it in the server. I want to do this using JavaScript(nodejs)

I've been having trouble with front-end back-end interactions. I'm relatively sure I'm sending the data but I cannot access the data afterwards. Most recently I have used this code template (from ...

1 2 3 4 5 16
15 30 50 per page