Dialog not working/prompting in routed pages

Hi I am trying to prompt a dialog for the users but it is not prompting in an routed page. In the Index.html the dialog prompts just fine. Is there a solution for letting the dialog prompt also in an routed page?

THIS CODE I PASTED IN “APP.JS”:

$$(’.open-password’).on(‘click’, function () {
app.dialog.password(‘Enter your username and password’, function (password) {
app.dialog.alert(‘Thank you!
Password:’ + password);
});
});

THIS CODE BELOW IS PASTED IN MY ROUTED PAGE “CHANGE.HTML”:

  <p class="row">
    <button class="col button open-password">Password</button>
  </p>

Change

$$(’.open-password’).on(‘click’, function () {

to

$$(document).on('click', '.open-password', function () {
1 Like

#nolimits4web The magician, Thanks a lot!