NetTalk Central

Author Topic: Close form on clicking on save  (Read 4812 times)

olu

  • Sr. Member
  • ****
  • Posts: 352
    • View Profile
    • Email
Close form on clicking on save
« 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.

MikeR

  • Sr. Member
  • ****
  • Posts: 265
    • View Profile
    • Email
Re: Close form on clicking on save
« Reply #1 on: August 20, 2012, 12:07:55 PM »
where must it go back to ?
what must be displayed in the browser ?

kevin plummer

  • Hero Member
  • *****
  • Posts: 1195
    • View Profile
    • Production Accounting and Software Payroll
Re: Close form on clicking on save
« Reply #2 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

olu

  • Sr. Member
  • ****
  • Posts: 352
    • View Profile
    • Email
Re: Close form on clicking on save
« Reply #3 on: August 21, 2012, 05:54:10 AM »
Hi it is a new browser window

charl99

  • Full Member
  • ***
  • Posts: 185
    • View Profile
    • Email
Re: Close form on clicking on save
« Reply #4 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