NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: Edvard Korsbaek on January 14, 2017, 12:26:33 AM

Title: Back to menu button
Post by: Edvard Korsbaek on January 14, 2017, 12:26:33 AM
Hi!

Pretty new to this..

I have made a form, which has a button, that triggers a sql query. That part does what it should.
Problem is, that I want to be able to do two different things:

When useer presses the button, it should run the query, and return to the menu.
There should be an 'Return to menu' button. To add a button is not difficult, but how to make it do this?



Best regards

Edvard Korsbæk
Title: Re: Back to menu button
Post by: Edvard Korsbaek on January 15, 2017, 12:32:00 AM
hi all!

"There should be an 'Return to menu' button. To add a button is not difficult, but how to make it do this?"

Done - there is a setting - On click, that does it.
I said, that I am pretty new to this

Edvard
Title: Re: Back to menu button
Post by: kevin plummer on January 15, 2017, 07:25:41 PM
Hi Edvard,

you might find the server side codes not execute (ie your sql code) if you use on click. If so, use p_web.script after your sql code to return to your menu or close the current form etc