| ■No5896 (mあ さん) に返信 > > 別画面ですが、利点は、 > (1)タスクバーに出ないこと > (2)親画面の制御(リロード)で勝手に閉じること > です。 > > [test01.html] > <html> > <script> > var win =showModelessDialog("test02.html",window, > "dialogWidth:200px;dialogHeight:100px;"); > > window.onload = function() { > win.moveTo(-100,-100); > } > </script> > <body bgcolor=snow> > ああああ<input type=button value="alert" onclick="alert('ok')"> > いいいい<input type=button value="alert" onclick="confirm('ok?')"> > <input type=text id="text1"> > </body> > > </html> > > [test02.html] > <html> > <script> > function documentLoad() { > > setTimeout(function() { > var pWin = dialogArguments; > pWin.document.getElementById("text1").value = > (new Date()).getTime(); > setTimeout(arguments.callee, 1000); > }, 1000); > > } > > window.onload = documentLoad; > </script> > <body bgcolor=snow> > <input type=text id="text1"> > </body> > > </html> > > > これでいいんじゃないすかね?コピペでお試しください。 > ただ、showModelessDialog 内ではフォームポスト出来たよーな出来ないよーな > 記憶が定かではありません。出来ないときは、Ajax で。出来るとしても条件あ > るでしょうから、念のために ダイアログ内で IFRAME を使うと良いかもしれま > せんね。 > > >
ご回答ありがとうございます。
これは、showModelessDialogを使用して別画面でセッションのハートビートを行うということですよね。 別画面でOKが出ましたら、是非、参考にさせて頂きますね。
やっぱり別画面しかないですよね・・・。
|