2 Replies Latest reply: Apr 20, 2012 2:25 AM by 923211 RSS

    JavaScript: Retrieve Hostname

    923211
      Hi,

      Is it possible to get server hostname via JavaScript in OEG?

      This api window.location.hostname or location.hostname do not work. OEG is throwing this error:

      nested fault: sun.org.mozilla.javascript.internal.EcmaError: ReferenceError: "window" is not defined. (<Unknown source>#3) in <Unknown source> at line number 3