Client-side code should not use DOM manipulation technique
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā10-14-2019 12:26 AM
Hi,
we recently run a health scan and wanted to change DOM calls and the given recommendation is
""
can someone help me on how we can achieve this without disturbing the ongoing fucntionality
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā10-14-2019 04:00 AM
Hi Phani,
I think DOM, jQuery is not recommended to be used in client side
Mark ā
Correct if this solves your issue and also mark š Helpful if you find my response worthy based on the impact.
Thanks
Ankur
Ankur
⨠Certified Technical Architect || ⨠9x ServiceNow MVP || ⨠ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā11-24-2021 01:33 AM
Hope you are doing good.
Did my reply answer your question?
If my response helped you please mark it correct to close the question so that it benefits future readers as well.
Regards
Ankur
Ankur
⨠Certified Technical Architect || ⨠9x ServiceNow MVP || ⨠ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā12-19-2022 01:02 AM
I am doing health scan remediation and I found similar kind of issue in below to avoid DOM function using in catalog client script.
var attachments = document.getElementById('header_attachment_list_label');
Please suggest me to modify script instead of that.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā11-24-2021 03:27 AM
Have you tried using "g_form.getControl('name');" instead of document.getElementByID and see if that works for you.
Hope this helps. Please mark the answer as correct/helpful based on impact.
Regards,
Shloke
Regards,
Shloke