How can I access jQuery from a Client Script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2014 07:39 AM
Hello,
I've got a "Client Script" from which I'd like to access jQuery functionality. How can I do this? This is a normal ServiceNow client script, so I am already in an onChange() or onLoad() function and am not able to use the <g:include /> construct as this is not a UI page. I see from inspecting the ServiceNow page that it looks like ServiceNow has setup a javascript include of <script></script> but when I try to reference window.jQuery or $j, I'm getting an undefined error.
Any sight to this would be helpful.
Thanks,
Brandon
- Labels:
-
Service Mapping
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-04-2014 09:06 AM
Great! Go ahead and mark it answered
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-08-2014 02:30 AM
Please make sure if you set any UI script as Global, then the entire script will run on onload of all the pages in the servicenow.
Check twice before making as global since this will leads to affect your entire instance.
Thanks
Anish