The Forestry Forum is sponsored in part by:

iDRY Vacuum Kilns


Forestry Forum
Sponsored by:


TimberKing Sawmills



Toll Free 1-800-582-0470

LogRite Tools



Norwood Industries Inc.




Your source for Portable Sawmills, Edgers, Resaws, Sharpeners, Setters, Bandsaw Blades and Sawmill Parts

EZ Boardwalk Sawmills. More Saw For Less Money!

STIHLDealers.com sponsored by Northeast STIHL


Woodland Sawmills

Peterson Swingmills

 KASCO SharpTech WoodMaxx Blades

Turbosawmill

Sawmill Exchange

Michigan Firewood, your BRUTE FORCE Authorized Dealer

Baker Products

ECHO-Bearcat

iDRY Wood Lumber Vacuum Drying for everyon

Nyle Kiln Dry Systems

Chainsawr, The Worlds Largest Inventory of Chainsaw Parts

Smith Sawmill Service



Author Topic: Don't Shout!  (Read 3039 times)

0 Members and 1 Guest are viewing this topic.

Offline Jeff

  • Fearless Leader
  • Administrator
  • *****
  • Posts: 51828
  • Age: 60
  • Location: Harrison MI
  • Gender: Male
  • Oh la di oh la da
    • Share Post
    • Behind the  Forestry Forum YouTube channel
Don't Shout!
« on: December 28, 2008, 05:43:36 PM »
TESTINg typing with my cap locks on...
Just call me the midget doctor.
Forestry Forum Founder and Chief Cook and Bottle Washer.

Commercial circle sawmill sawyer in a past life.
Ezekiel 22:30

Offline SwampDonkey

  • Forester
  • *
  • Posts: 41036
  • Age: 54
  • Location: Centreville, NB
  • Gender: Male
  • Large Tooth
    • Share Post
Re: Don't Shout!
« Reply #1 on: December 28, 2008, 07:15:32 PM »
Yeah, earlier I noticed a popup when I started a new sentence with a capital. Too many peops on CAPS mode?
“No amount of belief makes something a fact.” James Randi

1 Thessalonians 5:21

2020 Polaris Ranger 570 to forward firewood, Husqvarna 555 XT Pro, Stihl FS560 clearing saw and continuously thinning my ground, on the side. Grow them trees. (((o)))

Offline Jeff

  • Fearless Leader
  • Administrator
  • *****
  • Posts: 51828
  • Age: 60
  • Location: Harrison MI
  • Gender: Male
  • Oh la di oh la da
    • Share Post
    • Behind the  Forestry Forum YouTube channel
Re: Don't Shout!
« Reply #2 on: December 28, 2008, 07:24:05 PM »
Did you start with a capital using the shift key or with cap lock?  You shouldn't get an alert using shift.
Just call me the midget doctor.
Forestry Forum Founder and Chief Cook and Bottle Washer.

Commercial circle sawmill sawyer in a past life.
Ezekiel 22:30

Offline beenthere

  • Senior Member x2
  • *****
  • Posts: 27163
  • Location: Southern Wisconsin, USA
  • Gender: Male
    • Share Post
Re: Don't Shout!
« Reply #3 on: December 28, 2008, 08:26:38 PM »
GOING TO TRY THIS (CAPS LOCK ON)


No warning....??
But sounds like a good plan.
south central Wisconsin
 It may be that my sole purpose in life is simply to serve as a warning to others

Offline Tom

  • In Memoriam
  • *
  • Posts: 25838
  • Age: 79
  • Location: Jacksonville, Florida
  • Gender: Male
    • Share Post
    • Toms Saw
Re: Don't Shout!
« Reply #4 on: December 28, 2008, 08:47:13 PM »
IT SURE TELLS ME when I do it.  It doesn't always show up on the same number of characters.  I don't know he measures it, but it works.  If you click the OK on the popup, it lets you type in caps anyway.

It worked for me with caps lock and when I pressed the shift key.... both ways
extinct

Offline Dave Shepard

  • Senior Member x2
  • *****
  • Posts: 11537
  • Age: 2017
  • Location: Alford Massachusetts
  • Gender: Male
  • Geometrically proportional
    • Share Post
    • My homepage
