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 to http://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 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.

Reply via email to