Title: callback between windows, help for sample code Post by: debarcar on September 26, 2015, 07:19:17 AM Hi All,
I have trouble in coding such a case: Window A has a button. When the button click, system open Window B and pass a Window A method/function to Window B. When Window B close, it pass data to the method/function Window A past. Any help or Suggestion? Regards! Title: Re: callback between windows, help for sample code Post by: Hoffiric on September 28, 2015, 04:58:24 AM I don't quite understand your issue but seeing as nobody even tries to help you here's my two cents:
It makes no sense to me having to pass a method from a window to another. "Windows" are only DOM objects with extended functionality and methods can exist outside of them, so I don't understand why you would "pass a Window A method to Window B". To me it should look like this: Code: <script type="text/javascript"> the script holds the function that is being run when Window B is closed. So the workflow is
What you defined in DoSomething will be executed when pressing the Button on Window B (the same code is usable for an OnClose event, however I haven't found any on EasyUI). Again, I have no idea if this is even remotely close to what you were looking for. Please specify your problem a bit more so you can get more detailed help for your problem. Title: Re: callback between windows, help for sample code Post by: debarcar on September 28, 2015, 08:43:49 AM Thanks Hoffiric.
Perhaps I use some extjs thought to do this. You are right, for easyui, we have a new way. Regards! |