And for the second code that you suggested im getting the error: SlingException: Cannot get DefaultSlingScript: org.mozilla.javascript.EcmaError: ReferenceError: "$" is not defined.
<sly data-sly-use.status="'myfile.js' @ url=${file2.path}"> gives me an error --> SlingException: Cannot get DefaultSlingScript: Identifier 'myfile.js' @ url=http://localhost:4502/<path> cannot be correctly instantiated by the Use API
I have a js file with the following code:"use strict";use(function () {//var url= this.url; //line 3var url = "http://experienceleague.adobe.com/docs/experience-manager-htl/using/htl/use-api-javascript.html?lang=en"; //line 4var getRequest = new org.apache.commons.httpclient.methods.GetMethod(url),c...
I am using AEM 6.5 AND i have a component in which RTE plugin is available for the description field. Through this RTE I can add table to my description. I wanted to have some enhacements like adding color to cell background, font color, alignment etc.Can someone suggest best approach for this? Than...
Corrected the code line as below and the loop will start working fine:$(this).find("[data-granite-coral-multifield-name$='Child'] .coral3-Multifield-item").each(function( index ) {
I have a dialog where there is nested multifield. In the nested multifield, there's dropdown.-----Details of the dialog:Multifield Container (name = Parent) Multifield Container (name = Child) dropdown (class = cq-dialog-dropdown-showhide-multi)------Javascript code for lo...
I am only using the code for outer loop and I have a console log within the loop. I have a parent multifield item, and it has 2 child items. The console log is printing 3 times (1 parent + 2 child item). Even though the outer loop is for parent and should only run once.