NetTalk Central

Author Topic: Popup Notification On Form - Button Click  (Read 4489 times)

David

  • Full Member
  • ***
  • Posts: 127
    • View Profile
Popup Notification On Form - Button Click
« 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

rjolda

  • Sr. Member
  • ****
  • Posts: 329
    • View Profile
    • Email
Re: Popup Notification On Form - Button Click
« Reply #1 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

David

  • Full Member
  • ***
  • Posts: 127
    • View Profile
Re: Popup Notification On Form - Button Click
« Reply #2 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.

Alberto

  • Hero Member
  • *****
  • Posts: 1873
    • MSN Messenger - alberto-michelis@hotmail.com
    • View Profile
    • ARMi software solutions
    • Email
Re: Popup Notification On Form - Button Click
« Reply #3 on: June 05, 2010, 07:20:01 AM »
There is a NTWS example which uses a page indicating the email sent status.
Alberto
-----------
Regards
Alberto

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Popup Notification On Form - Button Click
« Reply #4 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

David

  • Full Member
  • ***
  • Posts: 127
    • View Profile
Re: Popup Notification On Form - Button Click
« Reply #5 on: June 07, 2010, 06:06:24 AM »
Bruce,

Thank you, that works.