Function within Script Include is not working

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-24-2017 01:39 AM
Hello All,
I know this is very simple code in server side script but why it is not working I am very amaze.. .
gs.print('I am running '+ this._gettest('da','Hello Sir'));
function _gettest(target,query) {
gs.print(target + query);
}
Thanks all !!
Regards,
SS
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-24-2017 01:50 AM
How do you know it's not working?
Maybe replacing gs.print with gs.log will show it's working? gs.print only prints in localhost_log while gs.log adds a row in syslog table as well.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-24-2017 01:55 AM
How are you calling it? You have created it as a private function.
Thanks
Please Hit like, Helpful or Correct depending on the impact of the response.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-24-2017 02:01 AM
Thanks for your response. I tried with gs.log and checked in system logs but not helping.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-24-2017 02:03 AM
How do you call the script include? From where?