Html Anchor Support On The Palm Pre

with the release of webOS 1.4 palm has (FINALLY) added html anchor support to the webOS browser. anchors are now working correctly on my pre with the main ip.board skin however they are not working correctly with this mobile skin. i searched through the html and it looks like the anchor tag itself is identical in both.

from a normal browser anchors in the mobile skin are working fine. i'm going nuts here... any thoughts or suggestions?

it drives me nuts to have to scroll to the next post i've yet to read on each page load.

thanks in advance.

#534914

Kinda confused as to what you're referring to, can you explain it anymore?

#534919

sorry

so ip board makes heavy use of html anchors to take you to specific posts on a page. so when you want to go to the first unread post in a thread, you click a link, invision does some work behind the scenes, then takes you to the page in the thread on which that post exists followed by an anchor which is the exact post on that page.

for example, the link to your post in this thread is:

www.aqua-soft.org/forum/topic/53670-html-anchor-support-on-the-palm-pre/page__pid__534919__st__0&#entry534919

so "page__pid__534919__st__0" is the page and "#entry534919" is the post. invision uses a named anchors for each post on the page. when the browser loads a page, it sees an anchor has been specified in the url and then it scrolls to that anchor.

well, up until the latest version of the browser in palm's webOS it has not even supported anchors. this meant that when i clicked on a thread in either the mobile or ip.board skin with unread posts, it would me to the correct page with unread posts however it always started at the top of the page. it never autoscrolls to the correct post on page load via the named anchor.

so with webOS 1.4 palm has finally added support for anchors and they work on the main ip.board skin. when i click the unread topic marker it takes me to the correct page and even autoscrolls to the anchor. however in the mobile skin it still does not. it loads the correct page but always at the top of the page.

i'm wondering if there are any customizations you have made either with javascript of css that you can think of that could be causing this?

hope that makes more sense.

#534923

Hmm, this doesn't happen on the iphone. Can you try clicking the date of a post, and see what happens?

screenshot20100228at1228pmpngefb8f.png

#534924

same. It loads the current page starting from the first post rather than the post I click on.

#534925

K can you try one more thing, disable javascript, and try again.

#534926

it works correctly when I disable javascript

#534927

Open up GlobalTemplate

Find

	<script type="text/javascript" src="../../unavailable.html"></script>

Replace with

	<if test="strpos( strtolower( $this->member->user_agent ), 'webos' ) != true"><script type="text/javascript" src="../../unavailable.html"></script></if>

That should do it.

#534930

Open up GlobalTemplate

Find

	<script type="text/javascript" src="../../unavailable.html"></script>

Replace with

	<if test="strpos( strtolower( $this->member->user_agent ), 'webos' ) != true"><script type="text/javascript" src="../../unavailable.html"></script></if>

That should do it.

that worked! thanks so much.

great skin man.

#534932