Pesquisar no site de suporte

Evite golpes de suporte. Nunca pedimos que você ligue ou envie uma mensagem de texto para um número de telefone, ou compartilhe informações pessoais. Denuncie atividades suspeitas usando a opção “Denunciar abuso”.

Learn More

window.showModalDialog is throwing NS_ERROR_NOT_AVAILABLE: and onload is not working

  • 2 respostas
  • 3 têm este problema
  • 31 visualizações
  • Última resposta de sarvana.j

more options

I Created cutomized mozilla plug-in for my testing purpose.

in the plugin i am using window.showModalDialog() to open a ".xul" file, and on opening i am using onload event, which calls javascript function to populate some of the value for the ".xul" file. it was working fine before. but recently it is throwing javascript error "NS_ERROR_NOT_AVAILABLE: Cannot call openModalWindow on a hidden window nsPrompter.js:382" and opens the popup window without triggering onload event.

I Created cutomized mozilla plug-in for my testing purpose. in the plugin i am using window.showModalDialog() to open a ".xul" file, and on opening i am using onload event, which calls javascript function to populate some of the value for the ".xul" file. it was working fine before. but recently it is throwing javascript error "NS_ERROR_NOT_AVAILABLE: Cannot call openModalWindow on a hidden window nsPrompter.js:382" and opens the popup window without triggering onload event.

Solução escolhida

hello sarvana.j, sorry this forum is primarily for end-user support.
if you'd need advice for developing an addon, please try to ask your question in a forum like https://forums.mozilla.org/addons/index.php or http://forums.mozillazine.org/viewforum.php?f=53 - there it's far more likely that someone can provide a solution to your problem. thank you for your understanding!

Ler esta resposta 👍 0

Todas as respostas (2)

more options

Solução escolhida

hello sarvana.j, sorry this forum is primarily for end-user support.
if you'd need advice for developing an addon, please try to ask your question in a forum like https://forums.mozilla.org/addons/index.php or http://forums.mozillazine.org/viewforum.php?f=53 - there it's far more likely that someone can provide a solution to your problem. thank you for your understanding!

more options

Thanks for your response philipp, i do post the request on the add on forum.