cannot load the mobile gallery in mobile devices
Posted: 08 Jul 2014, 07:42
by manchan
Dear All,
I dont know why the gallery cannot be loaded in mobile devices....
my link is:
http://demo1333.wcpdemo.com/gallery.html
P.S. It works fine in desktop browser, but when I use android phone or tablet, the gallery cannot be loaded....
Please help !! Thanks.
Man Chan
Re: cannot load the mobile gallery in mobile devices
Posted: 08 Jul 2014, 08:58
by mjau-mjau
You have created a custom gallery.html index page, which does not redirect mobile users to the Imagevue mobile version. The reason there is a separate mobile version, is because the Imagevue flash version does not work on mobile ...
It works fine if you access the Imagevue link directly:
http://demo1333.wcpdemo.com/imagevue/
Re: cannot load the mobile gallery in mobile devices
Posted: 08 Jul 2014, 09:31
by manchan
Dear Mjau,
Thanks for your reply, I think I am understand what you mean...but how can I solve this problem?
That means, I want people when using mobile device, click on the gallery buttom, then they can go to see the Mobile Gallery..
Do you have any ideas?
Thanks
Man Chan
Re: cannot load the mobile gallery in mobile devices
Posted: 09 Jul 2014, 05:15
by mjau-mjau
The easiest way for you at this point, is probably to add a small javascript redirect in your page gallery.html:
<script>
if( /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent) ) {
window.location = "/imagevue/";
}
</script>
The javascript will redirect mobile users to the native Imagevue gallery where they will see the mobile version.