dbTalk Databases Forums  

Javascript examples

comp.databases.pick comp.databases.pick


Discuss Javascript examples in the comp.databases.pick forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
dawn
 
Posts: n/a

Default Javascript examples - 11-09-2005 , 03:44 PM






For those who have Javascript libraries, are you willing to point me to
any web sites that use your code so I can marvel at what you have
accomplished and learn from or borrow ideas from your code (without
stealing code)? You can pass info to me via e-mail if you prefer at
dwolt at tincat-group dot com.

Thanks. --dawn
P.S. My address book is in bad shape after my computer was stolen and
I moved away from Outlook and other excuses, so I no longer have some
of you in there and wouldn't mind a personal e-mail to get the address
book back in order too.


Reply With Quote
  #2  
Old   
Jeffrey Kaufman
 
Posts: n/a

Default Re: Javascript examples - 11-09-2005 , 05:14 PM






I wouldn't exactly call it a library. This is all I use for now. It opens a
new browser window.

<SCRIPT language="JavaScript">
<!--
function print_ord_win()
{
window.open('{web.link}','ViewOrder','top=0,left=1 50,width=800,height=700,to
olbar=yes,location=
yes,directories=yes,status=yes,menubar=yes,scrollb ars=yes,copyhistory=no,res
izable=yes');
}
//-->
</SCRIPT>

I embed this script then REPLACE the {web.link} string with the link and
variable appropriate to the page the program is creating.

I am interested in a JavaScript that would enable the tab key to jump from
one input box to another, skipping any links and buttons in route to the
next input box. Does anyone have such a beast?

Thanks,
Jeff

"dawn" <dawnwolthuis (AT) gmail (DOT) com> wrote

Quote:
For those who have Javascript libraries, are you willing to point me to
any web sites that use your code so I can marvel at what you have
accomplished and learn from or borrow ideas from your code (without
stealing code)? You can pass info to me via e-mail if you prefer at
dwolt at tincat-group dot com.

Thanks. --dawn
P.S. My address book is in bad shape after my computer was stolen and
I moved away from Outlook and other excuses, so I no longer have some
of you in there and wouldn't mind a personal e-mail to get the address
book back in order too.




Reply With Quote
  #3  
Old   
Glen
 
Posts: n/a

Default Re: Javascript examples - 11-09-2005 , 09:05 PM



On Wed, 09 Nov 2005 23:14:35 GMT, "Jeffrey Kaufman"
<jkaufman (AT) keydata (DOT) us> wrote:
Quote:
I am interested in a JavaScript that would enable the tab key to jump from
one input box to another, skipping any links and buttons in route to the
next input box. Does anyone have such a beast?

Thanks,
Jeff
You can do that with key press traps and an array of only the
element names that you want to focus on. I could write one if you
wanted it, but if you have 100 fields on screen it can get quite large
and combersome.

Glen

--
Posted via NewsDemon.com - Premium Uncensored Newsgroup Service
------->>>>>>http://www.NewsDemon.com<<<<<<------
Unlimited Access, Anonymous Accounts, Uncensored Broadband Access


Reply With Quote
  #4  
Old   
michael@preece.net
 
Posts: n/a

Default Re: Javascript examples - 11-09-2005 , 10:24 PM



I found that googling comp.lang.javascript was an enjoyable and
rewarding passtime. A huge number of links from there. Funny how I
often got *close* to, but not exactly, what I was after. Most of the
time I got what I wanted by going that extra step or two. Something
about standing on shoulders come to mind.

Mike.


Reply With Quote
  #5  
Old   
Jeffrey Kaufman
 
Posts: n/a

Default Re: Javascript examples - 11-10-2005 , 12:06 AM



Glen,

Some of the order forms do get rather large, but most are 20 to 30 items. I
don't want you to waste a lot of time on this, but any direction and/or code
snips is greatly appreciated.

Jeff

"Glen" <nospamwebmaster (AT) all-spec (DOT) all-spec.com.com> wrote

Quote:
On Wed, 09 Nov 2005 23:14:35 GMT, "Jeffrey Kaufman"
jkaufman (AT) keydata (DOT) us> wrote:

I am interested in a JavaScript that would enable the tab key to jump
from
one input box to another, skipping any links and buttons in route to the
next input box. Does anyone have such a beast?

Thanks,
Jeff

You can do that with key press traps and an array of only the
element names that you want to focus on. I could write one if you
wanted it, but if you have 100 fields on screen it can get quite large
and combersome.

Glen

--
Posted via NewsDemon.com - Premium Uncensored Newsgroup Service
------->>>>>>http://www.NewsDemon.com<<<<<<------
Unlimited Access, Anonymous Accounts, Uncensored Broadband Access



Reply With Quote
  #6  
Old   
michael@preece.net
 
Posts: n/a

Default Re: Javascript examples - 11-10-2005 , 12:19 AM



Why not try a post to comp.lang.javascript? If you do they might want
to know more about what you want to skip and what you want to set focus
to. If you want to simply jump from one widget to another, known, input
box, you can just set focus to it. It gets a little more complicated if
you want to dance all over the screen - but you can do that too if you
want. Maybe try googling CLJ for "set focus".

Mike.


Reply With Quote
  #7  
Old   
dawn
 
Posts: n/a

Default Re: Javascript examples - 11-10-2005 , 07:13 AM



It hit me that instead of asking for javascript, because people are
writing code for customers or companies, I really just want to ask for
example web page URLs for public data-backed web pages that you like if
you have been developing with javascript. That shouldn't violate any
contracts/agreements, I would think.

Cheers! --dawn


Reply With Quote
  #8  
Old   
murthi
 
Posts: n/a

Default Re: Javascript examples - 11-10-2005 , 10:19 AM



It's very simple. Place a tabindex=-1 in any element you do want the tab to
stop at.

<input class="dupe" type=text readonly name="DUPE" tabindex=-1 value=""
size=120>
<button ... tabindex=-1 ...>

Chandru Murthi
"Jeffrey Kaufman" <jkaufman (AT) keydata (DOT) us> wrote

Quote:
Glen,

Some of the order forms do get rather large, but most are 20 to 30 items.
I
don't want you to waste a lot of time on this, but any direction and/or
code
snips is greatly appreciated.

Jeff

"Glen" <nospamwebmaster (AT) all-spec (DOT) all-spec.com.com> wrote in message
news:m4e5n1tv5h57o690s7r8nm0ecs4or7561o (AT) 4ax (DOT) com...
On Wed, 09 Nov 2005 23:14:35 GMT, "Jeffrey Kaufman"
jkaufman (AT) keydata (DOT) us> wrote:

I am interested in a JavaScript that would enable the tab key to jump
from
one input box to another, skipping any links and buttons in route to the
next input box. Does anyone have such a beast?

Thanks,
Jeff

You can do that with key press traps and an array of only the
element names that you want to focus on. I could write one if you
wanted it, but if you have 100 fields on screen it can get quite large
and combersome.

Glen

--
Posted via NewsDemon.com - Premium Uncensored Newsgroup Service
------->>>>>>http://www.NewsDemon.com<<<<<<------
Unlimited Access, Anonymous Accounts, Uncensored Broadband Access





Reply With Quote
  #9  
Old   
murthi
 
Posts: n/a

Default Re: Javascript examples - 11-10-2005 , 10:26 AM




"Glen" <nospamwebmaster (AT) all-spec (DOT) all-spec.com.com> wrote

Quote:
On Wed, 09 Nov 2005 23:14:35 GMT, "Jeffrey Kaufman"
jkaufman (AT) keydata (DOT) us> wrote:

I am interested in a JavaScript that would enable the tab key to jump from
one input box to another, skipping any links and buttons in route to the
next input box. Does anyone have such a beast?

Thanks,
Jeff

You can do that with key press traps and an array of only the
element names that you want to focus on. I could write one if you
wanted it, but if you have 100 fields on screen it can get quite large
and combersome.

Glen
Too complicated for what he wants to do, just skip on tab. This approach is
needed if you want to skip to a *specific field* on tab. Sometimes that can
be accomplished by setting up the tabindex sequence (tab goes to next higher
or equal tabindex field), tedious but do-able.

If you want to make Enter=Tab, for example, yo would have to both 1) trap
every keystroke (with all its attendant browser-specificity) and 2) setup a
table of where you want to go next. You could, of course, go the next
tabindex value yourself, but I think just returning Tab on enter does this
automatically.

