Mozilla サポートの検索

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 件の返信
  • 3 人がこの問題に困っています
  • 24 回表示
  • 最後の返信者: 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.

選ばれた解決策

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!

この回答をすべて読む 👍 0

すべての返信 (2)

more options

選ばれた解決策

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.