NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: John Fligg on December 05, 2011, 06:18:41 AM

Title: Run some code from a menu
Post by: John Fligg on December 05, 2011, 06:18:41 AM
I cannot seem to get a handle on this one.

I have my menu and want to add an Item to run some code. That code must run conditionally so I assumed I could create a Page with a  button on (does not need to be fancy) and then when the button is pressed the code is run or the page closed.

I cannot seem to get started. I can add a menu item of course but sort of going round in circles. Any advice appreciated.

John
Title: Re: Run some code from a menu
Post by: Bruce on December 05, 2011, 07:10:30 AM
what must the code return to the browser?
ie what do you want the user to see after they select the menu item?

cheers
bruce
Title: Re: Run some code from a menu
Post by: John Fligg on December 05, 2011, 07:30:11 AM
Bruce - a window with OK and Cancel basically. Then under the OK button will be the code I wish to run.

Should be really easy but cannot seem to get my head round it.

Thanks

John
Title: Re: Run some code from a menu
Post by: DonRidley on December 05, 2011, 09:21:48 AM
Have you menu item point to a memory form.  Then put whatever buttons you need on the form. 

Don
Title: Re: Run some code from a menu
Post by: Bruce on December 05, 2011, 09:24:36 PM
don is correct - use a NetWebForm as your procedure, not a NetWebPage.
Set the form to "memory".

you can place code under the "ok" button by putting it in the ValidateUpdate routine.

cheers
Bruce
Title: Re: Run some code from a menu
Post by: linas@debetas.lt on December 06, 2011, 03:12:04 PM
I was thinking the same..

Nettalk is briliant.

Linas
in love with the nettalk.