PDA

View Full Version : missing <div> on newspage


YLA G
June 21st, 2006, 18:11
hi..

i surf alot with my smartphone.. now if you use google as your base you can surf alot faster because it filters all the crap (banners, headers etc) from every pages..

BUT the pages has to be a good html.. now the left page (the whole collumn of links) don't has a <div> all links </div> before it.. so it stays on the page.
That means that everytime i want to read a newsitem i have to scroll for a long time because of that.

can you do that small adjustment in the source?

Curry
June 21st, 2006, 18:16
I'm very sure there are no unclosed elements in my templates, since both newsitems (http://validator.w3.org/check?verbose=1&uri=http%3A%2F%2Fwww.xboxic.com%2Fnews%2F1129) and frontpage (http://validator.w3.org/check?verbose=1&uri=http%3A%2F%2Fwww.xboxic.com%2F) validate 100% as XHTML :) Hence every browser should render it correctly.

Unfortunately, I am aware of problems with small screen browsers (got a Windows Mobile 2k3 thingy myself). I fixed this the official way: by introducing a unique stylesheet for "handheld" and "print" media. Luckily, the print view is picked up correctly, try print previewing pages from the news section, but as usual with everything that's got "Internet Explorer" in its name Pocket IE refuses to use the correct stylesheet. Pocket Opera should do it fine though.

May I ask which OS and browser are on your phone?

YLA G
June 21st, 2006, 18:21
Qtek 8310 (same as imate sp5)

windows mobile 5

and its not the browser.. its google that is filtering the pages.

as i can't give you the link or show a screenshot you just got to trust me :)

Curry
June 21st, 2006, 18:23
Then Google is screwing things up :) You can see for yourself the frontpage is completely valid XHTML, and as such is absolutely certainly closing all its tags correctly. W3C Validator doesn't lie, nor does View Source :P

YLA G
June 21st, 2006, 18:25
its not because its wrong.. its just a feature that is missing

Curry
June 21st, 2006, 18:28
Can you give me the link to Google's interpretation of the page? I'll have a look then.

How the page is built is actually absolutely intended to be used on non-screen browsers as well. On the top of every page there is a "skip to content" link which is hidden by CSS, as such allowing non-stylesheet users to skip the trackers (which are in the top of the page indeed) by a single click. This is identical to how other well-built standards compliant sites do it.

I have no real options since it's really in this case a matter of browsers malfunctioning and apparently Google as well. But I'll gladly have a look if I have more precise info :)

YLA G
June 21st, 2006, 18:30
try it on your phone curry:

http://www.google.com/pda

zoek xboxic and click.


(my phone has a wifi so its free, i am using http://www.google.com/ig as startpage with xboxic rss)

YLA G
June 21st, 2006, 18:30
yep skip to content.. i see that link.. but its doing nothing (just refresh)

YLA G
June 21st, 2006, 18:32
try it on your phone curry:

http://www.google.com/pda

zoek xboxic and click.


(my phone has a wifi so its free, i am using http://www.google.com/ig as startpage with xboxic rss)

try the same with major nelson or 360fanboy.. no problems there :X

Curry
June 21st, 2006, 18:43
yep skip to content.. i see that link.. but its doing nothing (just refresh)Even weirder, since that is a HTML 1.0 element linking to #content with the content part itself containing an anchor entitled "content". It should never ever cause a reload of the page, that's a major browser error.

YLA G
June 21st, 2006, 18:57
don't care :p i want the 80 links away :D

Curry
June 21st, 2006, 19:38
try it on your phone curry:

http://www.google.com/pda

zoek xboxic and click.
On my Mobile 2k3 phone Google doesn't do anything special if I try this? I just opens "http://www.xboxic.com" as it should. And screws it up as it shouldn't but that's Pocket IE's fault :(

Messiah
June 21st, 2006, 21:07
I have the same problem, that's why i'm using a RSS reader nog. EggRSS or something. It shows the RSS from from xboxic on my Today page.

Rival24
June 21st, 2006, 21:23
All in favor of pda.xboxic.com ? ;)

Curry
June 21st, 2006, 22:51
Hmmm think WP doesn't really support that regrettably, or it could be a viable option :) I could do some nasty useragentsniffing ofcourse but I'd prefer to keep it all as "pure" as possible.

YLA G
June 22nd, 2006, 10:54
All in favor of pda.xboxic.com ? ;)

oh yeah!!

YLA G
June 22nd, 2006, 10:58
look.. this is the page what google filters out for pda/smartphones:

http://www.google.com/gwt/n?client=ig&u=http://www.xboxic.com/news/1131

as you can see you have to scroll alot (even with a pc) think what it is on a phone :)

