0 Replies Latest reply on Feb 1, 2007 10:43 AM by surajmundada

    sequence of execution not followed in seam remoting

    surajmundada Newbie


      I was facing a lot of problem in implementation of pop-up in my application.

      Eveytime I would invoke a pop-up, the javascript part (written in onclick attribute) would get executed before the my listener method (written in action attribute).

      After reading Seam Remoting, I tried to call a listener method from javascript function and was able to do so in the first attempt.

      Now my code looks like this:

       <script type="text/javascript" src="seam/remoting/resource/remote.js">
       <script type="text/javascript" src="seam/remoting/interface.js?searchListener">
       <script type="text/javascript">
       function fun_openSearchWindow(){
       alert('in fun_openSearchWindow()');

      But my problem is that 'window.open' function gets executed first before my 'resetPage' method gets executed completely, defeating the whole purpose of remoting in my case.

      Is there any way to keep the sequence of execution ?

      Thanks in advance ...