cancel
Showing results for 
Search instead for 
Did you mean: 

Regarding browser closing

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi,thanks for ur immediate reply.

It's not working.

I created a plug of type exit and a parameter of type boolean in window.

next in the action method of button i write the following code

wdtThis.wdGetInterfaceviewcontroller(0.wdfireplugMeth(true)

But it's not working.

Thanks

Hazrath

Former Member
0 Kudos

Hi

Still the problem has not solved plz give me the solution.

Thanks

Hazrath.G

Former Member
0 Kudos

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