Page 1 of 4

background image not appearing in tiggzi test app

Posted: Tue Mar 06, 2012 5:00 pm
by David K

I am trying to get a background image to appear and using the "how to" I found on the tiggzi site, it works when I test from the editor, but the image does not appear when I test using the Tiggzi tester app on my phone...

I have tried both the absolute url and relative /assets/ url and in both cases the images don’t show in the tester app...

the code is in the load event for the page, and again it works in test but not in the test app:

$('div[dsid="mobilecontainer2"]').css('background-image','url("http://tiggzi.com/views/assets/asset-...)

or

$('div[dsid="mobilecontainer2"]').css('background-image','url("/assets/asset-1322462")')

thanks in advance -

Any ideas?


background image not appearing in tiggzi test app

Posted: Tue Mar 06, 2012 5:04 pm
by David K

btw, should the dsid be the common name or the class name for the container I want the background image to show? Right now, I am using the common name and have not added any class names for each container...


background image not appearing in tiggzi test app

Posted: Tue Mar 06, 2012 5:13 pm
by maxkatz

Can you also make the app link public (Test, check Public)?


background image not appearing in tiggzi test app

Posted: Tue Mar 06, 2012 5:22 pm
by maxkatz

I'm not sure I understand the question. 'dsid' is an attribute we add to component so it's easier to find them by name.


background image not appearing in tiggzi test app

Posted: Tue Mar 06, 2012 5:54 pm
by David K

yep


background image not appearing in tiggzi test app

Posted: Tue Mar 06, 2012 5:55 pm
by David K

I was just trying to make sure I was applying the css to the right div, but duh sorry, it works in test so I must of been doing that at least correctly ;-) disregard this part...


background image not appearing in tiggzi test app

Posted: Tue Mar 06, 2012 6:18 pm
by maxkatz

Use the absolute URL but take out the 'views' path. Let me know if that helps.


background image not appearing in tiggzi test app

Posted: Tue Mar 06, 2012 6:20 pm
by David K

Hmm, here is what just started working now and it is the same, has the views path still:

$('div[dsid="logincontainer"]').css('background-image','url("http://tiggzi.com/views/assets/asset-...)

but, you are saying it should work like...

$('div[dsid="logincontainer"]').css('background-image','url("http://tiggzi.com/assets/asset-132246...)

... this?


background image not appearing in tiggzi test app

Posted: Tue Mar 06, 2012 6:22 pm
by maxkatz

This worked for me:

code
$('div[dsid="mobilecontainer1"]').css('background-image','url("http://tiggzi.com/assets/asset-1322462")');
/code


background image not appearing in tiggzi test app

Posted: Tue Mar 06, 2012 6:29 pm
by David K

Ok cool, that is consistently working now... appreciate your help Max ;-)