NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: jari@softmade.fi on June 24, 2015, 09:29:03 AM

Title: From form to form an back
Post by: jari@softmade.fi on June 24, 2015, 09:29:03 AM
Hello

I have simple browse and form system. Now I want open new form (memory) from form and show there map and some buttons.

How can I close the second form so that at the same time the first form does not close ?

Jari
Title: Re: From form to form an back
Post by: Bruce on June 24, 2015, 10:26:55 PM
Hi Jari,

are you using a "popup" approach, where the browse is at the back and the form opens as a "window" on top of that?

and then presumably there is an "Other" button on the form which in turn opens your other form? Also as a popup?

cheers
Bruce
Title: Re: From form to form an back
Post by: jari@softmade.fi on June 25, 2015, 02:40:47 AM
Yes and yes.

I can close second form with  x top right button.
However I want to close the from with buttons of mine own.
Is there any code to do that?

Jari
Title: Re: From form to form an back
Post by: Bruce on June 26, 2015, 06:15:25 AM
In the server-side code for your "other" button;

p_web.script('ntd.close();')

Cheers
Bruce