Forum Discussion
ARademacherARad
12 years agoQrew Member
That is the exact problem i am having. I am not able to find anything that will define the $URL as the current page we are on now. I keep getting syntax errors when i use this.. Something else i just tried
URLRoot() & "db/" & Dbid () & "?act=API_EditRecord&rid=" & [Record ID#]
& "&_fid_12="&URLEncode("Closed")
& "&rdr=" & URLEncode(URLRoot() & "javascript:location.reload(true))") <-but the java is not able to be used like that, but at least i get to a 404 error page and can hit my back button.
Any other ideas to define $URL as the current page?
The above sample did not work.
var URL = ??******MISSING FORMULA TO DEFINE THE CURRENT PAGE URL*******??
URLRoot() & "db/" & Dbid () & "?act=API_EditRecord&rid=" & [Record ID#]
& "&_fid_12="&URLEncode("Closed");
"javascript:" &
"$.get('" &
$URL &
"',function(){" &
"location.reload(true);" &
"});"
& "void(0);"
URLRoot() & "db/" & Dbid () & "?act=API_EditRecord&rid=" & [Record ID#]
& "&_fid_12="&URLEncode("Closed")
& "&rdr=" & URLEncode(URLRoot() & "javascript:location.reload(true))") <-but the java is not able to be used like that, but at least i get to a 404 error page and can hit my back button.
Any other ideas to define $URL as the current page?
The above sample did not work.
var URL = ??******MISSING FORMULA TO DEFINE THE CURRENT PAGE URL*******??
URLRoot() & "db/" & Dbid () & "?act=API_EditRecord&rid=" & [Record ID#]
& "&_fid_12="&URLEncode("Closed");
"javascript:" &
"$.get('" &
$URL &
"',function(){" &
"location.reload(true);" &
"});"
& "void(0);"