Hi there,im getting crazy if i dont find a solution to my problem any time soon. I asked a ton of people and Stackoverflow. Nobody could help me. Now i try reddit and hope for the best!Im developing a Node app with a Admin Panel. This "Backend" has a User list to show all registered Users. It also has 2 buttons for each user: A delete user button and a change role button. These buttons open a Popup / Bootstrap Modal with the User role Selector or a confirm Delete user button.Now here is my Problem:EJS displays all the requested user info in the html Table perfectly! But not in the Popups. In the Popups EJS displays the information from the first user in the Database. Wich is super strange... I really cant explain why.Here is a picture of the User list with the buttons on the rightAnd here is a Image of the Popup with a simple EJS insert tag in the header displaying the Test Name1 altough i clicked on the Button for Test Name2Test Name1 is the first user in the db btw.Here is my App.js Express Route to the /users page where the list isAnd here is the complete Table with the popupsi have in the EJS fileIf you have any clue whats going on, i would be super thankful for your help!
Submitted June 06, 2019 at 02:38AM by DerQualle
No comments:
Post a Comment