GregoryGebhardt
7 years agoQrew Cadet
Problems Internet Explorer and Javascript URL Buttons
I have a simple formula URL button with some JS in it. It works just fine with Chrome but in IE instead of landing back on the same page like it does with Chrome...In IE.11 I get an blank page with 'object,object' in the upper left corner. Is there a known workaround or different code that works better with IE.11.0.115? Any help would be appreciated.
Code is as follows (borrowed from those of you here that are smarter than me):
var text URLTWO = URLRoot() & "db/" & Dbid() & "?act=API_EditRecord&rid=" & [Record ID#]
& "&_fid_181=" & [Related Location] & "&_fid_183=" & [Status];
var text URL = URLRoot() & "db/" & Dbid() & "?act=API_EditRecord&rid=" & [Record ID#]
& "&_fid_44=3&_fid_101=TRUE&_fid_65=" & URLEncode("Cancelled");
//change status
"javascript:" &
"$.get('" & $urltwo & "', '" & $url &
"',function(){" &
"location.reload(true);" &
"});"
Code is as follows (borrowed from those of you here that are smarter than me):
var text URLTWO = URLRoot() & "db/" & Dbid() & "?act=API_EditRecord&rid=" & [Record ID#]
& "&_fid_181=" & [Related Location] & "&_fid_183=" & [Status];
var text URL = URLRoot() & "db/" & Dbid() & "?act=API_EditRecord&rid=" & [Record ID#]
& "&_fid_44=3&_fid_101=TRUE&_fid_65=" & URLEncode("Cancelled");
//change status
"javascript:" &
"$.get('" & $urltwo & "', '" & $url &
"',function(){" &
"location.reload(true);" &
"});"