Joe Bohen
Posts: 0
Joined: Wed Nov 28, 2012 11:28 am

Background Image Fails to Load

I am loading a background image on the page load event this works fine in the developer but when I export the app and load it onto a device the image is missing.

This code loads in the developer but not on the device.

$('div[dsid="mobilecontainer1"]').css('background-image','url("http://project.tiggzi.com/views/7cf54...")');

This code fails on both.

$('div[dsid="mobilecontainer1"]').css('background-image','url("' + Tiggzi.getImagePath('sprinter.jpeg') + '")');

Can you tell me the correct approach.

Regards,
Joe

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Background Image Fails to Load

Hi,

If you create a simple image with sprinter.jpeg would it be displayed on Android?
Please check file name "sprinter.jpeg". Is it the same as you downloaded?

Joe Bohen
Posts: 0
Joined: Wed Nov 28, 2012 11:28 am

Background Image Fails to Load

Hi Katya,

Whoops sorry I had misnamed the file extension.

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Background Image Fails to Load

Glad it's ok now :)

Darius Mack5830129
Posts: 0
Joined: Mon May 06, 2013 8:15 pm

Background Image Fails to Load

Does this code need to be placed in the component=startScreen Event=load Action=run javascript??

Alena Prykhodko
Posts: 0
Joined: Tue Apr 09, 2013 7:36 am

Background Image Fails to Load

Hello!

Have you tried it?

Darius Mack5830129
Posts: 0
Joined: Mon May 06, 2013 8:15 pm

Background Image Fails to Load

Yes I have tried it, not working for me so I figured I was entering it in the wrong place.

Alena Prykhodko
Posts: 0
Joined: Tue Apr 09, 2013 7:36 am

Background Image Fails to Load

Please post the code or Please post your code

Alena Prykhodko
Posts: 0
Joined: Tue Apr 09, 2013 7:36 am

Background Image Fails to Load

Please post the code you use.

Darius Mack5830129
Posts: 0
Joined: Mon May 06, 2013 8:15 pm

Background Image Fails to Load

$('div[dsid="mobilecontainer1"]').css('background-image','url("http://blastdfw.com/blast/blastbck.jpg")');

Return to “Issues”