В работе

close popup (by pressing back) and preserve browsers back functionality

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.

Навыки: JavaScript, PHP, jQuery / Prototype, AJAX

Показать больше: javascript close popup exit, flash javascript close popup, javascript export excel close popup submission, firefox close popup, flash geturl javascript close popup window, close popup javascript post, close popup html, enable button close popup, smarty close popup, as3 close popup, close popup leaving window

О работодателе:
( 10 отзыв(-а, -ов) ) Houston, United States

ID проекта: #28958924

Поручен:

vladmdev

Hi there! I can fix bugs in a day. Please send me a message for discussing. Best regards.

$25 USD за 3 дней(-я)
(4 отзывов(-а))
2.1

6 фрилансеров(-а) готовы выполнить эту работу в среднем за $27

starttechno

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;.

$45 USD за 1 день
(81 отзывов(-а))
6.1
Rqoon

Hello. I am ready to help you. I am ready to discuss the project in more detail and get to work.

$20 USD за 1 день
(110 отзывов(-а))
6.4
filipposd

Hi, I understand you're having an issue with the back button and the history state. My assumption is that [login to view URL] needs to be handled differently because the popup state is interfering with navigating the paginat Больше

$40 USD за 7 дней(-я)
(25 отзывов(-а))
5.0
MasterEnoch

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 Больше

$15 USD за 1 день
(1 отзыв)
0.8
dogukantansuk

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 Ja Больше

$15 USD за 1 день
(0 отзывов(-а))
0.0