All Questions
54
questions
-1
votes
2
answers
707
views
How to call a Javascript function inside a Jade/Pug file
I have a node.js project with frontend written in Pug. On the pug side I have written a Javascript function that is making an Ajax call and returning a string, I am trying to call this function inside ...
0
votes
1
answer
43
views
Reload parts of page with ajax
I am using express to show a list of running processes. I want them to reload every few seconds to remove those that are finished and add new ones.
I am using ajax for this:
My layout.pug (abridged)
...
0
votes
1
answer
77
views
ajax POST function does not get triggered in Node.js
So, I have this issue with the POST request. I need it in order to update info without reloading the page. Here is my pug code:
.tinder--buttons
form(id="form1")
...
1
vote
0
answers
80
views
Multiple ajax in NodeJS, MongoDB and Pug
How can I do multiple ajax without submitting a form.
I am trying to update the data in the database when someone clicks the checkbox and then updating that particular div where the data has been ...
0
votes
0
answers
42
views
How can I remain the page without redirect/render after post method(express)
I tried to make a page that can send e-mail with aws SES in single web page.
But the problem is I have to redirect or render after send e-mail.
Otherwise, SES keeps sending email repeatedly.
I just ...
0
votes
1
answer
21
views
AngularJS ng-click attribute not updating on post request within ng-repeat
This is the pug file for the catalog
doctype html
html
head
title Tradecademy
meta(name="viewport", content="width=device-width, initial-scale=1")
script(src="https://ajax....
1
vote
2
answers
1k
views
Pass variable from ajax to jade/pug
Am obtaining the values from nodejs via ajax/fetch and need to pass the same to Pug.
Any help here would be much appreciated
sample.pug
button#searchVal Search
script(type='text/...
-1
votes
1
answer
165
views
Change content of text with Ajax in pug
I have to use Ajax on my website for a school project. I want to change the content of a button, but I first wanted to be able to change some text. I've found some examples on how to change text in a ...
0
votes
1
answer
1k
views
How to send plain text from Javascript to NodeJS server
I'm building an online compiler using ExpressJS,Pug and ACE for editor. My idea is to let users type their code in the editor, send the code back to the server and save it into a txt file then using ...
0
votes
0
answers
63
views
How to redraw the datatable with Ajax function
I request data from nodejs server and when I check the google chrome console, it works. But I don't know how to redraw the table with new data.
I think server-side code is okay because I checked the ...
2
votes
0
answers
2k
views
How to fix TypeError: t is null, when trying to replace entire <HTML>?
I am currently trying to replace an entire page with AJAX. I 'cannot' simply redirect to another url according to my assignment for whatever reason.
My node.js server has index.pug.
The submit form ...
0
votes
1
answer
4k
views
How to Render HTTP Post Request result to pug?
When a user clicks on the form, I send a http post request to database server. Which in turn sends post request back to user server.
My problem is that I can't post this database result recieved ...
0
votes
1
answer
131
views
handle Ajax GET/POST request in , nodejs, expressjs and Jade Template Engine
i m working in project where i use NODE, EXPRESS, and JADE TEMPLATE ENGINE , and AJAX to reduce page loading but when i get the result from a GET request in AJAX , i want to use the returned data (the ...
2
votes
1
answer
80
views
Running some Ajax code gave an undefined value in the console
I have a gradation project to create a better website to handle student registrations.
I followed a youtube playlist to learn more about node.js and other packages, so when i run this code i get back ...
0
votes
1
answer
744
views
solution to use pug with ajax to rending a dynamic table
I have a json file on the server, my intention is to render a table according to the contents in the json file, which contains various links.
So, the pug file looks like:
script.
$.getJSON("/...