how to give focus for text fields

This is a discussion on "how to give focus for text fields" within the Flash & Multimedia Forum section. This forum, and the thread "how to give focus for text fields are both part of the Design Your Website category.



Go Back   Webforumz.com > Main Forums > Design Your Website > Flash & Multimedia Forum

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Aug 9th, 2006, 11:07
Junior Member
Join Date: Jul 2006
Location: bangalore
Age: 21
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
how to give focus for text fields

i have three textinputs

when i testmovie i need the focus on the first text field then on pressing tab it should go to next

please help me
Reply With Quote

  #2 (permalink)  
Old Aug 9th, 2006, 17:58
spinal007's Avatar
Moderator
Join Date: Mar 2004
Location: Good Ol'London
Age: 22
Posts: 1,620
Blog Entries: 1
Thanks: 0
Thanked 2 Times in 2 Posts
Send a message via ICQ to spinal007 Send a message via MSN to spinal007 Send a message via Yahoo to spinal007 Send a message via Skype™ to spinal007
Re: how to give focus for text fields

window.onload = function(){
document.getElemedByID('text1').focus();
}
Last Blog Entry: Random String in Javascript (Apr 21st, 2008)
Reply With Quote
  #3 (permalink)  
Old Aug 10th, 2006, 03:49
Junior Member
Join Date: Jul 2006
Location: bangalore
Age: 21
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Re: how to give focus for text fields

i need it in action scripting
i am using setFocus but it doesnt go to next textinput when i press tab
Reply With Quote
  #4 (permalink)  
Old Aug 10th, 2006, 08:21
spinal007's Avatar
Moderator
Join Date: Mar 2004
Location: Good Ol'London
Age: 22
Posts: 1,620
Blog Entries: 1
Thanks: 0
Thanked 2 Times in 2 Posts
Send a message via ICQ to spinal007 Send a message via MSN to spinal007 Send a message via Yahoo to spinal007 Send a message via Skype™ to spinal007
Re: how to give focus for text fields

So sorry, I forgot I was in the flash forum.... LOL
Erm... I can't help you there matey . But I'm sure one of our members will...
Last Blog Entry: Random String in Javascript (Apr 21st, 2008)
Reply With Quote
  #5 (permalink)  
Old Aug 26th, 2006, 05:42
JacobHaug's Avatar
SuperMember

SuperMember
Join Date: Dec 2005
Location: On Internet
Posts: 4,859
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to JacobHaug Send a message via MSN to JacobHaug
Cool Re: how to give focus for text fields

OK I hope I am understanding you correctly.

You want to make flash go to the next input text box when the user presses the tab key?

OK here is what you do. Give your input text boxes an instance name; in this case I used input1 for the first text box and input2 for the next text box.

Here is the code...

Code: Select all
input1.tabIndex  = 1;
input2.tabIndex  = 2;
That should do it. Let me know if there are any other problems.
Reply With Quote
Reply

Tags
give, focus, text, fields

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Show/Hide text fields based on drop down sing2trees JavaScript Forum 1 Apr 22nd, 2008 21:01
focus() onLoad Jaken Veina JavaScript Forum 1 Apr 22nd, 2006 17:34
text box focus Prakashcee Flash & Multimedia Forum 2 Dec 6th, 2005 08:35
text fields doesnt work on Mac IE hey259 Web Page Design 1 Jan 23rd, 2004 20:28
buttons text fields djaccess Classic ASP 10 Sep 29th, 2003 12:19


All times are GMT. The time now is 02:01.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43