NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: olu on August 20, 2012, 10:46:45 AM

Title: Close form on clicking on save
Post by: olu on August 20, 2012, 10:46:45 AM
Hello please can anyone help on this i want to open a from do my updates either an insert or update but want it to open on a new wiindow but after i finish my update and click the save button, i want that new window to just close and not go back to the browse.
Title: Re: Close form on clicking on save
Post by: MikeR on August 20, 2012, 12:07:55 PM
where must it go back to ?
what must be displayed in the browser ?
Title: Re: Close form on clicking on save
Post by: kevin plummer on August 20, 2012, 06:57:46 PM
Is the new window a "popup" or new tab/browser window?

If popup, in the gotfocusback embed add p_web.Script('window.location.href="www.whatever.com";') or p_web.Script(p_web.WindowOpen('HomePage'))

Cheers,

Kevin
Title: Re: Close form on clicking on save
Post by: olu on August 21, 2012, 05:54:10 AM
Hi it is a new browser window
Title: Re: Close form on clicking on save
Post by: charl99 on August 21, 2012, 07:10:12 AM
Hi Olu

In the General Settings of the NetWebForm settings, just type in the URL on Save and specify the Target frame as '_self', or '_blank' or whatever.

Cheers
Charl