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!

Mozilla Destek’te Ara

Destek dolandırıcılığından kaçının. Mozilla sizden asla bir telefon numarasını aramanızı, mesaj göndermenizi veya kişisel bilgilerinizi paylaşmanızı istemez. Şüpheli durumları “Kötüye kullanım bildir” seçeneğini kullanarak bildirebilirsiniz.

Learn More

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

  • 2 yanıt
  • 3 kişi bu sorunu yaşıyor
  • 1 gösterim
  • Son yanıtı yazan: 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.

Seçilen çözüm

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!

Bu yanıtı konu içinde okuyun 👍 0

Tüm Yanıtlar (2)

more options

Seçilen çözüm

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.