NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: jari@softmade.fi on June 20, 2016, 09:47:06 AM

Title: p_web.Message('Alert',loc:alert,p_web.site.MessageClass,Net:Send,1) question
Post by: jari@softmade.fi on June 20, 2016, 09:47:06 AM
Hello

How can I translate the 'Alert'-text to 'Huom'
I tried to  p_web.Message('Huom',loc:alert,p_web.site.MessageClass,Net:Send,1) but that did not work out

regards

Jari
Title: Re: p_web.Message('Alert',loc:alert,p_web.site.MessageClass,Net:Send,1) question
Post by: Bruce on June 20, 2016, 11:42:29 PM
Hi Jari,

When it comes to Alert and messages, context is everything.
Can you tweak a shipping example to show what you have in mind?

thanks
Bruce

Title: Re: p_web.Message('Alert',loc:alert,p_web.site.MessageClass,Net:Send,1) question
Post by: jari@softmade.fi on June 21, 2016, 03:21:07 AM
Hi Bruce

See attachment

I just want to change Alert text in the header

Jari
Title: Re: p_web.Message('Alert',loc:alert,p_web.site.MessageClass,Net:Send,1) question
Post by: Bruce on June 27, 2016, 01:05:45 AM
what embed point did you add your code to?

That is the context I am talking about...

cheers
Bruce
Title: Re: p_web.Message('Alert',loc:alert,p_web.site.MessageClass,Net:Send,1) question
Post by: oggy on June 27, 2016, 01:33:00 AM
Try this:  instead of p_web.Message('Huom',loc:alert,p_web.site.MessageClass,Net:Send,1), this:

        p_web.Script('ntAlert("bla-bla-bla!","Huom...!");')
Title: Re: p_web.Message('Alert',loc:alert,p_web.site.MessageClass,Net:Send,1) question
Post by: jari@softmade.fi on June 27, 2016, 08:09:14 AM
Thanks Oggy

That works fine

Jari