Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

130
Visualizações
Is it possible to catch the history.back event before navigating?

I would like to query whether the IsDirty flag is true or false when I click on the back button, but it should be before and not when the navigation is already finished. I'm not sure if this is so easy or if it's a bit more complex.

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

There is no "Simple" answer to this problem. While you can use various strategies within page and navigation menus to restrict dirty form exits, there are no easy one-liner ways to control browser navigation requests.

My current solution to this problem, which addresses all normal form exit mechanisms can be found here Blazr.Demo.Routing.

It rebuilds Router, adds a new Navigation Manager and interfaces with the browser beforeunload event.

about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda