Where did you install Firefox from? Help Mozilla uncover 3rd party websites that offer problematic Firefox installation by taking part in our campaign. There will be swag, and you'll be featured in our blog if you manage to report at least 10 valid reports!

Pretraži podršku

Izbjegni prevare podrške. Nikad te nećemo tražiti da nas nazoveš, da nam pošalješ telefonski broj ili da podijeliš osobne podatke. Prijavi sumnjive radnje pomoću opcije „Prijavi zlouporabu”.

Learn More

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

  • 2 odgovora
  • 3 imaju ovaj problem
  • 1 prikaz
  • Posljednji odgovor od 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.

Izabrano rješenje

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!

Pročitaj ovaj odgovor u kontekstu 👍 0

Svi odgovori (2)

more options

Odabrano rješenje

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.