Well I have the script already cause we do mobile web
develop here. So I
already know how to determine the screen size of the device
that is view the
web site (and yes it would depend on whether the mobile
device supports
javascript but so far we have had a high success rate).
What I need to know is how in Blojsom do I switch the theme
that is
displayed.
Normally I use this script to maintain a single URL for
access. So if you
were to enter www.google.com on your desktop you would get
one version of
the site and if you entered the same URL from your mobile
device it would
redirect you to a mobile version.
What I am trying to avoid is having two blogs setup. I want
to display the
same blog from the same database on both sites. Just
formatted differently.
Michael F. Sole
Gold Group
Dream | Change | Profit
www.gold-group.com
www.gold-mobile.com
732.587.2101 x 261 - Office
516.592.3683 - Mobile
msole gold-group.com
-----Original Message-----
From: blojsom-users-bounces lists.sourceforge.net
[mailto:blojsom-users-bounces lists.sourceforge.net] On
Behalf Of James H.
Linder
Sent: Tuesday, March 20, 2007 10:23 AM
To: blojsom-users lists.sourceforge.net
Subject: Re: [Blojsom-users] Conditionally display themes
On Tuesday 20 March 2007 10:04, Michael Sole wrote:
> Is there a way to conditionally display a theme using
JavaScript?
>
>
> So for instance I have a script that determines the
screen size and we
have
> special software for displaying web pages on a mobile
phone and I would
> like to use this script to display a theme that is
geared for mobile and
> uses the special code for our software.
>
This sounds like it may be an appropriate place to use a
flavor for display
on
mobile devices distinct from the HTML flavor. But if the
browser on the
phone supports CSS and JavaScript you can check for the
browser type/OS and
simply switch out the CSS files used so a mobile version is
used instead of
the regular version (this assumes the actual html structure
is also
appropriate for the mobile sreen size and form factor).
Is this kind of what you are looking for?
Jamey
------------------------------------------------------------
-------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the
chance to share your
opinions on IT & business topics through brief
surveys-and earn cash
http://www.techsay.com/default.
php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Blojsom-users mailing list
Blojsom-users lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/blojsom-u
sers
--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.446 / Virus Database: 268.18.15/728 - Release
Date: 3/20/2007
8:07 AM
--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.446 / Virus Database: 268.18.15/728 - Release
Date: 3/20/2007
8:07 AM
------------------------------------------------------------
-------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the
chance to share your
opinions on IT & business topics through brief
surveys-and earn cash
http://www.techsay.com/default.
php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Blojsom-users mailing list
Blojsom-users lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/blojsom-u
sers
|