NetTalk Central

Author Topic: p_web.Message('Alert',loc:alert,p_web.site.MessageClass,Net:Send,1) question  (Read 4751 times)

jari@softmade.fi

  • Full Member
  • ***
  • Posts: 131
    • View Profile
    • Email
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

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11244
    • View Profile
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


jari@softmade.fi

  • Full Member
  • ***
  • Posts: 131
    • View Profile
    • Email
Hi Bruce

See attachment

I just want to change Alert text in the header

Jari

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11244
    • View Profile
what embed point did you add your code to?

That is the context I am talking about...

cheers
Bruce

oggy

  • Full Member
  • ***
  • Posts: 219
    • View Profile
    • Email
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...!");')

jari@softmade.fi

  • Full Member
  • ***
  • Posts: 131
    • View Profile
    • Email
Thanks Oggy

That works fine

Jari