RE: [OT] Re: Set focus on a table on page load.

2006-03-17 Thread Frank W. Zammetti
; nothing. > Is there anything else that needs to be done. > > Thanks & Regards, > MS > > -Original Message- > From: Frank W. Zammetti [mailto:[EMAIL PROTECTED] > Sent: Thursday, March 16, 2006 9:29 PM > To: Struts Users Mailing List > Cc: Struts Users Maili

Re: [OT] Re: Set focus on a table on page load.

2006-03-17 Thread Mark Lowe
16, 2006 9:29 PM > To: Struts Users Mailing List > Cc: Struts Users Mailing List > Subject: Re: [OT] Re: Set focus on a table on page load. > > > > On Thu, March 16, 2006 10:39 am, Dave Newton said: > > Anjishnu Bandyopadhyay wrote: > >> Actually, it is a table where

RE: [OT] Re: Set focus on a table on page load.

2006-03-17 Thread Meenakshi Singh
t Cc: Struts Users Mailing List Subject: Re: [OT] Re: Set focus on a table on page load. On Thu, March 16, 2006 10:39 am, Dave Newton said: > Anjishnu Bandyopadhyay wrote: >> Actually, it is a table where rows can be added/deleted. >> So, after, addition/deletion of a row, (on pag

Re: [OT] Re: Set focus on a table on page load.

2006-03-16 Thread Mark Lowe
will this sort of thing do? window.onload = function() { if(rowAdded) { var table = document.getElementById("mytable"); tableFocus(table); } } function tableFocus(table) { window.scroll(0,table.offsetTop); table.style.borderColor = "#f00"; table.style.bor

Re: [OT] Re: Set focus on a table on page load.

2006-03-16 Thread Frank W. Zammetti
Should work on IE too... OP, what was the underying goal? Do you just want to make sure the added row is on the screen? If so, I think Mark is on the right track. -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com AIM: fzammetti Yahoo: fzammett

Re: [OT] Re: Set focus on a table on page load.

2006-03-16 Thread Mark Lowe
If i've understood the problem, rather than trying to focus on the table you could create the illusion.. You'd need to get a where the table is on the page and perhaps apply some styles to the table. If you cant get the position of the table then an anchor will do.. Just scroll the window to that.

Re: [OT] Re: Set focus on a table on page load.

2006-03-16 Thread Dave Newton
Frank W. Zammetti wrote: > On Thu, March 16, 2006 10:39 am, Dave Newton said: > >> I'm not convinced you can set focus on a non-input item; that really >> wouldn't make any sense. >> > I think you actually can, at least in IE (I was a bit surprised by this). > Ooo, that's spooky... I g

Re: [OT] Re: Set focus on a table on page load.

2006-03-16 Thread Frank W. Zammetti
On Thu, March 16, 2006 10:39 am, Dave Newton said: > Anjishnu Bandyopadhyay wrote: >> Actually, it is a table where rows can be added/deleted. >> So, after, addition/deletion of a row, (on page load) focus is to be set >> to the table. >> > > I'm not convinced you can set focus on a non-input item

Re: [OT] Re: Set focus on a table on page load.

2006-03-16 Thread Emmanouil Batsis
Dave Newton wrote: I'm not convinced you can set focus on a non-input item; that really wouldn't make any sense. +1 I'd try using a fragment identifier (pointing to from the link that leads to the page or via JS on load (the first way is better). hth, Manos ---

[OT] Re: Set focus on a table on page load.

2006-03-16 Thread Dave Newton
Anjishnu Bandyopadhyay wrote: > Actually, it is a table where rows can be added/deleted. > So, after, addition/deletion of a row, (on page load) focus is to be set > to the table. > I'm not convinced you can set focus on a non-input item; that really wouldn't make any sense. I believe you'll n