NetTalk Central

Author Topic: End user message using javascript  (Read 1507 times)

hkalmbach

  • Jr. Member
  • **
  • Posts: 80
    • View Profile
    • Email
End user message using javascript
« on: April 14, 2014, 05:13:01 AM »
Hello,
according to an older topic and a hint of Bruce I

check out User Group Webinar #9 at approx 0:42
http://www.capesoft.com/accessories/NetTalkUserGroup.htm

I tried to create an end user message after saving a record like the following:

PostUpdate      Routine
  ! Start of "On Update : Form ends : following disk write"
  ! [Priority 4000]
 
  !  p_web.Script('ntAlert("Auftrag gespeichert.","Auftragsbearbeitung");')
   p_web.Script('alert("Auftrag gespeichert.");')
 
Now I have the effect, that it does not work as expected:
- in Chrome it works
- with Internet Explorer 8 nothing happens
- with Internet Explorer 11 nothing happens
- with Firefox if the message is active I get displayed the html text in the browser??

I am using Nettalk 6.

Does someone know what goes wrong, what preference I have to change or what else to do?

Thanks

Heinz

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11191
    • View Profile
Re: End user message using javascript
« Reply #1 on: April 14, 2014, 05:51:38 AM »
I don't think you can do the ntAlert in NT6. That came after that. The Alert might be ok, but the ntAlert is likely breaking the scripting in the other browsers.

so remove the first line.

Cheers
Bruce

hkalmbach

  • Jr. Member
  • **
  • Posts: 80
    • View Profile
    • Email
Re: End user message using javascript
« Reply #2 on: April 14, 2014, 06:24:43 AM »
Hi Bruce,

I tried both, the descriped behaviour is that of 'alert', as you can see the first line is commented out.

You have an idea?

Cheers
Heinz