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.
