NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: Niels Larsen on May 25, 2015, 07:10:52 AM

Title: Right way to leave a popup memory form from at button (no submit)
Post by: Niels Larsen on May 25, 2015, 07:10:52 AM
Hi

Can someone help me with how to leave a popup memory form from a button (not submit).

Regards Niels
Title: Re: Right way to leave a popup memory form from at button (no submit)
Post by: Bruce on May 25, 2015, 10:37:40 PM
Morning Niels,

define "leave" the popup.
As in "close the popup"? (and go back to the screen you can see underneath) or
go to another page in the app?

cheers
Bruce
Title: Re: Right way to leave a popup memory form from at button (no submit)
Post by: Niels Larsen on May 25, 2015, 10:57:55 PM
Sorry - As in "close the popup"? (and go back to the screen you can see underneath)
Title: Re: Right way to leave a popup memory form from at button (no submit)
Post by: Bruce on May 26, 2015, 12:13:26 AM
in the server-side code for the button put

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

or, on the "OnClick" tab,
onClick [JavaScript] setting

'ntd.close();'
Title: Re: Right way to leave a popup memory form from at button (no submit)
Post by: Niels Larsen on May 26, 2015, 12:53:25 AM
THANKS!!!