September 10, 2010, 07:00:22 am *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Always search the forum before posting !
 
   Home   Help Search Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: Multi-layer Form Focus?  (Read 1011 times)
DarkPrince2005
Newbie

Offline Offline

Posts: 3


« on: October 29, 2009, 05:58:09 am »

Greetings boys and girls.

I have searched for a sollution to my problem, and found that all everybody says is that it's the getFocus() script or ordering of the elements on the form.

I have tried all the sollutions I could find, but it still didn't solve my problem.

I have a multi-layer form(http://www2.lamz.co.za/index.php?option=com_facileforms&Itemid=18) but it when I get to the 3rd and 4th layers of the form, the focus of the page seems to be in the middel of the page.

Does anyone know have a solution thats not out there?

Thanks
Logged
fvds
Administrator
Living Legend
*****
Offline Offline

Posts: 2322



WWW
« Reply #1 on: October 29, 2009, 12:14:17 pm »

Do you mean you want to see the top of the page in stead of somewhere in the middle?

Use this JavaScript to scroll to top on the page you selected:
Code:
scroll(0,0);
« Last Edit: October 29, 2009, 12:19:08 pm by fvds » Logged

Fred

Please read the forum rules first!
Please do not use PM for generic questions!
Visit me at OverTheWeb
DarkPrince2005
Newbie

Offline Offline

Posts: 3


« Reply #2 on: October 29, 2009, 01:15:52 pm »

Where would I place that javascript?
Logged
fvds
Administrator
Living Legend
*****
Offline Offline

Posts: 2322



WWW
« Reply #3 on: October 29, 2009, 01:49:29 pm »

I would place it in the script section of the button you use to switch pages....
Logged

Fred

Please read the forum rules first!
Please do not use PM for generic questions!
Visit me at OverTheWeb
DarkPrince2005
Newbie

Offline Offline

Posts: 3


« Reply #4 on: October 30, 2009, 11:21:48 am »

Ok it works for the entire window but how would i scroll to the top of a div on the page that has a scrollbar?

Current script looks like this

function ff_nextpage(element, action)
{
    if (ff_currentpage < ff_lastpage)
        ff_switchpage(ff_currentpage+1);
        scroll(0,0);
} // ff_nextpage
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by SMF © 2001-2006 Lewis Media
| Terms of Use | Privacy | Sitemap |