469,327 Members | 1,226 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,327 developers. It's quick & easy.

Jumping in a frame not working inside a table

Hi,

I have a script that allows me to highlight a row of text.

This text is in a table.

The table is long and scrolls down the page below the visiable canvas.

What I need is a method to jump to the highlighted row.

I am able to jump to my anchor as long as the anchor isn't located
within the table (ie I can jump to the bottom of the table if I put the
anchor just below the table). However as soon as I place it within the
table...no luck.

Here is the code I am using to jump;
eval ("document.location='#row" + n + "'");

Can someone explain how I can reference the table in my jump method?

Or is there something else I can do?

Thanks

Jul 23 '05 #1
3 1320
co*************@gmail.com wrote:
Hi,

I have a script that allows me to highlight a row of text.

This text is in a table.

The table is long and scrolls down the page below the visiable canvas.

What I need is a method to jump to the highlighted row.

I am able to jump to my anchor as long as the anchor isn't located
within the table (ie I can jump to the bottom of the table if I put the
anchor just below the table). However as soon as I place it within the
table...no luck.

Here is the code I am using to jump;
eval ("document.location='#row" + n + "'");
No need for eval:

document.location = "#row" + n;

http://jibbering.com/faq/#FAQ4_40
Can someone explain how I can reference the table in my jump method?
That depends on how your page is coded.
Or is there something else I can do?


look into scrollTo and scrollIntoView

--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Jul 23 '05 #2

No need for eval:

document.location = "#row" + n;

It doesn't seem to work unless I use eval. I tried taking it out just
now and nothing happens.

Jul 23 '05 #3

look into scrollTo and scrollIntoView


Thanks! I was able to get scrollIntoView to work.

Jul 23 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Bob T Bunny | last post: by
17 posts views Thread by compassSoftware | last post: by
reply views Thread by Felipe Garcia | last post: by
1 post views Thread by success_ny | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by Purva khokhar | last post: by
reply views Thread by haryvincent176 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.