Forum Discussion

GregoryGebhardt's avatar
GregoryGebhardt
Qrew Cadet
6 years ago

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);" &
"});"

2 Replies

  • AustinK's avatar
    AustinK
    Qrew Commander
    Javascript runs in every browser differently. Some browsers support certain commands while others will not. I cannot find the exact website I'm looking for but you want some compatibility websites. The second and third links are likely better.

    https://kangax.github.io/compat-table/es6/

    https://caniuse.com/#search=javascript

    https://caniuse.com/#search=jquery

    Looking at my 2nd and 3rd link you can see what commands IE supports for JS or jQuery. Do you need to use IE? Can you just change the default browser to be Chrome or anything else? Even Edge would do better than IE to be honest with you.
  • Thank you for this it will definitely help.  We are testing Edge right now with MUCH better results.  My field machines are limited on software due to infosec so it is a definite challenge some days.