Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
jQueryに2つのアクションがあります
<br/> jQuery('#testForm\\:actionButtonA').click(); <br/> jQuery('#testForm\\:actionButtonB').click();
最初にリロードページを作成し、次に ダイアログパネルのみを表示します
その2番目のアクションがリロードページの終了を待機するようにするにはどうすればよいですか?
コールバック関数を追加して、ボタン B のクリックをトリガーするだけです。
jQuery('#testForm\\:actionButtonA').click(function(){ jQuery.ajax({ url: 'ajax/test.xhtml', success: function(response) { jQuery('#testForm\\:actionButtonB').click(); } }); });