15 Replies Latest reply on Aug 19, 2016 8:36 AM by Scott A Johnson

    images path issue in add-on

    gopi.gorantala

      Hi Scott A Johnson, Ryan Rutan,

       

      I have a requirement to place the image path inside a javascript file which actually creates dynamic thumbnails.

       

      I have the images under  apps>myaddon>public/images/backup.gif etc..

       

      If I try to test/access it in a html then its working with src path as images/backup.gif, as I have the html file inside the "public" folder but when i use the same path in my javascript file which is under "pulic/javascripts/app/createuser.js" folder, then its not working at all.

       

      Any suggessions, how should I be able to display the image using javascript ?