CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> Archive -> CodeCharge.Discussion

 Focus on a page

Print topic Send  topic

Author Message
David
Posted: 03/15/2002, 4:17 AM

Im sure theres a simple way to do this but I dont know what it is!! I just
want to be able to set where the cursor is when a page loads, for example
the username box on the login page, Im using ASP w/ Temps, cheers

David

Alexey Alexapolsky
Posted: 03/15/2002, 4:43 AM

Put this into Header&Footer section :

<script language="JavaScript">

document.FormName.elementName.focus();

</script>

--
Alex
CodeCharge Developer


"David" <dava133@ntlworld.com> wrote in message
news:a6soop$bv3$1@news.codecharge.com...
> Im sure theres a simple way to do this but I dont know what it is!! I just
> want to be able to set where the cursor is when a page loads, for example
> the username box on the login page, Im using ASP w/ Temps, cheers
>
> David
>
>

David
Posted: 03/15/2002, 5:27 AM

Do u mean in the <head> bit or in the header bit? i gather this is page
properties. also in the login page what is the object name for the login
field? just "login"? cheers

David

"Alexey Alexapolsky" <alexa@codecharge.com> wrote in message
news:a6sq9f$ffb$2@news.codecharge.com...
> Put this into Header&Footer section :
>
> <script language="JavaScript">
>
> document.FormName.elementName.focus();
>
> </script>
>
> --
> Alex
> CodeCharge Developer
>
>
> "David" <dava133@ntlworld.com> wrote in message
>news:a6soop$bv3$1@news.codecharge.com...
> > Im sure theres a simple way to do this but I dont know what it is!! I
just
> > want to be able to set where the cursor is when a page loads, for
example
> > the username box on the login page, Im using ASP w/ Temps, cheers
> >
> > David
> >
> >
>
>

Alexey Alexapolsky
Posted: 03/15/2002, 5:37 AM

I usually put js code into Form/Footer.
Looks like Login Form doesn't have name then use this code

document.forms[0].Login.focus();

--
Alex
CodeCharge Developer


"David" <dava133@ntlworld.com> wrote in message
news:a6sssh$kau$1@news.codecharge.com...
> Do u mean in the <head> bit or in the header bit? i gather this is page
> properties. also in the login page what is the object name for the login
> field? just "login"? cheers
>
> David
>
> "Alexey Alexapolsky" <alexa@codecharge.com> wrote in message
>news:a6sq9f$ffb$2@news.codecharge.com...
> > Put this into Header&Footer section :
> >
> > <script language="JavaScript">
> >
> > document.FormName.elementName.focus();
> >
> > </script>
> >
> > --
> > Alex
> > CodeCharge Developer
> >
> >
> > "David" <dava133@ntlworld.com> wrote in message
> >news:a6soop$bv3$1@news.codecharge.com...
> > > Im sure theres a simple way to do this but I dont know what it is!! I
> just
> > > want to be able to set where the cursor is when a page loads, for
> example
> > > the username box on the login page, Im using ASP w/ Temps, cheers
> > >
> > > David
> > >
> > >
> >
> >
>
>

David
Posted: 03/15/2002, 5:47 AM

Gocha m8, thanks works a treat, can u explain the forms[0] bit though?
cheers

David

"Alexey Alexapolsky" <alexa@codecharge.com> wrote in message
news:a6steq$lfn$2@news.codecharge.com...
> I usually put js code into Form/Footer.
> Looks like Login Form doesn't have name then use this code
>
> document.forms[0].Login.focus();
>
> --
> Alex
> CodeCharge Developer
>
>
> "David" <dava133@ntlworld.com> wrote in message
>news:a6sssh$kau$1@news.codecharge.com...
> > Do u mean in the <head> bit or in the header bit? i gather this is page
> > properties. also in the login page what is the object name for the login
> > field? just "login"? cheers
> >
> > David
> >
> > "Alexey Alexapolsky" <alexa@codecharge.com> wrote in message
> >news:a6sq9f$ffb$2@news.codecharge.com...
> > > Put this into Header&Footer section :
> > >
> > > <script language="JavaScript">
> > >
> > > document.FormName.elementName.focus();
> > >
> > > </script>
> > >
> > > --
> > > Alex
> > > CodeCharge Developer
> > >
> > >
> > > "David" <dava133@ntlworld.com> wrote in message
> > >news:a6soop$bv3$1@news.codecharge.com...
> > > > Im sure theres a simple way to do this but I dont know what it is!!
I
> > just
> > > > want to be able to set where the cursor is when a page loads, for
> > example
> > > > the username box on the login page, Im using ASP w/ Temps, cheers
> > > >
> > > > David
> > > >
> > > >
> > >
> > >
> >
> >
>
>


   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

MS Access to Web

Convert MS Access to Web.
Join thousands of Web developers who build Web applications with minimal coding.

CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.