V12.5.0 4D - standalone or 4D Server (both used)
Vista or Mac OSX (both used)
A4D v6.0.11 build 12C3012, 4D web server
Chrome Version 25.0.1364.172 m or Safari 5.1.7 (both used)
Since upgrading from v5.0.437 to v6.0.r11, I'm having a bug with an a4d
script executing twice. The last line of the script is a library method call
to a Redirect function.
I need some ideas on how to stop the script from executing twice. The line
below should cause a redirect, but instead the same script is executed
again, and then it does a correct redirect.
Thanks in advance!!
UT.RDR("homeVisit.a4d?hvid="+string([Home_Visit]ID)+"&view=1")
My logging shows that the correct URL is requested for redirect.
4D's Web Logging shows that the web script is called only once.
Active4D is reporting no error, nothing in the log about it.
The web page is error free by CSE HTML Validator.
method "RDR"($tRDR)
$tMsg:="Rdr From: "+requested url+" to /1/"+$tRDR
Web_Log($tMsg)
Redirect("/1/"+$tRDR)
end method
Database settings: Standard Set = UTF-8; Send Extended Characters Directly
(checked).
<meta http-equiv="Content-Style-Type" content="text/css">
<meta http-equiv="Content-Script-Type" content="text/javascript">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"">
<form name="homeVisit"
action="/1/processing/homeVisit_process.a4d?Save=1&hvid=0"
method="post">
#Version: 1.0
#Software: 4D_v12/12.5.0
#Date: 2013-03-19 9:20:40
#Remark: format ELF
#Fields: BYTES_SENT CS-CDNS C-IP CS(COOKIE) CS(HOST) CS(REFERER)
CS(USER-AGENT) USER METHOD CS-SIP SC-STATUS CS-URI CS-URI-QUERY CS-URI-STEM
DATE TIME TIME-TAKEN
431 192.168.2.98 192.168.2.98 "ACTIVE4D_SESSIONID=47334B273D34D0B5"
"192.168.2.98:8085" "http://192.168.2.98:8085/1/homeVisit.a4d?" "Mozilla/5.0
(Windows NT 6.0) AppleWebKit/537.22 (KHTML, like Gecko) Chrome/25.0.1364.172
Safari/537.22"- POST 192.168.2.98 303
/1/processing/homeVisit_process.a4d?Save=1&hvid=0 Save=1&hvid=0
/1/processing/homeVisit_process.a4d 2013-03-19 14:53:23 283
115031 192.168.2.98 192.168.2.98 "ACTIVE4D_SESSIONID=47334B273D34D0B5"
"192.168.2.98:8085" "http://192.168.2.98:8085/1/homeVisit.a4d?" "Mozilla/5.0
(Windows NT 6.0) AppleWebKit/537.22 (KHTML, like Gecko) Chrome/25.0.1364.172
Safari/537.22"- GET 192.168.2.98 200 /1/homeVisit.a4d?hvid=49822&view=1
hvid=49822&view=1 /1/homeVisit.a4d 2013-03-19 14:53:25 2383
David Ringsmuth
_______________________________________________
Active4D-dev mailing list
[email protected]
http://list.aparajitaworld.com/listinfo/active4d-dev
Archives: http://active4d-nabble.aparajitaworld.com/