Page 1 of 2

How to get Image in html panel

Posted: Sun Nov 11, 2012 2:07 am
by Neil A Singh

Can someone help me get an image in a custom html panel? I place my image in a new page ...use firebug to get location and it shows up when I test. But when I build the app the image is gone. Can someone help? Thanks in advance.


How to get Image in html panel

Posted: Sun Nov 11, 2012 2:18 am
by maxkatz

We did have a bug where images in the app wouldn't be exported when building a binary, but I need to get its status. Try this. Put the image somewhere on the Internet, and link to it instead in the app.


How to get Image in html panel

Posted: Sun Nov 11, 2012 6:07 pm
by Neil A Singh

My app does not require the internet, it is more of a information/brochure type app. If i put the image outside the html panel and add the code to center the image it remains left aligned, but shows up. I really need to center the image is there a way to fix this issue?


How to get Image in html panel

Posted: Mon Nov 12, 2012 12:30 am
by maxkatz

How did you center the image?


How to get Image in html panel

Posted: Mon Nov 12, 2012 12:15 pm
by Neil A Singh

I used this code: Tiggzi('mobileimage16').parent().css('margin','auto');
Tiggzi('mobileimage16').parent().css('align','center');


How to get Image in html panel

Posted: Mon Nov 12, 2012 12:41 pm
by Maryna Brodina

Hello! You should put this code on screen load event

Tiggzi('mobileimage1').parent().css('margin','auto')
Tiggzi('mobileimage1').parent().css('align','center')

mobileimage1 - name of your img component

Image


How to get Image in html panel

Posted: Mon Nov 12, 2012 1:08 pm
by Neil A Singh

I have 3 images on my page, 2 of them are centered but the third will not and if I add more the will not center either. Please see images and tell what I am doing wrong . Image Image Image


How to get Image in html panel

Posted: Mon Nov 12, 2012 1:25 pm
by Neil A Singh

Ok I give up. I've concluded it cannot be done. What is the difference with your code and mine?


How to get Image in html panel

Posted: Mon Nov 12, 2012 1:53 pm
by Maryna Brodina

Are you sure you are using correct component's name in JS? If yes - please send us your project link (make it public) - http://help.gotiggr.com/documentation...


How to get Image in html panel

Posted: Mon Nov 12, 2012 2:28 pm
by Neil A Singh