当サイトはユーザー体験を改善するためのメンテナンスを実施中に機能が制限される予定です。記事を読んでもあなたの問題が解決せず質問をしたい場合は、Twitter の @FirefoxSupport、Reddit の /r/firefox で、サポートコミュニティが皆さんを助けようと待機しています。

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.

詳しく学ぶ

このスレッドはアーカイブに保管されました。 必要であれば新たに質問してください。

Can FF have a javascript function call a form's submit within a loop (multiple submits)?

  • 1 件の返信
  • 2 人がこの問題に困っています
  • 2 回表示
  • 最後の返信者: the-edmeister

more options

I have a page that allows a user to select multiple reports (links) to view. I have javascript code that works in IE that loops through all the "selected" checkbox objects and submits each "selected" report. Firefox will open the first report but does not open any others.

 function fnSubmit(report,role)
 {
    document.filing.REPORT.value = report;
    document.filing.fr.value = role;
    document.filing.submit();
 }
 function fnView()
 {
    var chkbox = document.getElementsByName("rpt");
    for (var i=0; i<chkbox.length; i++)
    {
       if (chkbox[i].checked==true) {
          link = document.getElementById(chkbox[i].value);
          link.onclick();
       }
    }
 }
</pre>

links look like: <input type="CheckBox" NAME="rpt" Value="23062"> <a id="23062" href="javascript:void(0)" onclick="javascript:fnSubmit('reportid',' ')">002 - Some Report</a>

Thanks for any help.

I have a page that allows a user to select multiple reports (links) to view. I have javascript code that works in IE that loops through all the "selected" checkbox objects and submits each "selected" report. Firefox will open the first report but does not open any others. function fnSubmit(report,role) { document.filing.REPORT.value = report; document.filing.fr.value = role; document.filing.submit(); } function fnView() { var chkbox = document.getElementsByName("rpt"); for (var i=0; i<chkbox.length; i++) { if (chkbox[i].checked==true) { link = document.getElementById(chkbox[i].value); link.onclick(); } } } : : : links look like: <input type="CheckBox" NAME="rpt" Value="23062"> <a id="23062" href="javascript:void(0)" onclick="javascript:fnSubmit('reportid',' ')">002 - Some Report</a> Thanks for any help.

すべての返信 (1)

more options

Try posting at the Web Development / Standards Evangelism forum at MozillaZine. The helpers over there are more knowledgeable about web page development issues with Firefox.
http://forums.mozillazine.org/viewforum.php?f=25
You'll need to register and login to be able to post in that forum.