normaly the links would be under the "about submit contact" box with a "+" before it

another example: major nelson where it works:
http://www.google.com/gwt/n?u=http%3A%2F%2Fwww.majornelson.com%2Farchive%2F2 006%2F06%2F20%2FGRAW-Chapter-2-Preview-Trailer.aspx&client=ig

as you can see all the links from a normal pc page are under the "+"

YLA G
June 22nd, 2006, 11:02
Hmmm think WP doesn't really support that regrettably

ok.. i tested it with other wordpres pages.. and the filter works there :)

http://www.google.com/gwt/n?client=ig&u=http://www.brajeshwar.com/archives/2006/05/brajeshwar-v70-wordpress-theme/

so its something with the theme :)

Curry
June 22nd, 2006, 11:31
It's most certainly something with the theme :P I checked it out yesterday, but it didn't complain about missing divs or anything. It's just that Google screws up the "Skip to content" link by transforming it into a page link :)

Can you have a look at http://www.xboxic.com/useragent.php with your phone and paste the result here? I'll probably just build some frigging sniffing for Pocket IE to solve the problems :)

YLA G
June 22nd, 2006, 12:05
that skip content link is anyway just a work arround..

i have free internet because of wifi build in.. but the guys with gprs are paying per byte = all the links are many many bytes

Curry
June 22nd, 2006, 12:21
that skip content link is anyway just a work arround..
Actually not really, it's the standardized way of presenting pages like this.
i have free internet because of wifi build in.. but the guys with gprs are paying per byte = all the links are many many bytes
And how are you going to navigate the site without links? ;) Everything directly from the frontpage?

YLA G
June 22nd, 2006, 12:39
no.. if you want a link.. you need to press the "+" before the box and you have the links..

anyway, i am surfing with the rss.. so if a new comes up.. i press the link and want to read the news ;)

i check that link at the evening.. i am now at work ;)

YLA G
June 22nd, 2006, 19:30
what are you doing? :)

http://pda.xboxic.com/

YLA G
June 22nd, 2006, 19:32
Can you have a look at http://www.xboxic.com/useragent.php with your phone and paste the result here? I'll probably just build some frigging sniffing for Pocket IE to solve the problems :)

http://www.google.com/gwt/n?client=ig&u=http://www.xboxic.com/useragent.php
"User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; Google Wireless Transcoder;)"

on a PC.. gone try it in a hour on my phone (but i can't copy paste :s)

Curry
June 22nd, 2006, 23:33
what are you doing? :)

http://pda.xboxic.com/
That's standard page for undefined subdomains ;) As for the user-agent, I really need the one from PocketIE itself :P

cybermans
June 23rd, 2006, 08:52
curry I have that sucker on work. I will send it to you later today.

YLA G
June 23rd, 2006, 10:50
Can you have a look at http://www.xboxic.com/useragent.php with your phone and paste the result here? I'll probably just build some frigging sniffing for Pocket IE to solve the problems :)


user agent: Mozilla/4.0 (compatible, MSIE 4.01, windows CE, smartphone, 176x220)


here you go :)

Curry
June 23rd, 2006, 11:35
thnx :)

cybermans
June 23rd, 2006, 15:04
Windows Mobile 2003 Pocket PC: Mozilla/4.0 (compatible; MSIE 4.01; Windows CE; PPC; 240x320)
Windows Mobile 2005 Pocket PC: Mozilla/4.0 (compatible; MSIE 4.01; Windows CE; PPC; 240x320)

no that is not a typo or something they have exactly the same, but the specs differ

YLA G
June 23rd, 2006, 15:25
so its the same browser ;)

i think windows mobile and the windows pocket pc are using the same browser anyway.. just the resolution are different

