Page 1 of 2
Background Image Fails to Load
Posted: Sun Feb 17, 2013 1:27 pm
by Joe Bohen
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
Background Image Fails to Load
Posted: Mon Feb 18, 2013 10:24 am
by Kateryna Grynko
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?
Background Image Fails to Load
Posted: Mon Feb 18, 2013 10:50 am
by Joe Bohen
Hi Katya,
Whoops sorry I had misnamed the file extension.
Background Image Fails to Load
Posted: Mon Feb 18, 2013 10:51 am
by Kateryna Grynko
Glad it's ok now 
Background Image Fails to Load
Posted: Tue May 07, 2013 10:14 pm
by Darius Mack5830129
Does this code need to be placed in the component=startScreen Event=load Action=run javascript??
Background Image Fails to Load
Posted: Tue May 07, 2013 10:29 pm
by Alena Prykhodko
Hello!
Have you tried it?
Background Image Fails to Load
Posted: Tue May 07, 2013 10:30 pm
by Darius Mack5830129
Yes I have tried it, not working for me so I figured I was entering it in the wrong place.
Background Image Fails to Load
Posted: Tue May 07, 2013 10:32 pm
by Alena Prykhodko
Please post the code or Please post your code
Background Image Fails to Load
Posted: Tue May 07, 2013 10:34 pm
by Alena Prykhodko
Please post the code you use.
Background Image Fails to Load
Posted: Tue May 07, 2013 10:35 pm
by Darius Mack5830129
$('div[dsid="mobilecontainer1"]').css('background-image','url("http://blastdfw.com/blast/blastbck.jpg")');