Find Jobs
Hire Freelancers

Write sample demo Javascript/Node.js code

$10-20 USD

Terminado
Publicado hace más de 5 años

$10-20 USD

Pagado a la entrega
I need help from javascript/node.js expert. I need someone to write a sample workable code that calls $.ajax POST call from html to node.js server and this call must pass data from $.ajax to node.js and send sample response back to html. Your code must be able to run on my system and so you will send me your code to verify everything works. Below is an extract of my code which does not pass data to node.js. It does a post to the node.js server but I do not see the parameters in the querystring or payload on the node.js server. 1. My sample Javascript in html var postFunction = function() { $.ajax({ type: 'POST', url: '[login to view URL]', data: {inputdata:'david'}, dataType: "html", processData:false, success: function (data) { alert(data) } }) } 2. My sample node.js const http = require('http'); const hostname = '[login to view URL]'; const port = 3000; var querystring = require('querystring'); var url = require('url'); const server = [login to view URL]((req, res) => { var pathname = [login to view URL]([login to view URL]).pathname; [login to view URL]('[login to view URL]: ' + [login to view URL]); [login to view URL]('[login to view URL]: ' + [login to view URL]); [login to view URL]('[login to view URL]: ' + [login to view URL]); [login to view URL]('[login to view URL]: ' + [login to view URL]); [login to view URL]('[login to view URL]: ' + [login to view URL]); [login to view URL]('[login to view URL]: ' + [login to view URL]); [login to view URL]("hello"); } [login to view URL](port, hostname, () => { [login to view URL](`Server running at http://${hostname}:${port}/`); });
ID del proyecto: 17578810

Información sobre el proyecto

8 propuestas
Proyecto remoto
Activo hace 6 años

¿Buscas ganar dinero?

Beneficios de presentar ofertas en Freelancer

Fija tu plazo y presupuesto
Cobra por tu trabajo
Describe tu propuesta
Es gratis registrarse y presentar ofertas en los trabajos
Adjudicado a:
Avatar del usuario
I have been working on Nodejs for the past 2 and a half years, and i think i can resolve you issue. Please contact me.
$20 USD en 1 día
5,0 (13 comentarios)
3,6
3,6
8 freelancers están ofertando un promedio de $17 USD por este trabajo
Avatar del usuario
Hello , I am Rupak Banerjee. I have got 16+ years of experience in web application development. I can write you the nodejs code for you in no time. Hope to hear from you soon. Thanks And Regards, Rupak Banerjee,
$15 USD en 1 día
4,7 (17 comentarios)
5,7
5,7
Avatar del usuario
Hello sir Can you tell me where your data veritable to pass
$10 USD en 3 días
5,0 (21 comentarios)
5,0
5,0
Avatar del usuario
hey just change the data type to application/json from html in request. enjoy
$21 USD en 1 día
5,0 (2 comentarios)
1,2
1,2
Avatar del usuario
I have worked on ajax and node and have 2 years experience in javascript. Will do this in as little time as possible.
$20 USD en 1 día
0,0 (0 comentarios)
0,0
0,0
Avatar del usuario
I have your modified your code it is working
$20 USD en 1 día
0,0 (0 comentarios)
0,0
0,0

Sobre este cliente

Bandera de UNITED STATES
Atlanta, United States
4,9
41
Forma de pago verificada
Miembro desde jun 3, 2007

Verificación del cliente

¡Gracias! Te hemos enviado un enlace para reclamar tu crédito gratuito.
Algo salió mal al enviar tu correo electrónico. Por favor, intenta de nuevo.
Usuarios registrados Total de empleos publicados
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Cargando visualización previa
Permiso concedido para Geolocalización.
Tu sesión de acceso ha expirado y has sido desconectado. Por favor, inica sesión nuevamente.