Good to know......I'll file this one away.
On Wed, Apr 22, 2009 at 7:51 AM, Jon B. <[email protected]> wrote: > > Ahh... Got it. Sometimes there's a hash in the URL and sometimes there > isn't, so I altered that part of the liquid layout to test for it like > so: > > if (!window.location.hash) { > setTimeout(function() > { > window.scrollTo(0, 1); > }, 100); > } > > Thanks for all the help. > > ~Jon > > On Apr 21, 9:47 pm, Sean Gilligan <[email protected]> wrote: > > window.scrollTo is used to hide the Navigation bar and show more web > > content. > > The same function is used in iUI (which is essentially a later version > > of "liquid layout") > > > > -- Sean > > > > Jon B. wrote: > > > Thanks! That did the trick. I was unfamiliar with the scrollto method, > > > but now that I've researched it, it's obvious that that was the cause > > > of my issue. > > > > > Why is that section of code in there in the first place? > > > > > ~Jon > > > > > On Apr 20, 6:38 pm, Sean Gilligan <[email protected]> wrote: > > > > >> Try removing the lines: > > > > >> setTimeout(function() > > >> { > > >> window.scrollTo(0, 1); > > >> }, 100); > > > > >> -- Sean > > > > >> Jon B. wrote: > > > > >>> I've been developing an iPhone-optimized version of an existing PHP/ > > >>> mySQL webapp of mine and have run into an odd problem. I want to be > > >>> able to alter the CSS depending on the device orientation. I've > > >>> included Joe Hewitt's "liquid layout" [ > http://www.joehewitt.com/files/liquid1.html > > >>> ] and it works great. But if I include a hash in the URL of the page, > > >>> the display doesn't jump to the corresponding named anchor. If I > > >>> remove the liquid layout eventListener javascipt stuff, then the > > >>> display jumps as expected. > > > > >>> Any thoughts on whether and how I can get the page display to jump to > > >>> a named anchor on load? 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 -~----------~----~----~----~------~----~------~--~---
