Saturday, 12 January 2019

Flash messages without page reload/refresh

Hey guys, I'm working on a small project using express, mongoDB and ejs. I want to create flash messages for form validation without having to reload/refresh the page. I know it can be made with ajax but i hoped there was a faster solution, with a simple module or built-in express function.So far i tried express-flash, express-flash-notifications and other modules, but none of them accomplish what i wanted to do. The closest i got to a solution was connect-flash and the answer in this post: https://stackoverflow.com/questions/25480633/how-do-i-display-flash-message-without-page-refresh-using-express-and-connect-flBut it doesn't work like written in the answer, without page reload/refresh.Do you guys have any recommendations or would you recommend doing it with ajax. If for the latter, do you know any library (other than jQuery) for creating easy ajax calls?

Submitted January 12, 2019 at 09:57PM by kifkev91

No comments:

Post a Comment