A
A
Albert Ushakov2019-10-10 12:23:17
Apache Cordova
Albert Ushakov, 2019-10-10 12:23:17

When popup is launched again, inside the window it is launched several times alert how to delete processes when the window is closed?

I'm making an application on FrameWork7 , I got a problem.
I add the code of the popup window to html and run it through js Inside this window there is a button button on which a click event is hung, in which the post is sent through And after sending, a notification appears . After clicking, the notification window appears, I press OK and close the popup window . launch this window and click on the same button, the notification appears 2 times. And so on, the more you open the window, the more notifications will open. Please help, I can't figure out what to think. It seems that the windows themselves are removed from the page.
app.popup.open('.popup');
app.request...
app.dialog.alert('Текст сообщения');
app.popup.close('.popup');

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey, 2019-10-10
@xsh

Show a minimal code example on jsfiddle that contains an error. But judging by your "app....." code, you are not writing using all the power that Framework7 gives when working with pages: https://framework7.io/docs/router-component.html

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question