Re: Don't Shout!
« Reply #5 on: December 28, 2008, 08:48:41 PM »
Hey, that's cool. 8) Only does it with the Caps lock for me. 8)
Wood-Mizer LT40HDD51-WR Wireless, Kubota L48, Honda Rincon 650, TJ208 G-S, and a 60"LogRite!

Offline sawguy21

  • Senior Member x2
  • *****
  • Posts: 12208
  • Age: 73
  • Location: Enderby B.C. Canada
  • Gender: Male
    • Share Post
Re: Don't Shout!
« Reply #6 on: December 28, 2008, 08:56:49 PM »
Same here.
old age and treachery will always overcome youth and enthusiasm

Offline Dan_Shade

  • Senior Member x2
  • *****
  • Posts: 5695
  • Age: 47
  • Location: Lexington Park, Maryland
  • Gender: Male
  • I don't want to edit my profile!
    • Share Post
    • Shade Custom Sawing
Re: Don't Shout!
« Reply #7 on: December 28, 2008, 09:32:41 PM »
IT DID IT WITH THE SHIFT KEY THE FIRST TIME I TRIED IT!
Woodmizer LT40HDG25 / Stihl 066 alaskan
lots of dull bands and chains

There's a fine line between turning firewood into beautiful things and beautiful things into firewood.

Offline Dan_Shade

  • Senior Member x2
  • *****
  • Posts: 5695
  • Age: 47
  • Location: Lexington Park, Maryland
  • Gender: Male
  • I don't want to edit my profile!
    • Share Post
    • Shade Custom Sawing
Re: Don't Shout!
« Reply #8 on: December 28, 2008, 09:33:45 PM »
the second time I tried it, it didn't fuss. 

Jeff, can you fix up one of these sorts of things for use on my mother?
Woodmizer LT40HDG25 / Stihl 066 alaskan
lots of dull bands and chains

There's a fine line between turning firewood into beautiful things and beautiful things into firewood.

Offline Warbird

  • Senior Member x2
  • *****
  • Posts: 5826
  • Age: 2017
  • Location: Fairbanks, Alaska
  • Gender: Male
    • Share Post
Re: Don't Shout!
« Reply #9 on: December 28, 2008, 10:58:40 PM »
Interesting.  How is this being done?

Offline Jeff

  • Fearless Leader
  • Administrator
  • *****
  • Posts: 51828
  • Age: 60
  • Location: Harrison MI
  • Gender: Male
  • Oh la di oh la da
    • Share Post
    • Behind the  Forestry Forum YouTube channel
Re: Don't Shout!
« Reply #10 on: December 28, 2008, 11:57:00 PM »
With Javascript you can use what are called event handlers to form an action. You can set events for certain key strokes. For Example the textarea that you type your posts into have several things taking place. The code looks as below.

<textarea class="editor" name="message" rows="12" cols="60" onselect="storeCaret(this);" onclick="storeCaret(this);" onkeyup="storeCaret(this);" onkeypress="captureKeys(event, 'It appears that you may be inadvertently typing with ALL CAPS.\n\nPlease check your cap lock key.\n\nWriting in all caps on the Forestry Forum is considered SHOUTING');" onchange="storeCaret(this);" tabindex="2"></textarea>

The new part that is taking care of cap lock warning is the onkeypress event plus an associated javascript. There isnt a way to know if you have the cap lock on, but once you type, using the javascript, the browser sees the input characters as ASCII code and then know what to do if it sees certain strings. If it identifies the ASCII code range that indicates uppercase letters formed using the cap lock, which is different then the code for uppercase letters formed by the shift button, the handler part of the script returns the alert.


The script looks like this:
Code: [Select]
var count = 0;
var shown = false;

function captureKeys (e, errorMsg) {
    var ev = e ? e : window.event;
    if (!ev) {
      return;
    }
    var targ = ev.target ? ev.target : ev.srcElement;
    // get key pressed
    var which = -1;
    if (ev.which) {
      which = ev.which;
    } else if (ev.keyCode) {
      which = ev.keyCode;
    }

    if (which >= 65 && which <=  90) {
count++;
if (count == 6 && shown == false){
// uppercase
alert(errorMsg);
shown = true;
}
} else {
count = 0;
    };
return;
};




