NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: ianburgess on September 11, 2012, 09:22:36 AM

Title: Problem with web.script after updating to NT 6.44
Post by: ianburgess 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?
Title: Re: Problem with web.script after updating to NT 6.44
Post by: Niels Larsen 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
Title: Re: Problem with web.script after updating to NT 6.44
Post by: Bruce 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