vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Getting the text cursor to automatically be in the "Message:" box? (https://vborg.vbsupport.ru/showthread.php?t=34542)

Gutspiller 01-27-2002 07:59 PM

So that people can start typing after replying or starting a new thread, without having to click their mouse or hit tab to get the blinking text cursor in the box.

I don't think this would really be a hack so I didn't post it in requests. Somebody let me know how to do this or if I DO need to ask this in the request forum.

Any help on this subject would be greatly appreciated.

Thanks.

djr 01-27-2002 08:36 PM

Javascript: Focus on a form-field

This script makes the cursor start in a form-field when the page is loaded. Therefor it's handy to put this script behind the closed FORM TAG. You can also create a function and use it in the BODY OnLoad.

Replace 'formname' for the NAME of the FORM. And replace inputfieldname for the NAME of the INPUT-TAG.

Code:

document.formname.inputfieldname.focus();

Gutspiller 01-27-2002 10:35 PM

Quote:

Originally posted by djr
Javascript: Focus on a form-field

This script makes the cursor start in a form-field when the page is loaded. Therefor it's handy to put this script behind the closed FORM TAG. You can also create a function and use it in the BODY OnLoad.

Replace 'formname' for the NAME of the FORM. And replace inputfieldname for the NAME of the INPUT-TAG.

Code:

document.formname.inputfieldname.focus();

I don't have that good of an understanding of this stuff yet. Can you please explain how I can get that line of code to work with a reply to somebodys post or when creating a new thread?

Now that I think about it, it would be useful on the PMs and PM replys. (both single users, and buddy list)

If somebody can help me out with this problem, that would be great.

Thanks.

Gutspiller 02-04-2002 09:27 PM

BUMP!

Gutspiller 02-07-2002 08:59 PM

Bump again. (I will continue until somebody helps me) :p

patrick1110 08-04-2008 08:41 AM

Bump


All times are GMT. The time now is 05:29 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01056 seconds
  • Memory Usage 1,720KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete