NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: David on June 05, 2010, 05:17:03 AM

Title: Popup Notification On Form - Button Click
Post by: David on June 05, 2010, 05:17:03 AM
I have a WebForm for setting the application settings, including the users email server settings.  This is so my app can use their email server to send SMTP.  There is a "send test email" button on the email settings tab below the input fields.  When the user clicks the "send test email" button, I run server side code that sends an email using the settings on the form.

I would like to popup a message letting the use know the email was sent.  As it stands now, there is no indicator to the user that the button did anything.  The form is not refreshing, so the loc:alert does not seem to be working.  Any suggestions on how to do this? 

Thank You,
David
C7.1, NT5 PR17
Title: Re: Popup Notification On Form - Button Click
Post by: rjolda on June 05, 2010, 05:19:36 AM
David,
I am trying to do this also.  However, I am not sure about pop-ups... What if the end user has disabled pop ups on their browser?????
Ron Jolda
Title: Re: Popup Notification On Form - Button Click
Post by: David on June 05, 2010, 06:24:19 AM
Well... it doesn't have to be a popup.  I am just looking for some visual way to let the user know that the button did something.
Title: Re: Popup Notification On Form - Button Click
Post by: Alberto on June 05, 2010, 07:20:01 AM
There is a NTWS example which uses a page indicating the email sent status.
Alberto
Title: Re: Popup Notification On Form - Button Click
Post by: Bruce on June 06, 2010, 10:14:09 PM
Hi David,

Get the button to "refresh" a Display field. ie add the display field to the "Reset List" for the button.

Then set the hide condition of the display field to some session variable that you set when you send the email.

cheers
Bruce
Title: Re: Popup Notification On Form - Button Click
Post by: David on June 07, 2010, 06:06:24 AM
Bruce,

Thank you, that works.