Chandru Murthi
Quote:
--
Posted via NewsDemon.com - Premium Uncensored Newsgroup Service
------->>>>>>http://www.NewsDemon.com<<<<<<------
Unlimited Access, Anonymous Accounts, Uncensored Broadband Access



Reply With Quote
  #10  
Old   
Jeffrey Kaufman
 
Posts: n/a

Default Re: Javascript examples - 11-10-2005 , 12:11 PM



Chandru,

This is exactly what I needed, thank you. At first I didn't realize the tab
index indicates where you do not want the tab key to stop. It is working
perfectly now.

Thanks again,
Jeff


"murthi" <c_xyz_murthi (AT) seeing_xyz_green (DOT) net> wrote

Quote:
It's very simple. Place a tabindex=-1 in any element you do want the tab
to
stop at.

input class="dupe" type=text readonly name="DUPE" tabindex=-1 value=""
size=120
button ... tabindex=-1 ...

Chandru Murthi
"Jeffrey Kaufman" <jkaufman (AT) keydata (DOT) us> wrote in message
news:wrBcf.15018$q%.11562 (AT) newssvr12 (DOT) news.prodigy.com...
Glen,

Some of the order forms do get rather large, but most are 20 to 30
items.
I
don't want you to waste a lot of time on this, but any direction and/or
code
snips is greatly appreciated.

Jeff

"Glen" <nospamwebmaster (AT) all-spec (DOT) all-spec.com.com> wrote in message
news:m4e5n1tv5h57o690s7r8nm0ecs4or7561o (AT) 4ax (DOT) com...
On Wed, 09 Nov 2005 23:14:35 GMT, "Jeffrey Kaufman"
jkaufman (AT) keydata (DOT) us> wrote:

I am interested in a JavaScript that would enable the tab key to jump
from
one input box to another, skipping any links and buttons in route to
the
next input box. Does anyone have such a beast?

Thanks,
Jeff

You can do that with key press traps and an array of only the
element names that you want to focus on. I could write one if you
wanted it, but if you have 100 fields on screen it can get quite large
and combersome.

Glen

--
Posted via NewsDemon.com - Premium Uncensored Newsgroup Service
------->>>>>>http://www.NewsDemon.com<<<<<<------
Unlimited Access, Anonymous Accounts, Uncensored Broadband Access







Reply With Quote
Reply




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.