Mark, here's the new code I wrote to replace javascript. It's meant to be used as a button in a report to mark a record as "reviewed" with the username and date/time recorded.
var text name = "&_FID_12="; //FID for a user field I want to change
var text stamp = "&_FID_13="; //FID for a date field I want to change
var text tk = "cm7ucz6d2iyh6db4exfkbpzgsyx"; //Apptoken for my application
var text return = "&rdr=' + escape(window.location); return false;});";
URLRoot() & "db/" & Dbid() & "?a=API_EditRecord&apptoken=" & $tk & "&rid=" & [Record ID#] &
$name & ToText(User()) &
"&rdr=" &
URLEncode(URLRoot() & "db/" & Dbid() & "?a=API_EditRecord&apptoken=" & $tk & "&rid=" & [Record ID#] &
$stamp & Today() &
"&rdr=" &
URLEncode(URLRoot() & "db/" & Dbid() & "?a=doredirect&z=" & Rurl()
))
------------------------------
Samantha Sand
------------------------------