NetTalk Central

Author Topic: Problem with web.script after updating to NT 6.44  (Read 1979 times)

ianburgess

  • Full Member
  • ***
  • Posts: 119
    • View Profile
    • Email
Problem with web.script after updating to NT 6.44
« on: September 11, 2012, 09:22:36 AM »
After updating from NT5 to 6.44, I have a script that is called to display a message box in ValiodateAll of a form which previously worked ok:

embed:
p_web.Script('alert("Warning: You have not entered a Time at Patient - this entry will be treated as CANCELLED")')

Now, the message is displayed but on returning to the browse, the browse style is incorrect and the following text is displayed at the top:
HTTP/1.1 200 OK Date: Tue, 11 Sep 2012 17:16:03 GMT Server: NetTalk-WebServer/6.44 Expires: Mon, 12 Sep 2011 17:16:03 GMT Content-Type: text/html Cache-Control: no-store, no-cache, must-revalidate, private,post-check=0, pre-check=0, max-age=0 Pragma: no-cache Connection: close

What has gone wrong?

Niels Larsen

  • Sr. Member
  • ****
  • Posts: 420
    • View Profile
    • Email
Re: Problem with web.script after updating to NT 6.44
« Reply #1 on: September 11, 2012, 09:59:24 AM »
I had the same problem some time ago.
My occurred because I had a "DO SendPacket" in the middle of <HEAD> </ HEAD>

/Niels

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11183
    • View Profile
Re: Problem with web.script after updating to NT 6.44
« Reply #2 on: September 11, 2012, 10:48:30 PM »
it usually means you've embedded something before the header is sent.
I guess a small example might help determine a better way to add the script.

cheers
Bruce