since ‎25-11-2019
‎14-01-2021
dj_datum
Level 1
How to access html fragment file in another component via source code
Avatar

dj_datum

dj_datum
- Adobe Experience Manager
Greetings!! I am creating a modal using an hbs template file. In the modal I want to use an html file as the modal-body. Both files exist in the ui.apps project. I have tried div.load() in javascript client-libs as well as data-sly-include and data-sly-resource in the hbs and cannot properly access the html file. Any suggestions on how to get this connected properly?? Thank you, -Daniel

Views

67

Likes

0

Replies

1
data-sly-use - can I link to java and javascript events
Avatar

dj_datum

dj_datum
- Adobe Experience Manager
Good Morning,I am supporting an AEM application with Java 8 backend and javascript supporting the front end. One .html page in particular has the data-sly-use pointed to the Java side to autoload a set of combo boxes on page load. Selection update events are stored in javascript but is not linked to the .html file (yet). Is it possible to use data-sly-use to point to both the java and javascript sides simultaneously?? Thank you,-Daniel Update: Thank you @BrianKasingli and @Theo_Pendle Both were ...

Views

738

Likes

0

Replies

2