close popup (by pressing back) and preserve browsers back functionality
$10-20 USD
În desfășurare
Data postării: peste 3 ani în urmă
$10-20 USD
Plata la predare
I'm currently working on a PWA project where I need to close the popup via the back button.
The popup just loads the post content of the clicked list from infinite post list UI. I'm able to achieve it via popstate like this:
loadPopUp() {
[login to view URL]('popup-open', null, '');
}
$(window).on('popstate', function () {
hidePopUp()
});
The page loads post list via ajax requests on each dump of post lists.
Now, the current issues I'm facing are:
1. On the first page of ajax, when the popup is clicked and the back button is pressed, the popup closes but also reloads the post lists (the ajax only, not the whole page).
2. Starting from the second page, when the popup is clicked, the back button no longer works as stays on same page even with multiple back clicks.
Hi sir its look like ur job is not that much hard but ur budget is to much low , I can fix ur requirement in 1 hour and I can explain ur problem also;.
Hey there,
I guess you should set event listener breakpoints in your code and see the state of your app for each event. It might actually be a wrong function call that's disturbing your app workflow. I'd be willing to work with you to fix the bug provided you need the assistance.
P.S: I would love to hear from you on how you fixed the bug
Hi, I can fix this bug easily in one hour or less. Also we can look at rest of your code and make a required changes while changing this bug.. I have been coding JavaScript for a long time. To see my experience with JavaScript please check my profile.