NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: johanco123 on March 07, 2017, 05:22:56 AM

Title: Alert Message does not display on browse row click
Post by: johanco123 on March 07, 2017, 05:22:56 AM
Hi Bruce

I have a memory form with a browse on. I want to display a certain alert message when click on a browse row.

I add some code with a certain condition  in  'the user click on a row in the browse' embed point and then call 'do SendMessage' routine:
loc:alert = 'SendMessage now whatever...'
but now alert message display.

I even try in code rather than calling do SendMessage :
loc:alert = 'SendMessage now whatever...'
p_web.Message('Alert',loc:alert,p_web.site.MessageClass,Net:Send,true)
No message display.

Any help or suggestions will be appreciated.
Regards
Johan

NT9.20
cl8
Title: Re: Alert Message does not display on browse row click
Post by: Robert Iliuta on March 07, 2017, 11:48:50 PM
Hallo Johan,

Try this:

Code: [Select]
p_web.Script('alert(''This is a info message!'',''Info'');')

Robert
Title: Re: Alert Message does not display on browse row click
Post by: johanco123 on March 08, 2017, 12:43:03 AM
Hallo Robert

Tanks for your suggestion. I also try
p_web.Script('ntAlert("This is a info message!","Info");')
but still no message display when I click on the browse row..

Johan
Title: Re: Alert Message does not display on browse row click
Post by: Robert Iliuta on March 08, 2017, 12:06:59 PM
I test on my browse with the code I sent you and works perfect.
Can you test on another browse? Also check on source to see maybe you have another script there that broke this one...there must be something wrong there :-)

Robert
Title: Re: Alert Message does not display on browse row click
Post by: johanco123 on March 13, 2017, 04:43:52 AM
Tanks Robert.

Problem solved. It was another script causing the problem.

Johan