NetTalk Central
Toggle navigation
Login
Register
×
Welcome,Guest
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
NetTalk Central
»
NetTalk Web Server
»
Web Server - Ask For Help
»
Adding OK/Cancel option to alert message
« previous
next »
Print
Pages: [
1
]
Author
Topic: Adding OK/Cancel option to alert message (Read 3006 times)
markster
Full Member
Posts: 204
Adding OK/Cancel option to alert message
«
on:
September 30, 2012, 08:44:15 AM »
Is there any way to extend the SendAlert/Message functionality to add an option for and OK/Cancel selection similar to Windows Message?
Mark
Logged
Bruce
Global Moderator
Hero Member
Posts: 11250
Re: Adding OK/Cancel option to alert message
«
Reply #1 on:
September 30, 2012, 10:37:36 PM »
Hi Mark,
The short answer is "no".
If you want to get information from the user then the best approach is to create a NetWebForm.
The reason it's not all that easy to have a "confirmation" box is because your code on the server side is running asynchronously. In other words setting the Alert is done in your code, but the code keeps going. It doesn't wait for a response there - indeed the box is not actually shown to the user there. It is simply added into the response and appears to the user a little while later.
So for now it's strictly a "message" to the user - it's not designed to do input.
Cheers
Bruce
Logged
markster
Full Member
Posts: 204
Re: Adding OK/Cancel option to alert message
«
Reply #2 on:
October 03, 2012, 04:33:41 PM »
OK. I have created my own form, but I can only call it by adding a button in a form. I don't know javascript, but I imagine there is some really basic javascript call that would open it up anytime???
Thanks,
Mark
Logged
Bruce
Global Moderator
Hero Member
Posts: 11250
Re: Adding OK/Cancel option to alert message
«
Reply #3 on:
October 03, 2012, 11:51:42 PM »
without context Mark it's impossible to answer this. You need to give some more idea of the "flow" that the user would experience.
Logged
Print
Pages: [
1
]
« previous
next »
NetTalk Central
»
NetTalk Web Server
»
Web Server - Ask For Help
»
Adding OK/Cancel option to alert message