NetTalk Central

Author Topic: Cannot get alert to work  (Read 3482 times)

John Fligg

  • Sr. Member
  • ****
  • Posts: 361
    • View Profile
    • Ambrit Software
    • Email
Cannot get alert to work
« on: April 07, 2012, 11:43:08 AM »
On my Login form I have an alert statement which works perfectly.

However anywhere else in the system I cannot get alert to work.

I am basically trying to interact with the user when errors occur such as "You have not selected a record" or similar.

What could I be doing wrong and are there places when alert will not work?

Thanks

John

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Cannot get alert to work
« Reply #1 on: April 08, 2012, 09:54:17 PM »
Alert sends a script to the browser.
So it can only be used in places where it is appropriate to send a script to the browser.

cheers
Bruce

kevin plummer

  • Hero Member
  • *****
  • Posts: 1195
    • View Profile
    • Production Accounting and Software Payroll
Re: Cannot get alert to work
« Reply #2 on: April 09, 2012, 06:25:37 PM »
post how you are calling. I seem to get it working in most places. p_web.popup('xxx') can also be useful.

John Fligg

  • Sr. Member
  • ****
  • Posts: 361
    • View Profile
    • Ambrit Software
    • Email
Re: Cannot get alert to work
« Reply #3 on: April 09, 2012, 10:27:39 PM »
Thanks Kevin - I think as Bruce suggested I must have been trying to use it in an inappropriate place. In fact I was!

I will try "popup" as you suggest.

Thanks

John