David K
Posts: 0
Joined: Wed Feb 09, 2011 5:59 pm

background image not appearing in tiggzi test app

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?

David K
Posts: 0
Joined: Wed Feb 09, 2011 5:59 pm

background image not appearing in tiggzi test app

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...

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

background image not appearing in tiggzi test app

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

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

background image not appearing in tiggzi test app

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.

David K
Posts: 0
Joined: Wed Feb 09, 2011 5:59 pm

background image not appearing in tiggzi test app

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...

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

background image not appearing in tiggzi test app

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

David K
Posts: 0
Joined: Wed Feb 09, 2011 5:59 pm

background image not appearing in tiggzi test app

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?

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

background image not appearing in tiggzi test app

This worked for me:

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

David K
Posts: 0
Joined: Wed Feb 09, 2011 5:59 pm

background image not appearing in tiggzi test app

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

Return to “Issues”