Forum Moderators: open

Message Too Old, No Replies

Javascript dom equivalent on PDA?

Palm OS/Windows CE don't support scrollto

         

albo

4:18 pm on Jun 3, 2005 (gmt 0)

10+ Year Member



What is a good equivalent to window.scrollTo(0,0); in a javascript for a PDA? I have a longish page I'm trying to show (text-only, no PIX) on a PDA, and would like to have top-of-page links here and there. In regular DOM I see that scrollto works ok but I find that on PDA it doesn't seem to work. Does anyone know something that would yield the same result on a PDA? (Maybe I have placed this question in the wrong forum and should have gone to the PDA forum?)

StupidScript

8:25 pm on Jun 3, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



How about good ol' fashioned HTML?

<a href="#link1">Link 1</a> ¦ <a href="#link2">Link 2</a>

<a name="link1"></a><a href="#top">Back to Top</a><br />

LINK 1: Stuff stuff Stuff stuff Stuff stuff ...

<a name="link2"></a><a href="#top">Back to Top</a><br />

LINK 2: Stuff stuff Stuff stuff Stuff stuff ...

It's up to the browser to support the code, of course, whether on a PDA or otherwise.

albo

5:13 pm on Jun 4, 2005 (gmt 0)

10+ Year Member



Yep, thanks for the reminder. I was hoping for something more "dynamic" (DHTML), since I have the situation on several pages and a shared script places the TOP link where appropriate. But then efficiency should rule, and there, you're most certainly right!