Forum Discussion
XavierFan
11 years agoQrew Cadet
In that case, try this:
var text URL= URLRoot() & "db/" & [_DBID_TABLE_1] & "?act=API_EditRecord"
& "&rid=" & URLEncode ([Record ID#])
& "&_fid_7=" & URLEncode ([Status])
& "&apptoken=" & "XXXX";
"javascript:" &
"location.reload(true);" &
"$.get('" &
$URL &
"');" &
"void(0);"
Here are the key parts of the javascript portion:
"location.reload(true);" - This first does the reload
"$.get('" & $URL & "');" - This uses the $.get function to run the URL. In this case, you don't need a success function to run after the URL.
Hopefully this does what you want.
var text URL= URLRoot() & "db/" & [_DBID_TABLE_1] & "?act=API_EditRecord"
& "&rid=" & URLEncode ([Record ID#])
& "&_fid_7=" & URLEncode ([Status])
& "&apptoken=" & "XXXX";
"javascript:" &
"location.reload(true);" &
"$.get('" &
$URL &
"');" &
"void(0);"
Here are the key parts of the javascript portion:
"location.reload(true);" - This first does the reload
"$.get('" & $URL & "');" - This uses the $.get function to run the URL. In this case, you don't need a success function to run after the URL.
Hopefully this does what you want.