ClaytonRountree
8 years agoQrew Cadet
Formula URL Redirect in Javascript
I'm interested in modifying the javascript below to include a location redirect in the script.
//code for the redirect var
var text DisplayRecord=
URLRoot() & "db/" & [_DBID_TASKS_POC]
& "?a=td";
//execution section
"javascript:" &
"$.get('" & $AddRecordOne & "').then(function(){" &
"$.get('" & $AddRecordTwo & "').then(function(){" &
"$.get('" & $AddRecordThree & "').then(function(){" &
"$.get('" & $AddRecordFour & "').then(function(){" &
"$.get('" & $AddRecordFive & "').then(function(){" &
"$.get('" & $AddRecordSix & "').then(function(){" &
"$.get('" & $AddRecordSeven & "').then(function(){" &
"$.get('" & $AddRecordEight & "').then(function(){" &
"$.get('" & $AddRecordNine & "').then(function(){" &
"$.get('" & $AddRecordTen & "').then(function(){" &
"})" &
"})" &
"})" &
"})" &
"})" &
"})" &
"})" &
"})" &
"})" &
"});"
& "void(0);"
//end code
Where do I insert $DisplayRecord? I've tried numerous different spots, can't get it to work. Thanks in advance!
//code for the redirect var
var text DisplayRecord=
URLRoot() & "db/" & [_DBID_TASKS_POC]
& "?a=td";
//execution section
"javascript:" &
"$.get('" & $AddRecordOne & "').then(function(){" &
"$.get('" & $AddRecordTwo & "').then(function(){" &
"$.get('" & $AddRecordThree & "').then(function(){" &
"$.get('" & $AddRecordFour & "').then(function(){" &
"$.get('" & $AddRecordFive & "').then(function(){" &
"$.get('" & $AddRecordSix & "').then(function(){" &
"$.get('" & $AddRecordSeven & "').then(function(){" &
"$.get('" & $AddRecordEight & "').then(function(){" &
"$.get('" & $AddRecordNine & "').then(function(){" &
"$.get('" & $AddRecordTen & "').then(function(){" &
"})" &
"})" &
"})" &
"})" &
"})" &
"})" &
"})" &
"})" &
"})" &
"});"
& "void(0);"
//end code
Where do I insert $DisplayRecord? I've tried numerous different spots, can't get it to work. Thanks in advance!