NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: John Fligg on April 07, 2012, 11:43:08 AM

Title: Cannot get alert to work
Post by: John Fligg 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
Title: Re: Cannot get alert to work
Post by: Bruce 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
Title: Re: Cannot get alert to work
Post by: kevin plummer 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.
Title: Re: Cannot get alert to work
Post by: John Fligg 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