Dynamic path to data-sly-resource from javascript | Community
Skip to main content
March 18, 2018
Solved

Dynamic path to data-sly-resource from javascript

  • March 18, 2018
  • 1 reply
  • 722 views

I am creating HTML based on the response from ajax call. I need to include one of the components those many times based on the response of ajax call.

var ajaxCallResp = [object,object,..];

I am using slick js for carousel behavior. For each object in "ajaxCallResp", I need to create the component with different ID in javascript.

Can you please let me know how to achieve?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by edubey

It won't work,

data-sly-resource gets compiled at server, so JS at browser wont have any control

1 reply

edubey
edubeyAccepted solution
Level 10
March 18, 2018

It won't work,

data-sly-resource gets compiled at server, so JS at browser wont have any control