NetTalk Central

Author Topic: From form to form an back  (Read 3402 times)

jari@softmade.fi

  • Full Member
  • ***
  • Posts: 134
    • View Profile
    • Email
From form to form an back
« 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

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: From form to form an back
« Reply #1 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

jari@softmade.fi

  • Full Member
  • ***
  • Posts: 134
    • View Profile
    • Email
Re: From form to form an back
« Reply #2 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

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: From form to form an back
« Reply #3 on: June 26, 2015, 06:15:25 AM »
In the server-side code for your "other" button;

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

Cheers
Bruce