In how many methods we can call script include in client scripts??

jaiku
Giga Contributor
  1. 1. In how many methods we can call script include in client scripts
8 REPLIES 8

sachin_namjoshi
Mega Patron

You need to use GlideAjax to call script include from client script.



Regards,


sachin


paulmorris
Giga Sage

You can only use Script Includes for GlideAjax (scripts that extend GlideAjax) in Client Scripts.



Otherwise, you can use UI scripts to define classes, which has access to all the UI API.



ServiceNow Nerd
ServiceNow Developer MVP 2020-2022
ServiceNow Community MVP 2019-2022

Not applicable

Swapnil Bhakar1
Mega Guru

Hi Jai,



There is only one way that you can call script include in client script by using GlideAjax.



More more info. please refer below links:



http://wiki.servicenow.com/index.php?title=GlideAjax#gsc.tab=0


http://wiki.servicenow.com/index.php?title=Script_Includes#gsc.tab=0




Regards,


Swapnil



PS: Hit like, Helpful or Correct depending on the impact of the response