Just call me the midget doctor.
Forestry Forum Founder and Chief Cook and Bottle Washer.

Commercial circle sawmill sawyer in a past life.
Ezekiel 22:30

Offline Jeff

  • Fearless Leader
  • Administrator
  • *****
  • Posts: 51828
  • Age: 60
  • Location: Harrison MI
  • Gender: Male
  • Oh la di oh la da
    • Share Post
    • Behind the  Forestry Forum YouTube channel
Re: Don't Shout!
« Reply #11 on: December 29, 2008, 12:01:59 AM »
The other events you see within that textarea code are used for inserting things like the smilies by clicking on them, the BBC tags, and inserting the code from the gallery on click, and things of that nature.
Just call me the midget doctor.
Forestry Forum Founder and Chief Cook and Bottle Washer.

Commercial circle sawmill sawyer in a past life.
Ezekiel 22:30

Offline pigman

  • Senior Member x2
  • *****
  • Posts: 4009
  • Age: 76
  • Location: Northern Kentucky, Ky, USA
  • Gender: Male
    • Share Post
Re: Don't Shout!
« Reply #12 on: December 29, 2008, 12:03:28 AM »
NOW YOU HAVE ME CONFUSed with all that Greek. I took the caps lock off when it warned me.
Things turn out best for people who make the best of how things turn out.

Offline Jeff

  • Fearless Leader
  • Administrator
  • *****
  • Posts: 51828
  • Age: 60
  • Location: Harrison MI
  • Gender: Male
  • Oh la di oh la da
    • Share Post
    • Behind the  Forestry Forum YouTube channel
Re: Don't Shout!
« Reply #13 on: December 29, 2008, 12:04:15 AM »
One more thing,  YOUR BROWSER MAY VARY!  :D  These code snippets can be very browser dependent and many times what works in one doesnt work in another. Or worse.
Just call me the midget doctor.
Forestry Forum Founder and Chief Cook and Bottle Washer.

Commercial circle sawmill sawyer in a past life.
Ezekiel 22:30

Offline Warbird

  • Senior Member x2
  • *****
  • Posts: 5826
  • Age: 2017
  • Location: Fairbanks, Alaska
  • Gender: Male
    • Share Post
Re: Don't Shout!
« Reply #14 on: December 29, 2008, 12:37:56 AM »
That is pretty cool.  You could do some fairly interesting things with that.

Offline isawlogs

  • Senior Member x2
  • *****
  • Posts: 8193
  • Age: 62
  • Location: Chelsea Québec
  • Gender: Male
  • A smile is contagious ... Start an epidemic
    • Share Post
Re: Don't Shout!
« Reply #15 on: January 21, 2009, 10:25:06 PM »

  SO IT MIGHT WORK FOR SOME BUT NOT SO FOR OTHERS , I GUESS I AM ONE OF THOSE THAT IT DONT WORK FOR  :-\ :'( 

  I got a question for you computer gurru ....  Ya know how the pop up for an instant message is supose to pop up when ya get a message ... and open in another window when ya click it ... why dont it do that for me pop up in an another window ... it pops up  TO TELL ME i GOT A MESSAGE ...

   Marvel , challenged at times
Well actually often , but who is keeping track .  :-\
A man does not always grow wise as he grows old , but he always grows old as he grows wise .

   Marcel


Share via delicious Share via digg Share via facebook Share via linkedin Share via pinterest Share via reddit Share via stumble Share via tumblr Share via twitter

xx
Shout out to anyone near Knox, Tn!

Started by Tnwoodsman on Sawmills and Milling

13 Replies
1582 Views
Last post November 10, 2015, 01:52:24 AM
by 5quarter
xx
Shout out to female tailers

Started by scully on Sawmills and Milling

16 Replies
2341 Views
Last post October 05, 2016, 10:46:30 PM
by Okrafarmer
xx
Shout-out to New Mexico Tree farmers...

Started by chain on General Board

0 Replies
667 Views
Last post December 29, 2010, 08:15:26 PM
by chain
xx
Shout out to Marty Parsons and Wood-Mizer PA

Started by DR_Buck on Sawmills and Milling

7 Replies
1609 Views
Last post December 18, 2017, 03:05:32 PM
by Wudman
 


Powered by EzPortal