ishani modi
Posts: 0
Joined: Wed Oct 23, 2013 4:49 am

Image set from assets

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

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Image set from assets

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.

ishani modi
Posts: 0
Joined: Wed Oct 23, 2013 4:49 am

Image set from assets

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

Nikita
Posts: 0
Joined: Fri Feb 28, 2014 4:02 pm

Image set from assets

Hi,

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

Return to “Issues”