User not logged in - login - register
Home Calendar Books School Tool Photo Gallery Message Boards Users Statistics Advertise Site Info
go to bottom | |
 Message Boards » » more javascript Page [1]  
scrager
All American
9481 Posts
user info
edit post

you should add a small piece of javascript that automatically places the cursur in either the subject or body boxes of the post topic and reply pages. if you don't want to figure out the code, i can give it to you since i use it on my website.

11/6/2001 10:44:05 PM

Fireman357
All American
1617 Posts
user info
edit post

excellent idea. a click saved is. . . well, a click our lazy asses ain't gotta make!

11/6/2001 10:47:31 PM

scrager
All American
9481 Posts
user info
edit post

exactly...i like to click reply and start typing
i always end up typing a sentance before realizing that i'm not in the box yet

i get used to it using google and my own website all the time....damy laziness

11/6/2001 10:52:41 PM

scrager
All American
9481 Posts
user info
edit post

anyways, here's the code:
<head>
<script>
<!--
function setfocus() {
document.ctrl1.body.focus();
}
// -->
</script>
</head>
<body onload=setfocus()>
insert other code where necessary.

11/6/2001 10:54:53 PM

EVroccck
Cash$Millionaire
10294 Posts
user info
edit post

yeah this has been a known problem since the upgrade. I've tried to figure out forever what the dealie was, and gave crazyj all the code (not that he needs it) but it didnt work for some reason...

11/6/2001 11:32:10 PM

CrazyJ
The Boss
2453 Posts
user info
edit post

hmmm... i don't have access to the body tag at page level, so i can't access the onLoad event for the page. the body tag is in a template that would be a bitch to change more properties on. that is why it hasn't been implemented! i tried to just do javascript (without being embedded in a function) inside a script tag but the focus method will not work. however a test alert will work... hmmmm....

11/7/2001 1:17:11 AM

scrager
All American
9481 Posts
user info
edit post

where are you putting the script? maybe the script is executing before the form and text areas are loaded on the page?

i don't know a lot about javascript...just throwing out ideas.

11/7/2001 3:38:25 AM

InsaneMan
All American
22802 Posts
user info
edit post

I wouldnt want it moving my cursor. If you really need this, buy an optical mouse and stop bitching about how you cant move it good enough to get it there

11/10/2001 4:39:41 AM

scrager
All American
9481 Posts
user info
edit post

it's not that i can't move my mouse.
when i click reply, i want to reply...so i click reply and start typing. however, the focus is not on the text box so i must click again before i can start replying.

it would be more efficient to have the cursur automatically placed in the box on the reply page (since you obviously wanted to reply) than to have to click there first.

and FYI: i have an optical mouse...that has nothing to do with it.

11/10/2001 4:47:19 AM

InsaneMan
All American
22802 Posts
user info
edit post

what if u are quoting something? you dont click there first. or what if you want to look at the thread again in the mini-window at the bottom?

11/11/2001 2:51:30 AM

CrazyJ
The Boss
2453 Posts
user info
edit post

i finally got around to this... and individual titles for each page! coming here in a minute!

12/14/2001 4:20:14 PM

InsaneMan
All American
22802 Posts
user info
edit post

the titles make it a lot easier to make links on my desktop to shit. before it wanted to overwrite each one

12/14/2001 11:14:20 PM

 Message Boards » Feedback Forum » more javascript Page [1]  
go to top | |
Admin Options : move topic | lock topic

© 2024 by The Wolf Web - All Rights Reserved.
The material located at this site is not endorsed, sponsored or provided by or on behalf of North Carolina State University.
Powered by CrazyWeb v2.38 - our disclaimer.