Skip to main content
How are we doing? Please help us improve Stack Overflow. Take our short survey

All Questions

Tagged with
-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 ...
askaround's user avatar
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) ...
fynsta's user avatar
  • 346
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") ...
Monika Gornostajūtė's user avatar
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 ...
AmAn KumAr's user avatar
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 ...
Calgary CHOI's user avatar
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....
George Ryan's user avatar
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/...
Praveen V's user avatar
-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 ...
elkegovaert's user avatar
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 ...
Sơn Nguyễn's user avatar
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 ...
writingdeveloper's user avatar
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 ...
Meow's user avatar
  • 55
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 ...
billy's user avatar
  • 1,473
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 ...
CollinsBssi's user avatar
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 ...
KF3's user avatar
  • 47
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("/...
Solaris_9's user avatar
  • 201

15 30 50 per page