Easy way to determine if my program is being run in the development environment or being run from the web-site?
Probably very simple, but I'm not seeing it. Wanting to obtain programparameters. I did attempt a forum search however was unsuccessful in several attempts.
Thanks and cheers
Environment?
Re: Environment?
You can try reading window.location.href in javascript, this normally should be the URL, where the SB program was loaded from, or try window.location.host should show only the hostname and port.
Re: Environment?
Sweet. Seems to be what I need. Not much of a js (or much of any kind) of expert. Many thanks.
cheers
cheers