iphone vs blackberry

General project discussion. NOT for help questions.
Post Reply
buzzby
Forum Members
Forum Members
Posts: 24
Joined: Fri Aug 12, 2005 9:03 am

iphone vs blackberry

Post by buzzby »

i have a site: http://www.energyskillswales.co.uk. its fine on a desktop browser and my iphone but its shyte on a blackberry. my css on the whole doesnt work. H1 tags are not coloured, links are underlined but not linking anywhere. hidden divs are showing on the site shifting content out of place.

i have a smarty tag here

Code: Select all

{if false !== $smarty.server.HTTP_USER_AGENT|lower|strpos:'iphone'}
    {stylesheet name='iPhone' media='screen'}
{elseif false !== $smarty.server.HTTP_USER_AGENT|lower|strpos:'blackberry'}
    {stylesheet name='blackberry' media='handheld'}
{else}
    {stylesheet}
{/if}
this works fine for the iphone.

any ideas as to why the blackberry wont work at all?
Last edited by calguy1000 on Wed Mar 31, 2010 11:12 am, edited 1 time in total.
milehigh

Re: iphone vs blackberry

Post by milehigh »

Blackberry's default settings are for CSS to be disabled (javascript too so if you're using hidden divs I'm guessing your using javascript to manipulate those)

Browser Configuration - Support Stylesheets
Browser Configuration - Support Javascript
Browser options - General Properties - Enable Javascript Location Support

(Settings above are for Curve..Tour is similar)
buzzby
Forum Members
Forum Members
Posts: 24
Joined: Fri Aug 12, 2005 9:03 am

Re: iphone vs blackberry

Post by buzzby »

hi, i am not using any javascript at all. only smarty to choose which stylesheet is used for a given device. on this blackberry i have looked at other sites, namely google, and it comes up ok. the cursor changes to a hand when over a link. there is different coloured text and the google image logo displays. yet on my site my H1s are not coloured, the links dont work even tho they display blue.

i am a little lost here as to what do do.
buzzby
Forum Members
Forum Members
Posts: 24
Joined: Fri Aug 12, 2005 9:03 am

Re: iphone vs blackberry

Post by buzzby »

milehigh wrote: Browser Configuration - Support Stylesheets
Browser Configuration - Support Javascript
Browser options - General Properties - Enable Javascript Location Support
hi there. i am currently using these setting for the blackberry i am checking the site on. still using handheld. i have also test with the facility but still regardless of my trials i am still getting the same result. my iphone is cool yet the blackberry still refuses to play ball. links are still blue but unclickable. divs that i have hidden remain visible.

what else can i check?
buzzby
Forum Members
Forum Members
Posts: 24
Joined: Fri Aug 12, 2005 9:03 am

Re: iphone vs blackberry

Post by buzzby »

hi, i have tried setting the stylesheet to screen. the links work thankfully but the display still is not rite. i even see the favicon i set which is refreshing. no 'visibility: hidden' or 'display: none' seems to work. elements that are in the template seem to show on the blackberry.

on my iphone the display is perfect. i have set the font base to 30px and used em to scale up or down. i set it to 30 so as to not use the zoom. the links display right, the display:none works as it should. i have no problems with the iphone. the blackberry on the other hand does not work. i have used Openwave Gateway, MS Pocket IE, Microsoft IE and so far i get the same result. while the page is loading i see it is loading and processing script. sadly this does not make any difference to the outcome.

so far the difference between handheld and screen is that the links work on screen, the different colour assignments comes thru. on both the elements that are hidden in the stylesheet does not come thru at all.

the stylesheet name is iPhone because thats how i named it. i have also named the stylesheet for blackberry 'blackberry' with no uppercase lettering at all.

the blackberry i am now testing is newer than the prev one. (its a wide screen one) apart from that i am still looking for a solution to get iphone and blackberry working in unison
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm
Location: Fernie British Columbia, Canada

Re: iphone vs blackberry

Post by calguy1000 »

This is no longer a CMSMS issue, there are better places where you can ask questions specifically about certain mobile devices and their web behaviours than here.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Post Reply

Return to “General Discussion”