/    Sign up×
Community /Pin to ProfileBookmark

Moving one frame while in another…

Hey JavaScript guru folks…

I’ve got a problem I’ve been banging my head against all day and cannot seem to solve.

I’ve got an Online Acrostics website about to go live and the puzzle grid is in the upper frame, while the words you enter (you can actually enter them from either frame) are on the bottom.

(Before going further into the explanation, let me give you a link:

[url]http://kierpro.com/ecr/ecrostics.php[/url].

Choose any of the puzzles from the left column to see what I’m talking about.)

The bottom frame is usually very long and scrolls off the bottom of the page. What I want to do is have the lower frame get “pulled up” if the corresponding lower box is below “the horizon”.

The other gotcha is that I’m already doing a decent amount with this setup. I have an ‘OnFocus’ which sets the highlight of the square in which the user clicked in green while setting its “partner” on the bottom in red (or vice versa if the person is entering on the bottom).

I tried setting the focus() momentarily and then resetting the focus, but this gets tricky as I am doing this FROM an OnFocus event already (see hello to infinite loops!).

I’d REALLY be indebted to anyone that can look at this and give me some pointers. I admit to being stumped.

Thanks in advance.

— John Kiernan

to post a comment
JavaScript

2 Comments(s)

Copy linkTweet thisAlerts:
@FangDec 31.2010 — What I want to do is have the lower frame get "pulled up" if the corresponding lower box is below "the horizon".[/QUOTE]scrollIntoView
Copy linkTweet thisAlerts:
@kiernan7authorDec 31.2010 — That was it! Thank you sooooo much!

Happy New Year!
×

Success!

Help @kiernan7 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...