Click to See Complete Forum and Search --> : html, frames, index


frap
09-23-2003, 03:10 AM
my html page has several frames.
two of them should work like the index in chm files.
i mean, when you type things in a field created by an INPUT tag in the first frame, a jump occurs in another frame to an anchor whose text is the closest match of what you type.
i've worked out the matching algorithm. what i need is a way to make the browser jump to the correct anchor in the second frame.
all of the anchors have NAMEs, but i think i can also make it work if they are referenced by number.
i'd very much appreciate any help.

Webskater
09-23-2003, 05:12 AM
I think this might be IE only - but once you find the tag you want to move to use:

targetlink.scrollIntoView(true);

This will move the link to top of the window or frame it is in.

frap
09-23-2003, 06:10 AM
thanks.
i'll try that once i've figured out how.
this needs to work in konqueror or, still better, in some useless linux browser (as a dedicated task) that understands frames and javascript.
are any other options possible?