cybermans
June 23rd, 2006, 16:10
hell no, there are a couple of differences like
width="100%" is fucked in 2003
2003 has less ajax support
some devices running 2005 can switch from landscape to portrait and visa versa

YLA G
June 23rd, 2006, 17:01
oh.. have a old iPaq 2210 .. did not know that..

anyway a smartphone is much cooler ;)

Curry
June 24th, 2006, 22:36
Try again you bitchin' PocketIE owners :)

On my 2k3 machine it's still buggy, but it can't even process this correctly:
<p><a href="#content" title="Skip to site content">Skip to content</a></p>
Sorry, if even plain simple shit like that gets screwed, there's not much I can do.

YLA G
June 25th, 2006, 21:52
damn my battery is down.. gone test it tonight

YLA G
June 26th, 2006, 15:45
it still don't do the arch..

again.. this don't delete the 1000 links menu :p
there is something wrong with the theme.

can't you do a copy but with theme without the links and call it "mobile.xboxic.com"? that would be great

Curry
June 26th, 2006, 16:24
it still don't do the arch..
I was hoping the 2k5 version would have the working "Skip to content" link :(
again.. this don't delete the 1000 links menu :p
I don't intend to :) The links are supposed to be there for navigation. You should just be able to skip them.
can't you do a copy but with theme without the links and call it "mobile.xboxic.com"? that would be great
Not on our current server setup for technical reasons. Regrettably.

YLA G
June 26th, 2006, 17:57
damned.. then fix the theme :p

if i have some time i will look in the html myself

Curry
June 26th, 2006, 18:15
The whole problem is that I built this template completely from ground up and there simply nothing to fix in the theme :) There is no bug in the theme, it functions perfectly. I've spent a lot of hours on having perfect XHTML and CSS, and even more hours getting it to show correctly in IE6 despite that being a buggy piece of bullshit crap product. PocketIE is nothing more than another incredibly bad product refusing to operate according to any W3C standard.

I will gladly modify the theme slightly if that means it will still be perfect XHTML and CSS and work perfectly in FF, Safari, Opera and IE6, but seeing the example of what PocketIE fails to render I gave a few screens above I don't have much hope of that.

YLA G
June 26th, 2006, 18:19
seems i have to prove that the theme is buggy and not pocketIE..

btw gone check it on my psp browser to.. i am sure its the same

Curry
June 26th, 2006, 18:20
It's too easy for me to prove there is no bug in the template: click (http://validator.w3.org/check?verbose=1&uri=http%3A%2F%2Fwww.xboxic.com%2F) :)

It's wellformed, it validates, it works perfectly on all desktop browsers, even if you disable all CSS. The Skip to Content link works fine in all browsers. Except PocketIE. Considering that means 99.9% of the browsers work correctly and 0.01% of the browsers don't, it's quite probable that the browser is at fault.

YLA G
June 26th, 2006, 18:26
yeah right a online verifaction proves that it is right.. :p

Curry
June 27th, 2006, 03:32
yeah right a online verifaction proves that it is right.. :p It's the W3C validator. That is the World Wide Web Consortium. They make these standards. They make sure their validator doesn't lie :)

Messiah
June 30th, 2006, 12:04
Yla g try switching to the old theme from xboxic. I'm using that one also and it browses much better on the telephone.

User-Agent: Mozilla/4.0 (compatible; MSIE 4.01; Windows CE; PPC; MDA Vario/1.2 Profile/MIDP-2.0 Configuration/CLDC-1.1)

YLA G
June 30th, 2006, 12:16
oh yeah messiah solved it!!!

lllooook links are gonnneee

http://www.google.com/gwt/n?u=http%3A%2F%2Fwww.xboxic.com%2F%3Ftheme%3Dxboxi c&client=ig

Curry
June 30th, 2006, 12:42
That's also an option yeah 8)7 Or just don't use that crap Google redirecter ;)

YLA G
June 30th, 2006, 12:50
That's also an option yeah 8)7 Or just don't use that crap Google redirecter ;)

or you can fix the theme :p :p :p (gone get you mad.. sorry.. t is maar voor te lachen hoor)

i hate long waiting loads and i hate to scroll the whole way down.. but its fixed.. whoehoe :)