Since the back button is located in the top bar ...
You can still use history.back btw.
Even if it really have no user experience senses, replace
function slidePages(fromPage, toPage, backwards)
{
var axis = (backwards ? fromPage : toPage).getAttribute("axis");
clearInterval(checkTimer);
scrollTo(0, 1);
by
function slidePages(fromPage, toPage, backwards)
{
var axis = (backwards ? fromPage : toPage).getAttribute("axis");
clearInterval(checkTimer);
if(backwards) scrollTo(0, 1);
and you're done
R.
Le 10 nov. 10 à 16:24, Victor Hudson a écrit :
You know what that's absolutely right. I was thinking of the older
code that used history.back for backwards sliding. iui.back as it is
now would behave like you've stated.
Vic Hudson
On Nov 10, 2010, at 4:19, "Rémi Grumeau" <[email protected]>
wrote:
?!
A -> B <- A
You realize in this case you will scroll back to page A with the Y
position you are on page B right?
No offense, but this would have no sense.
R.
Le 10 nov. 10 à 09:52, Victor Hudson a écrit :
Wouldn't it be simpler to check the direction of slide and only
apply
scrollTo when going forward but not when moving back?
Vic Hudson
On Nov 9, 2010, at 12:20, "Rémi Grumeau" <[email protected]>
wrote:
Then before scrollTo(0, 1); , you should store where in term of Y
the user was ... on each page.
Don't see how to do that clean without iUI core modifications
(adding Y coords in the page history array)
R.
Le 9 nov. 10 à 17:47, Alon Raskin a écrit :
I also ran into this and did exactly as Remi suggested (though
the scrollTo was added in my code, not the iui).
The only issue I now face is that when they hit the Back button
I want them to return to the spot they were on in the list. For
example, if they scroll half way down they should return to the
same spot. I am still working on this but if anyone has a
suggestion I am all ears.
Alon Raskin
e: [email protected]
-----Original Message-----
From: [email protected] [mailto:[email protected]
] On Behalf Of Rémi Grumeau
Sent: Tuesday, November 09, 2010 6:14 AM
To: [email protected]
Subject: Re: iUI page load not scrolling to top
My mum will love that reply : )
R.
Le 9 nov. 10 à 12:51, billreilly a écrit :
Remi:
Thank you very much... your solution fixed my problem... you're a
genius!...
Bill
On Nov 9, 12:30 pm, "Rémi Grumeau" <[email protected]>
wrote:
Hi folks,
Search for the slidePages function and add a scrollTo in it.
That does the trick for me, can't tell if this cause some
regression... didn't found one btw.
function slidePages(fromPage, toPage, backwards)
{
var axis = (backwards ? fromPage :
toPage).getAttribute("axis");
clearInterval(checkTimer);
scrollTo(0, 1);
sendEvent("beforetransition", fromPage, {out:true});
sendEvent("beforetransition", toPage, {out:false});
if (canDoSlideAnim() && axis != 'y')
{
...
R.
Le 9 nov. 10 à 00:29, billreilly a écrit :
Johnny:
I'm having the same problem... go tohttp://www.passageweather.com/
mobi
and scroll down the initial page and click on one of the
lower list
items and you'll see what i mean... the next "page" shows the
list
in
the middle, no title bar is seen unless you scroll back to the
top...
very annoying...
I tried the Trek version of the iui.js file as you did, and it
solved
this problem but caused other problems, so i've gone back to
the
real
iui.js file...
Bill
On Oct 22, 11:38 pm, johnnydanger <[email protected]>
wrote:
For some reason when I click on a link in a longer list (that
require
scrolling down) the new page is loaded scrolled down to the
same
vertical location. This is very irritating as it requires
scrolling
back to thetopof the new page manually. I've looked at
other sites
running iUI ( Trek Bikes for instance) and their sites aren't
exhibiting the same behavior. I can't figure it out...
anybody
have
an idea as to what is going on? If I do target="_self" than
of
course
it loads the new page at and is scrolled to thetop, but if I
don't
use a target="" declaration the new AJAX loaded page snippet
does
notscrollback to thetop.
Thanks.
--
You received this message because you are subscribed to the
Google
Groups "iPhoneWebDev" group.
To post to this group, send email to [email protected]
.
To unsubscribe from this group, send email to
[email protected]
.
For more options, visit this group
athttp://groups.google.com/group/iphonewebdev?hl=en
.
--
You received this message because you are subscribed to the
Google
Groups "iPhoneWebDev" group.
To post to this group, send email to [email protected]
.
To unsubscribe from this group, send email to
[email protected]
.
For more options, visit this group at
http://groups.google.com/group/iphonewebdev?hl=en
.
--
You received this message because you are subscribed to the
Google Groups "iPhoneWebDev" group.
To post to this group, send email to
[email protected].
To unsubscribe from this group, send email to [email protected]
.
For more options, visit this group at http://groups.google.com/group/iphonewebdev?hl=en
.
--
You received this message because you are subscribed to the
Google Groups "iPhoneWebDev" group.
To post to this group, send email to
[email protected].
To unsubscribe from this group, send email to [email protected]
.
For more options, visit this group at http://groups.google.com/group/iphonewebdev?hl=en
.
--
You received this message because you are subscribed to the
Google Groups "iPhoneWebDev" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to [email protected]
.
For more options, visit this group at http://groups.google.com/group/iphonewebdev?hl=en
.
--
You received this message because you are subscribed to the Google
Groups "iPhoneWebDev" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to [email protected]
.
For more options, visit this group at http://groups.google.com/group/iphonewebdev?hl=en
.
--
You received this message because you are subscribed to the Google
Groups "iPhoneWebDev" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to [email protected]
.
For more options, visit this group at http://groups.google.com/group/iphonewebdev?hl=en
.
--
You received this message because you are subscribed to the Google
Groups "iPhoneWebDev" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to [email protected]
.
For more options, visit this group at http://groups.google.com/group/iphonewebdev?hl=en
.
--
You received this message because you are subscribed to the Google Groups
"iPhoneWebDev" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/iphonewebdev?hl=en.