Then it probably means your server-side script is doing a bad job, and $Android is not set to true with Android default browser.
Le mercredi 26 mars 2014 12:48:20 UTC+1, ges87 a écrit : > > Hello > > I have built a small website for mobile with IUI > If I use the default theme everything works fine. > To make it nicer, I have made with php an automatic theme selection > depending on the kind of mobile device: > > <?php if($iPod||$iPhone||$iPad) { ?> > <link rel="stylesheet" href="iui/t/defaultgrad/defaultgrad-theme.css" > type="text/css"/> > <?php } else if($Android) {?> > <link rel="stylesheet" > href="iui/ext-sandbox/t/android/android-theme.css" type="text/css"/> > <?php } else if($webOS) {?> > <link rel="stylesheet" href="iui/ext-sandbox/t/webos/webos-theme.css" > type="text/css"/> > <?php } else { ?> > <link rel="stylesheet" href="iui/t/default/default-theme.css" > type="text/css"/> > <?php } ?> > > This selectes correctly the theme depending on the device. > BUT! If I try to open the website with android using the default browser, > the selected div is invisible! > If I use chrome as a browser on adroid, it works fine! > If I force the use of the default theme for all devices, the website works > fine also on adroid with default browser. > > If the theme-selection is enabled, when trying to load the page, for half > second the page is shown correctly, after the screen becomes black > > have a look here: http://jsfiddle.net/bNchQ/ (in my page i load also > jquery and flexslider, that I did not include in the fiddle) > > -- You received this message because you are subscribed to the Google Groups "iPhoneWebDev" group. To unsubscribe from this group and stop receiving emails from it, send an email to iphonewebdev+unsubscr...@googlegroups.com. To post to this group, send email to iphonewebdev@googlegroups.com. Visit this group at http://groups.google.com/group/iphonewebdev. For more options, visit https://groups.google.com/d/optout.