This discussion is archived
2 Replies Latest reply: Apr 20, 2012 12:25 AM by 923211 RSS

JavaScript: Retrieve Hostname

923211 Newbie
Currently Being Moderated
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

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points