Page 1 of 2
Local Image Asset Full Screen
Posted: Wed Oct 10, 2012 10:27 am
by CraigInDallas
I have seen a couple of posts that get real close to answering this, but would really appreciate some sample code help.
I have a full screen image that I am loading as a splash screen, loading it and timing it is no problem thanks to the posts. However getting the image full screen is still a problem,
Local Image Asset Full Screen
Posted: Wed Oct 10, 2012 10:48 am
by Maryna Brodina
Hello! Just to clarify - you have a splash screen and while App loads that splash screen doesn't fill full screen size?
Local Image Asset Full Screen
Posted: Wed Oct 10, 2012 10:51 am
by CraigInDallas
Hi Marina,
Thanks for asking.
On my start screen in the load event, I currently have this JS
$('div[dsid="mobilecontainer1"]').css('background-image',
'iphone_splash.jpg')
I have no idea what the correct path should be, and how to set a timer.
Local Image Asset Full Screen
Posted: Wed Oct 10, 2012 11:49 am
by Maryna Brodina
Try this
$('div[dsid="mobilecontainer1"]').css('background-image', 'url("' + Tiggzi.getImagePath("my_image.jpg") + '")');
Local Image Asset Full Screen
Posted: Wed Oct 10, 2012 12:05 pm
by CraigInDallas
Thank You much better, however 2 issues left.
- The Image is being cut off about half way down the screen.
- How do I set a 3 second timer to go to the next screen
Local Image Asset Full Screen
Posted: Wed Oct 10, 2012 12:17 pm
by Maryna Brodina
1) Create custom JS and run it onLoad on spash screen:
var navigateToScreen = function () {
Tiggr.navigateTo('mobilescreen1', {reverse: false});
};
setTimeout(navigateToScreen, 3000);
where mobilescreen1 - is the name of screen where you want to navigate after splash screen
2) What device do you use to test? Could you send us a screenshot where the splash screen cut off?
Local Image Asset Full Screen
Posted: Wed Oct 10, 2012 12:35 pm
by CraigInDallas
The timer does not seem to trigger via the web test. here is the code I have in the load:
$('div[dsid="mobilecontainer1"]').css('background-image', 'url("'+Tiggzi.getImagePath("iphone_splash.jpg")+'")');
var navigateToScreen = function () {Tiggr.navigateTo('MyVehicle', {reverse: false});};
setTimeout(navigateToScreen, 3000);
Here is the screen shot of the image being cut halfway down
Local Image Asset Full Screen
Posted: Wed Oct 10, 2012 2:02 pm
by CraigInDallas
Local Image Asset Full Screen
Posted: Wed Oct 10, 2012 2:22 pm
by Maryna Brodina
Thank's for the screenshot. It's a known issue. We'll fix it.
Local Image Asset Full Screen
Posted: Wed Oct 10, 2012 2:23 pm
by CraigInDallas
what about the timer not working?