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!

Søg i Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

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

  • 2 svar
  • 3 har dette problem
  • 1 visning
  • Seneste svar af 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.

Valgt løsning

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!

Læs dette svar i sammenhæng 👍 0

Alle svar (2)

more options

Valgt løsning

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.