Page 1 of 1

Image set from assets

Posted: Tue Mar 11, 2014 7:03 am
by ishani modi

Hi,
I want to get image dynamically which is in asset how would i get it, i have written code

$("#StartMeeting_mobileheaderStartMeeting").css('background-image', url("../image/logo.png"));

but it is not coming.
Thanks,
Ishani


Image set from assets

Posted: Tue Mar 11, 2014 7:23 am
by Maryna Brodina

Hello!
1) Please check if you've specified correct selector "#StartMeeting_mobileheaderStartMeeting". In fact it's better to use Appery("componentName") for this purpose.
2) Check image path.


Image set from assets

Posted: Tue Mar 11, 2014 7:32 am
by ishani modi

Hi,the selector is correct and the image is in files/view/image/logo.png in web resources


Image set from assets

Posted: Tue Mar 11, 2014 5:12 pm
by Nikita

Hi,

You are using a wrong link to an image. You should use a link like this:
url(files/views/assets/image/logo.png)