Aman
Aman
KPCKevin Powell - Community
Created by Aman on 8/25/2024 in #front-end
Footer not sticking to the bottom
Im not a front end devoloper. Im required to create a website with bootstrap together with a spring application.
7 replies
KPCKevin Powell - Community
Created by Aman on 7/30/2024 in #front-end
Event listeners not attaching after an operation on the page
Thanks all!!
53 replies
KPCKevin Powell - Community
Created by Aman on 7/30/2024 in #front-end
Event listeners not attaching after an operation on the page
Hopefully, I manage to fix it now
53 replies
KPCKevin Powell - Community
Created by Aman on 7/30/2024 in #front-end
Event listeners not attaching after an operation on the page
Yeah I will add these checks in places.
53 replies
KPCKevin Powell - Community
Created by Aman on 7/30/2024 in #front-end
Event listeners not attaching after an operation on the page
Thanks for spending your valuable time to explain this so clearly to me. Really I appreciate it. I really hope I manage to fix this now
53 replies
KPCKevin Powell - Community
Created by Aman on 7/30/2024 in #front-end
Event listeners not attaching after an operation on the page
thanks a lot👊
53 replies
KPCKevin Powell - Community
Created by Aman on 7/30/2024 in #front-end
Event listeners not attaching after an operation on the page
That didnt make sense at all sorry🥹 . Im not made for js or frontend but my current college project requires me to do it.
53 replies
KPCKevin Powell - Community
Created by Aman on 7/30/2024 in #front-end
Event listeners not attaching after an operation on the page
export function initializeEventListeners() {
attachEventListeners('.delete-cyclist-btn', 'click', handleDeleteCyclistEvent);
attachEventListeners('.show-details-btn', 'click', showDetailsEvent);
attachSearchCyclistListener();
reattachEventListeners();
}
export function initializeEventListeners() {
attachEventListeners('.delete-cyclist-btn', 'click', handleDeleteCyclistEvent);
attachEventListeners('.show-details-btn', 'click', showDetailsEvent);
attachSearchCyclistListener();
reattachEventListeners();
}
53 replies
KPCKevin Powell - Community
Created by Aman on 7/30/2024 in #front-end
Event listeners not attaching after an operation on the page
but not for show details
53 replies
KPCKevin Powell - Community
Created by Aman on 7/30/2024 in #front-end
Event listeners not attaching after an operation on the page
What's weird is that delete event listener works
53 replies
KPCKevin Powell - Community
Created by Aman on 7/30/2024 in #front-end
Event listeners not attaching after an operation on the page
No description
53 replies
KPCKevin Powell - Community
Created by Aman on 7/30/2024 in #front-end
Event listeners not attaching after an operation on the page
I will try it now. Can I get back to you if it doesnt work?
53 replies
KPCKevin Powell - Community
Created by Aman on 7/30/2024 in #front-end
Event listeners not attaching after an operation on the page
is a framework for the Java platform
53 replies
KPCKevin Powell - Community
Created by Aman on 7/30/2024 in #front-end
Event listeners not attaching after an operation on the page
Im not sure if its even possible to have listeners in Java spring application
53 replies
KPCKevin Powell - Community
Created by Aman on 7/30/2024 in #front-end
Event listeners not attaching after an operation on the page
And not just on a page load?
53 replies
KPCKevin Powell - Community
Created by Aman on 7/30/2024 in #front-end
Event listeners not attaching after an operation on the page
So what you are saying is that when i search something, I should also attach the listeners?
53 replies
KPCKevin Powell - Community
Created by Aman on 7/30/2024 in #front-end
Event listeners not attaching after an operation on the page
This is not needed bc I have this class in my Spring application. Js is used for adding, updating, searching and deleting records without page refresh.
53 replies
KPCKevin Powell - Community
Created by Aman on 7/30/2024 in #front-end
Event listeners not attaching after an operation on the page
this is all the code concerning this issue
53 replies
KPCKevin Powell - Community
Created by Aman on 7/30/2024 in #front-end
Event listeners not attaching after an operation on the page
import { handleDeleteCyclistEvent, showDetailsEvent, attachSearchCyclistListener } from './handlers.js';

export function initializeEventListeners() {
attachEventListeners('.delete-cyclist-btn', 'click', handleDeleteCyclistEvent);
attachEventListeners('.show-details-btn', 'click', showDetailsEvent);
attachSearchCyclistListener();
}

export function attachEventListeners(selector, event, handler) {
document.querySelectorAll(selector).forEach(element => element.addEventListener(event, handler));
}

document.addEventListener("DOMContentLoaded", initializeEventListeners);
import { handleDeleteCyclistEvent, showDetailsEvent, attachSearchCyclistListener } from './handlers.js';

export function initializeEventListeners() {
attachEventListeners('.delete-cyclist-btn', 'click', handleDeleteCyclistEvent);
attachEventListeners('.show-details-btn', 'click', showDetailsEvent);
attachSearchCyclistListener();
}

export function attachEventListeners(selector, event, handler) {
document.querySelectorAll(selector).forEach(element => element.addEventListener(event, handler));
}

document.addEventListener("DOMContentLoaded", initializeEventListeners);
53 replies
KPCKevin Powell - Community
Created by Aman on 7/30/2024 in #front-end
Event listeners not attaching after an operation on the page
53 replies