I need to evaluate JSON file kept on some path in JS file.
path = "/apps/ademo/components/structure/basepage/mapp.json";
Like in dialog listener JS , we do - var x = CQ.shared.HTTP.eval(path);
I want to evaluate in component specific JS file.
(When i use "CQ.shared.HTTP.eval(path)" in component specific JS file, it gives an error as )
Please assist.
Solved! Go to Solution.
Views
Replies
Total Likes
Define clientlib(javascript file) which would define a function(javascript is all about functions) which would do the instructions you require to execute.
Run you function both in Author mode and Publisher mode.
Make sure you include your clientlib in both modes is added to your html.
Regards,
Peter
Views
Replies
Total Likes
Define clientlib(javascript file) which would define a function(javascript is all about functions) which would do the instructions you require to execute.
Run you function both in Author mode and Publisher mode.
Make sure you include your clientlib in both modes is added to your html.
Regards,
Peter
Views
Replies
Total Likes