Page 2 of 2
Posted: Sun May 07, 2006 12:53 pm
by aerodromoi
Hockey wrote:Oren wrote:No, but you can do something like this though:
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
Posted: Sun May 07, 2006 1:36 pm
by alex.barylski
aerodromoi wrote:Hockey wrote:Oren wrote:No, but you can do something like this though:
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?
Posted: Sun May 07, 2006 1:47 pm
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.
Posted: Sun May 07, 2006 1:51 pm
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.
Posted: Sun May 07, 2006 1:59 pm
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
Posted: Sun May 07, 2006 2:21 pm
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.
Posted: Sun May 07, 2006 2:25 pm
by timvw
It's time to start pushing opendocuments to the people.. Much more options

And not propriatary

Posted: Sun May 07, 2006 2:29 pm
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

Posted: Sun May 07, 2006 3:12 pm
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

I won't argue with that

Posted: Sun May 07, 2006 6:43 pm
by Benjamin
aerodromoi wrote:
Unfortunately, not all handhelds recognise the media="handheld" attribute.
Sounds like a "handheld personal issue".