By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,776 Members | 1,380 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,776 IT Pros & Developers. It's quick & easy.

Jumping in a frame not working inside a table

P: n/a
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
Share this Question
Share on Google+
3 Replies


P: n/a
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

P: n/a

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

P: n/a

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.