How and from where do I call the javascript function? Thanks. --- "David G. Friedman" <[EMAIL PROTECTED]> wrote:
> If you give an HTML tag the ID="..." attribute, you > can give that ID to the SetScrollTo function. That > will set the focus and automatically move the > tag into the visible portion of the browser window. > > Regards, > David > > -----Original Message----- > From: struts lover [mailto:[EMAIL PROTECTED] > Sent: Wednesday, November 24, 2004 12:29 PM > To: Struts Users Mailing List; Dakota Jack > Subject: Re: smart navigation > > > Thanks Jack, > > I am not very good at javascript. > Can you please again explain how to use it. > > Thanks once again. > > --- Dakota Jack <[EMAIL PROTECTED]> wrote: > > > Also, if you want similar things with other > > browsers, here is a Mozilla deal: > > > > <script language="javascript"> > > function SetScrollTo(strControlID) > > { > > var > > objControl=document.getElementById(strControlID); > > document.body.scrollTop = objControl.offsetTop; > > //maybe object is not focusable, hidden or > disabled. > > try > > { > > objControl.focus(); > > } > > catch(e) {} > > } > > > > //usage: > > SetScrollTo("CONTROL_ID"); //the string is the id > of > > the desired > > control in the html document. > > </script> > > > > Jack > > > > > > On Wed, 24 Nov 2004 05:39:09 -0800 (PST), struts > > lover > > <[EMAIL PROTECTED]> wrote: > > > Hello Everyone, > > > I wanted to know if smart navigation is possible > > in > > > JSP with Struts as it is with ASP.Net. > > > If yes, I would like to know it. Any help would > be > > > appreciated. > > > Thanks everyone. > > > > > > > __________________________________________________ > > > Do You Yahoo!? > > > Tired of spam? Yahoo! Mail has the best spam > > protection around > > > http://mail.yahoo.com > > > > > > > > > --------------------------------------------------------------------- > > > To unsubscribe, e-mail: > > [EMAIL PROTECTED] > > > For additional commands, e-mail: > > [EMAIL PROTECTED] > > > > > > > > > > > > -- > > > > > > "You can't wake a person who is pretending to be > > asleep." > > > > ~Native Proverb~ > > > > "Each man is good in His sight. It is not > necessary > > for eagles to be crows." > > > > ~Hunkesni (Sitting Bull), Hunkpapa Sioux~ > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: > > [EMAIL PROTECTED] > > For additional commands, e-mail: > > [EMAIL PROTECTED] > > > > > > > > > __________________________________ > Do you Yahoo!? > The all-new My Yahoo! - What will yours do? > http://my.yahoo.com > > --------------------------------------------------------------------- > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]