[Proto-Scripty] ScrollTo function from menu item to iframe at the bottom of the same page

2011-11-18 Thread Young Skywalker
Hi, I have a menu item at the top of my homepage that opens a specfic target link in an iframe at the bottom of the same page. I'm now trying to get the page to scroll down to the iframe when the menu item is selected. With the code below I can get the menu item to open the correct target link,

[Proto-Scripty] Re: ScrollTo function from menu item to iframe at the bottom of the same page

2011-11-18 Thread greg
Make sure Scriptaculous is loaded, then it's simply Effect.ScrollTo(element); But, if the iFrame isn't as tall as the page height, you may not get the top of the iFrame to the top of the page. It can't scroll beyond the end of the page content. -- You received this message because you are

Re: [Proto-Scripty] Re: ScrollTo function from menu item to iframe at the bottom of the same page

2011-11-18 Thread Walter Lee Davis
On Nov 18, 2011, at 3:23 PM, greg wrote: But, if the iFrame isn't as tall as the page height, you may not get the top of the iFrame to the top of the page. It can't scroll beyond the end of the page content. You could then try this, if you wanted to force the issue: ...inside your click

[Proto-Scripty] mobile solution?

2011-11-18 Thread Jimmy Brake
Hi, Does anyone know of a lib that can extend Prototype so it's like sencha touch, jquery.mobile or has anyone been using scripty in production? I presently only need to support ipad's. However over time I plan on supporting all smart phones and tablets. Thanks, Jimmy -- You received this

Re: [Proto-Scripty] Re: mobile solution?

2011-11-18 Thread Jimmy Brake
That's to bad .. hopefully someone will come along soon and tell us different. ... On Fri, Nov 18, 2011 at 6:44 PM, joe t. thooke...@gmail.com wrote: Er, Android 2.3.7 ... D'oh! On Nov 18, 9:43 pm, joe t. thooke...@gmail.com wrote: i may have the wrong impression, but my tinkering on