on 01-03-2008 5:53 AM
Hi experts
I created an appl in NWDS and i deploy & run the appl.
Now i want to close the appl Browser instead of clicking the cross symbol i want to display a msg like do u want to close the browser? (I have tried by using the following code :
wdThis.wdGetInterfaceViewControllername().wdFirePlugExit("javascript:void(window.close())");
It is working with the NWDS2.X version but it is not work with the 7.X version/
Whether it is tool version problem or browser version problem?
Thanks
Hazrath
Hi,
Create an Exit plug in your window Ex: "Exit", with boolean parameter with name "closeWindow".
On click of the ok button fire this plug in following manner.
wdThis.wdGet<Window_Name>Controller().wdFirePlugExit(true);
Regards
Ayyapparaj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
one possibility might be opening a non-modal external window containing an html page as IWDCachedWebResource which sports a JavaScript call to opener.close() and bypassing the WDJ solution. I'm creating this in a close action and open a window for closing it afterwards... Reason for that is the lack of WDJ to handle simple JavaScript which I need to close or print windows - something quite common for web applications.
The code snippet below basically does open a new window, which calls opener.close() to close the calling window.
Somehow I can't post the neccessary code, althought I've been trying hard...
regards,
Christian
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.