Client-side code DOM manipulation

Rama Rao
Tera Contributor

Hi,

Which elements are under DOM manipulation in the client script?

Thanks and Regards,

Ramarao

13 REPLIES 13

No it is not under DOM

Raghav
MVP 2023

Hello Raghav,

Thanks for that!

One more query, Below script contains a document and is this script under DOM Manipulation?

Can you please check once and help me?

Code :

function onChange(control, oldValue, newValue, isLoading, isTemplate) {
if (isLoading || newValue === '') {
return;
}

var manager = new GlideAjax("ccc_Utils");
manager.addParam("sysparm_name","getServiceOfferingKnowledge");
manager.addParam("sysparm_Ticket",newValue);
manager.getXML(ajaxResponse);



function ajaxResponse(serverResponse) {
var answer = serverResponse.responseXML.documentElement.getAttribute("answer");
g_form.setValue("u_service_offering",answer);
}
//Type appropriate comment here, and begin script below

}

No this is not DOM, this is glideAjax OOB method. You are not trying to manipulate anything on form through this. You are just getting response from server

Raghav
MVP 2023

Hello Raghav,

Thanks for your help.

Hello Raghav,

I have one more doubt. Can you please help me with that?

location.assign(URL) is under DOM manipulation?