Page 1 of 1

how to reference image from Image Assests

Posted: Wed Oct 17, 2012 2:17 am
by rammohan.acharyadasa

Hi
i want to reference image from the local asset image not the url image
please let me know
i want to do some think like this on page load
$('div[dsid="mobilecontainer12"]').css('background-image',
'woodwhiteimage.jpg')
here woodwhiteimage is stored in project/assets/images
please let me know how to achieve this


how to reference image from Image Assests

Posted: Wed Oct 17, 2012 3:38 am
by maxkatz

code
Tiggzi.getImagePath('image_name');
/code


how to reference image from Image Assests

Posted: Wed Oct 17, 2012 3:41 am
by rammohan.acharyadasa

Excellent. thanks a lot Max.