Cake and eat it too

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

User avatar
aerodromoi
Forum Contributor
Posts: 230
Joined: Sun May 07, 2006 5:21 am

Post by aerodromoi »

Hockey wrote:
Oren wrote:No, but you can do something like this though:

Code: Select all

img {display: none;}
Nice...very clever ;)
Unfortunately, not all handhelds recognise the media="handheld" attribute. :(

I'd suggest checking the HTTP_USER_AGENT first since it doesn't really make sense using up bandwidth for images/content that won't be displayed.

aerodromoi
alex.barylski
DevNet Evangelist
Posts: 6267
Joined: Tue Dec 21, 2004 5:00 pm
Location: Winnipeg

Post by alex.barylski »

aerodromoi wrote:
Hockey wrote:
Oren wrote:No, but you can do something like this though:

Code: Select all

img {display: none;}
Nice...very clever ;)
Unfortunately, not all handhelds recognise the media="handheld" attribute. :(

I'd suggest checking the HTTP_USER_AGENT first since it doesn't really make sense using up bandwidth for images/content that won't be displayed.

aerodromoi
Sounds great in theory, but I don't think HTTP_USER_AGENT is very reliable either...as it can be spoofed or often ignored altogather...

Have you actually tried HTTP_USER_AGENT in all these different browsers?
User avatar
Oren
DevNet Resident
Posts: 1640
Joined: Fri Apr 07, 2006 5:13 am
Location: Israel

Post by Oren »

There is no other way to get rid from images without creating another xhtml file just for PDAs, and we were talikng about a CSS solution - that's what Hockey asked for if I'm right.
About using the HTTP_USER_AGENT super global variable... As Hockey said - it isn't reliable.
User avatar
aerodromoi
Forum Contributor
Posts: 230
Joined: Sun May 07, 2006 5:21 am

Post by aerodromoi »

Hockey wrote: Sounds great in theory, but I don't think HTTP_USER_AGENT is very reliable either...as it can be spoofed or often ignored altogather...

Have you actually tried HTTP_USER_AGENT in all these different browsers?
It's never foolproof - but at least it allows for a broad distinction.

aerodromoi

ps: I'm using a similar system for a flash header/menu on my website due to the MSIE ActiveX patch.
User avatar
aerodromoi
Forum Contributor
Posts: 230
Joined: Sun May 07, 2006 5:21 am

Post by aerodromoi »

Oren wrote:There is no other way to get rid from images without creating another xhtml file just for PDAs, and we were talikng about a CSS solution - that's what Hockey asked for if I'm right.
About using the HTTP_USER_AGENT super global variable... As Hockey said - it isn't reliable.
Looks like a Catch 22

client-side:
+ media="handheld" is not reliable
+ display: none; is tied to the handheld attribute and uses up bandwith

server-side:
+ http_user_agent is not reliable (cloaking)

You'll have to start with something. How are you going to implement a switch for a normal xhtml version and a xhtml version for handhelds?

The only solution I can think of is leaving the choice to the user.

aerodromoi
alvinphp
Forum Contributor
Posts: 380
Joined: Wed Sep 21, 2005 11:47 am

Post by alvinphp »

Flash has its place. A good site for flash would be for a movie where you need it flashy. Another possibiliy might be a graphic design portfolio. For most sites though I stay as far away from flash as possible. Just too much work and bandwidth for what you get.
timvw
DevNet Master
Posts: 4897
Joined: Mon Jan 19, 2004 11:11 pm
Location: Leuven, Belgium

Post by timvw »

It's time to start pushing opendocuments to the people.. Much more options ;) And not propriatary ;)
User avatar
Oren
DevNet Resident
Posts: 1640
Joined: Fri Apr 07, 2006 5:13 am
Location: Israel

Post by Oren »

aerodromoi wrote:You'll have to start with something. How are you going to implement a switch for a normal xhtml version and a xhtml version for handhelds?
I'm not, that's why I suggested using CSS :wink:
User avatar
aerodromoi
Forum Contributor
Posts: 230
Joined: Sun May 07, 2006 5:21 am

Post by aerodromoi »

Oren wrote:
aerodromoi wrote:You'll have to start with something. How are you going to implement a switch for a normal xhtml version and a xhtml version for handhelds?
I'm not, that's why I suggested using CSS :wink:
I won't argue with that ;)
User avatar
Benjamin
Site Administrator
Posts: 6935
Joined: Sun May 19, 2002 10:24 pm

Post by Benjamin »

aerodromoi wrote: Unfortunately, not all handhelds recognise the media="handheld" attribute. :(
Sounds like a "handheld personal issue".
Post Reply