; 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
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
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
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
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
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.
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
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
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
---
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
10 matches
Mail list logo