var myObj = {
variableA: 'some value',
variableB: 12,
variableC: function(){
// a function
}
};
I think, you'll want to test.
Steve Cutter Blades
Adobe Certified Professional
Advanced Macromedia ColdFusion MX 7 Developer
_
You can do this:
Var something = somethingelse = onemorething = 0;
-Original Message-
From: Ian Skinner [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 12, 2008 1:34 PM
To: cf-talk
Subject: OT JavaScript question.
Quick question that I just can not think of the right terms to find
Quick question that I just can not think of the right terms to find in
Google.
There is a syntax short cut in JavaScript if you are assigning several
properties to the same object. What is it?
~|
Adobe® ColdFusion® 8
a database of ColdFusion errors at http://cferror.org/
-Original Message-
From: Ian Skinner
Sent: 12 November 2008 19:34
To: cf-talk
Subject: OT JavaScript question.
Quick question that I just can not think of the right terms to find in
Google.
There is a syntax short cut in JavaScript
Adrian Lynch wrote:
Or do you mean with?
with someObject {
var1 = not;
var2 = sure;
var3 = about;
var4 = this;
var5 = syntax;
var6 = or;
var7 = whether;
var8 = it's a JavaScript;
var9 = thing or not;
}
alert(someObject.var1);
On Wed, Nov 12, 2008 at 1:14 PM, Ian Skinner [EMAIL PROTECTED] wrote:
Yes that is the one I was looking for!. I found 'with' to be a very
poor search term on Google, or any search engine for that matter.
heh. reminds me of http://bash.org/?514353 :)
--
I have failed as much as I have
-Original Message-
From: Ian Skinner [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 12, 2008 4:15 PM
To: cf-talk
Subject: Re: OT JavaScript question.
Adrian Lynch wrote:
Or do you mean with?
with someObject {
var1 = not;
var2 = sure;
var3 = about
I have a form that posts to itself. Once submitted, I create a dynamic url
on the fly.
Using javascript, how can I submit the form to itself and open the new url
in another browser window?
Can this be done w/o creating a 'go between' cf template?
Thanks, Che
window.open()
most popup blockers will block it though.
..:.:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com
http://cf4em.com
-Original Message-
From: Che Vilnonis [mailto:[EMAIL PROTECTED]
Sent: Friday, May 16, 2008 4:14 PM
To: CF-Talk
Subject: (ot) Javascript Question
Thanks. Because of popup blockers I guess a regular href will have to do.
-Original Message-
From: Bobby Hartsfield [mailto:[EMAIL PROTECTED]
Sent: Friday, May 16, 2008 4:21 PM
To: CF-Talk
Subject: RE: (ot) Javascript Question...
window.open()
most popup blockers will block it though
Hey all,
How would I control a select tag based on this.
function updateSelectedJournals(responseStruct) {
$('selectedJournals').innerHTML = Selected Journals
(+responseStruct.total+);
$('lstSelectedTerms').innerHTML = responseStruct.lstoutput;
I have
Hi guys, I've got a JavaScript question which has me puzzled. Can an
instance of a JavaScript object know the name of its instance?
That might not make any sense, so I have some quick sample code.
Consider the following:
SCRIPT LANGUAGE=JavaScript TYPE=text/javascript
customObject =
Hi there... this should be quick and easy for you Jscript ninja's...
in this line:
marker.openInfoWindowHtml(#url.address# #url.city# #url.state#
#url.zip# Report time: #url.time# Report Date: #url.date# );
i want to put BR's so that the text, line breaks, and the pop up
window isnt huge.
nevermind, it works now, i guess i had another problem the day i was testing
this, and that was not the issue.
it works all good.
thanks!
tony
On 5/25/06, Tony [EMAIL PROTECTED] wrote:
Hi there... this should be quick and easy for you Jscript ninja's...
in this line:
try dropping #chr(10)# into the string, I think that will work.
might be nicer to set one display variable earlier
cfset infoText = url.address chr(10) url.city chr(10)
then you can just refer to #infoText in the js.
On 5/25/06, Tony [EMAIL PROTECTED] wrote:
Hi there... this should be
true.
its still very alpha stage...
but its very simple to change to that!
good idea.
tw
On 5/25/06, Michael Traher [EMAIL PROTECTED] wrote:
try dropping #chr(10)# into the string, I think that will work.
might be nicer to set one display variable earlier
cfset infoText = url.address
I have a JavaScript dilemma in one of my CF apps and I am not sure how to
solve it. We have popup that is used to modify some values in the database
before running a report. We want this popup to close if you click on
another window. I tried putting close in an onBlur event as part of the
body
OT Javascript question.
How do I grab the CURRENTLY selected option in a select list
document.myform.colors.selectedIndex
(Be careful not spelling Document with an upper case).
--
___
REUSE CODE! Use custom tags;
See http://www.contentbox.com
Another question:
In my previous question.. I needed to grab the currently selected option
from a select list.
I can now get the selected value using this code...
var SelOpt = document.myform.colors.options.selectedIndex;
var colortype = document.myform.colors[SelOpt].value;
I now need to get
input type=hidden ... /
optionsasasa/option
/select
Is that ok for you?
Ade
-Original Message-
From: Jeff Waris [mailto:[EMAIL PROTECTED]
Sent: 14 June 2005 14:02
To: CF-Talk
Subject: Quick OT Javascript question. PART 2
Another question:
In my previous question.. I
any reason you are puttting all these into hidden form values? Why not
just build and associative array and use that to lookuop the rating it
will save bandwidth, it will be valid, and look more professional. The
lookup would be the same AsociativeArrayName[selectedValue] will give
you the rating.
my
question to formulate the answer I need. Hope that makes some sense..
Jeff
-Original Message-
From: Adam Haskell [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 14, 2005 9:29 AM
To: CF-Talk
Subject: Re: Quick OT Javascript question. PART 2
any reason you are puttting all
:[EMAIL PROTECTED]
Sent: Tuesday, June 14, 2005 9:18 AM
To: CF-Talk
Subject: RE: Quick OT Javascript question. PART 2
Yup. Use this notation:
document.myform[colortype].value;
From the looks of your code, the generated HTML will look
something like
this:
select
optionasas
Message-
From: Jeff Waris [mailto:[EMAIL PROTECTED]
Sent: dinsdag 14 juni 2005 14:02
To: CF-Talk
Subject: Quick OT Javascript question. PART 2
Another question:
In my previous question.. I needed to grab the currently selected option
from a select list.
I can now get the selected value using
4:50 Ponderings...
How do I grab the CURRENTLY selected option in a select list WITHOUT knowing
how many options. (the options are dynamically created)
Say we have in select colors
Red
Green selected
Blue
Document.myform.colors[1].value would be the selected one, but how would you
figure that
the property is selectedIndex
I'm kinda rutsy but it's something like
document.MyForm.MySelectBox.selectedIndex
HTH
Cheers
Bryan Stevenson B.Comm.
VP Director of E-Commerce Development
Electric Edge Systems Group Inc.
phone: 250.480.0642
fax: 250.480.1264
cell: 250.920.8830
e-mail:
document.myform.colors.length gives you a variable that you can loop
on and find the selected item.
On 6/13/05, Jeff Waris [EMAIL PROTECTED] wrote:
4:50 Ponderings...
How do I grab the CURRENTLY selected option in a select list WITHOUT knowing
how many options. (the options are dynamically
document.form name.select name.options.selectedIndex;
HTH,
--
Howie Hamlin - inFusion Project Manager
On-Line Data Solutions, Inc. - www.CoolFusion.com
inFusion Mail Server (iMS) - The Award-winning, Intelligent Mail Server
PrismAV - Virus scanning for ColdFusion and BlueDragon applications
Sorry - a more complete example would be:
var SelOpt = document.form name.select name.options.selectedIndex;
then
document.myform.colors[SelOpt].value
HTH,
Howie
--- On Monday, June 13, 2005 4:44 PM, Jeff Waris scribed: ---
4:50 Ponderings...
How do I grab the CURRENTLY selected option
use the selectedIndex property.
document.myform.colors.options[document.myform.colors.selectedIndex].value
document.myform.colors.options[document.myform.colors.selectedIndex].text
On 6/13/05, Jeff Waris [EMAIL PROTECTED] wrote:
4:50 Ponderings...
How do I grab the CURRENTLY selected option
Waris [mailto:[EMAIL PROTECTED]
Sent: Monday, June 13, 2005 3:44 PM
To: CF-Talk
Subject: Quick OT Javascript question.
4:50 Ponderings...
How do I grab the CURRENTLY selected option in a select list WITHOUT
knowing
how many options. (the options are dynamically created)
Say we have in select
How do I grab the CURRENTLY selected option in a select list
document.myform.colors.selectedIndex
(Be careful not spelling Document with an upper case).
--
___
REUSE CODE! Use custom tags;
See http://www.contentbox.com/claude/customtags/tagstore.cfm
(Please
Hello Jeff,
Monday, June 13, 2005, 11:44:18 PM, you wrote:
JW 4:50 Ponderings...
JW How do I grab the CURRENTLY selected option in a select list WITHOUT knowing
JW how many options. (the options are dynamically created)
JW Say we have in select colors
JW Red
JW Green selected
JW Blue
JW
var SelOpt = document.form name.select name.options.selectedIndex;
Not sure this will work: selectedIndex is a property of the select
object, not of the options array.
var SelOpt = document.form name.select name.selectedIndex;
should work better.
___
divName.innerHTML += some new text + br/;
This should work
Pascal
I want to manipulate the innerText property of a div tag. It works fine
except that I can't seem to put in a linefeed or break. I tried all the
following without success. Does anyone know how to get a linebreak in there?
-mark
I want to manipulate the innerText property of a div tag. It works fine
except that I can't seem to put in a linefeed or break. I tried all the
following without success. Does anyone know how to get a linebreak in there?
-mark
Mark:
Is the innerHTML property an option? that'd handle the br /s much easier.
On 5/10/05, Mark A Kruger [EMAIL PROTECTED] wrote:
I want to manipulate the innerText property of a div tag. It works fine
except that I can't seem to put in a linefeed or break. I tried all the
following
Any JS wizards out there? I have a simple FORM...
select name=FrameWidth1 style=font-family: Arial, Helvetica; font-size:
11px;
cfloop index=i from=0 to=40 step=1
option value=i#i#/option
/cfloop
/select
What I would like to do is to display the pulldown's value
(not tested) :)
div id=displayValue/div
select name=FrameWidth1 style=font-family:arial, helvetica;
font-size:11px; onchange=changeDisplay(this.options[this.selectedIndex
].value);
cfloop index=i from=0 to=40
option value=#i##i#/option
/cfloop
script type=text/javascript
function
Can anyone tell me please what do question marks and colon symbols
signify in a javascript command? For example:
F.value = S 0 ? ?? + F.value : (new Date(2000, 0, 1, S[0],
S[1])).USlocaltimeStr();
My guess is that this is some kind of shorthand for an if-then-else
control structure, but I've
You're exactly right. It's kind of like the IIF() function in CF.
(condition) ? (do if true) : (do if false);
cheers,
barneyb
On Mon, 24 Jan 2005 10:33:30 -0800, Rebecca Wells
[EMAIL PROTECTED] wrote:
Can anyone tell me please what do question marks and colon symbols
signify in a javascript
F.value = S 0 ? ?? + F.value : (new Date(2000, 0, 1, S[0],
S[1])).USlocaltimeStr();
IIRC, if the bit before the ? is true, return the value before the
colon; else return the bit after the colon.
--Ben
~|
Find out how
My guess is that this is some kind of shorthand for an if-then-else
Your guess is right.
--
___
REUSE CODE! Use custom tags;
See http://www.contentbox.com/claude/customtags/tagstore.cfm
(Please send any spam to this address: [EMAIL PROTECTED])
Thanks.
Javascript supports what they call, the trenary operator (hopely called it
right).
var result = comparison ? true value : false value;
So you can do
if(a == b){
return true;
}else{
return false;
}
or
return a == b ? true : false;
or for the diehard javascript lovers.. *wink*
Hopefully this is an easy one, but I'm not sure how to describe it concise enough to Google.
I have the following bit of _javascript_:
node.childNodes[0].>
{
showHideAllDivs
(
navRoot.parentNode.id,
this.innerHTML.replace(/[^A-Za-z]/g,),
this.id
);
return false;
} [white space modified
I'd say each select should have the same onchange call (
) where the checkSels() function will
check every select box and validate that they didn't duplicate a
selection. If they did, then send them back to the one they came from
(which is why you're passing the changed select box into the
hello good peoples...
i have a _javascript_ question, that really aims for a coupla things...
1. can this be done elegantly?
2. if not, then whats the best non-elegant way?
3. if so, a bit of a point in the right direction...i can READ
_javascript_, most of the time, and tell ya whats going
Because your needs are so specific. I think you're going to have to create your own JS Functions that will prevent these select menus from displaying certain values.
It's too complex to do it inline like that.
[Todays Threads]
[This Message]
[Subscription]
[Fast Unsubscribe]
[User
I have a money field that needs to be greater than $0.01. The field may
or may not contain a dollar sign ($) and may or may not contain a period
(.) as a dollar/cents split. When the form loads the default value is
$0.00
What would be the easiest way to verify the amount is greater than 1
cent
I have a money field that needs to be greater than $0.01.
The field may
or may not contain a dollar sign ($) and may or may not
contain a period
(.) as a dollar/cents split. When the form loads the
default value is
$0.00
What would be the easiest way to verify the amount is
greater than
Here is the code I use to call a popupwindow. I want to beable to place the smaller
popup window where I want, pereferabley in the lower right corner. How do I do this?
myWin= open(url, displayWindow,
You should be able to just change screenX and screenY to place the upper
left hand corner of the popup anywhere you want.
--Ben Doom
Eric Creese wrote:
Here is the code I use to call a popupwindow. I want to beable to place the smaller
popup window where I want, pereferabley in the lower
Mario,
try doing this.
document.selectedIndex == null
I believe that will tell check if the user has selected anything in the
drop-down box.
Hope this helps.
From: Ciliotta, Mario [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Subject: OT: JavaScript question
Mario,
try doing this.
document.selectedIndex == null
I believe that will tell check if the user has selected anything in the
drop-down box.
Hope this helps.
From: Ciliotta, Mario [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Subject: OT: JavaScript question
Subject: Re: OT: JavaScript question??
Mario,
try doing this.
document.selectedIndex == null
I believe that will tell check if the user has selected anything in the
drop-down box.
Hope this helps.
From: Ciliotta, Mario [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: CF-Talk
Mario,
try doing this.
document.selectedIndex == null
I believe that will tell check if the user has selected anything in the
drop-down box.
Hope this helps.
From: Ciliotta, Mario [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Subject: OT: JavaScript question
Hi all,
Sorry for the OT on JavaScript but I cannot figure out how to tell if someone has
selected in option in the box. I know how to do it if the I add another option at the
beginning: OPTION VALUE=Please select one.../OPTION and then use :
documentoptions[0].selected to see if
://www.electricsheep.co.nz/
- Original Message -
From: Ian Skinner [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Wednesday, July 23, 2003 3:17 AM
Subject: OT JavaScript question
Is there a way in JavaScript to change the state of the mouse pointer
onMouseOver for example
Yeah, it's the only one I could think of without opening Topstyle. I guess
I'm colonised by Microsoft.
- Original Message -
From: Craig Dudley [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Thursday, July 24, 2003 1:04 AM
Subject: RE: OT JavaScript question
Hand is not valid
Is there a way in JavaScript to change the state of the mouse pointer
onMouseOver for example?
--
Ian Skinner
Web Programmer
BloodSource
Sacramento, CA
~|
Archives:
-Original Message-
From: Ian Skinner [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 22, 2003 11:17 AM
To: CF-Talk
Subject: OT JavaScript question
Is there a way in JavaScript to change the state of the mouse pointer
onMouseOver for example?
--
Ian Skinner
Web Programmer
BloodSource
://www.electricsheep.co.nz/
- Original Message -
From: Ian Skinner [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Wednesday, July 23, 2003 3:17 AM
Subject: OT JavaScript question
Is there a way in JavaScript to change the state of the mouse pointer
onMouseOver for example?
--
Ian
, safe spam protection at http://www.cloudmark.com/spamnetsig/}
-Original Message-
From: Matthew Walker [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 22, 2003 2:20 PM
To: CF-Talk
Subject: Re: OT JavaScript question
Well, the default behaviour is that you define a cursor e.g.
IMG
At 11:41 AM 01/16/03 -0500, Lofback, Chris wrote:
Use formField.focus();
I tried this. No soap. Interestingly enough, it works in NS 4.8, but not
in IE 6.0.2800.1106 (love that numbering scheme.)
And I just tried it on another machine with IE 5.5, and the same
thing. The alert displays, but
: -OT- Javascript Question - follow up
At 11:41 AM 01/16/03 -0500, Lofback, Chris wrote:
Use formField.focus();
I tried this. No soap. Interestingly enough, it works in NS
4.8, but not
in IE 6.0.2800.1106 (love that numbering scheme.)
And I just tried it on another machine with IE 5.5
I'm passing a field name to a javascript function like this:
onchange=VerifyCode(this);
And I want to display the name of the field in the function, like this:
var ErrorMsg=Code is wrong in+PassedFieldName;
Alert(ErrorMsg);
But when I do that, I get [object] instead of the fieldname. Is there
: -OT- Javascript Question
I'm passing a field name to a javascript function like this:
onchange=VerifyCode(this);
And I want to display the name of the field in the function, like this:
var ErrorMsg=Code is wrong in+PassedFieldName;
Alert(ErrorMsg);
But when I do that, I get [object] instead
: Thursday, January 16, 2003 9:12 AM
Subject: -OT- Javascript Question
I'm passing a field name to a javascript function like this:
onchange=VerifyCode(this);
And I want to display the name of the field in the function, like this:
var ErrorMsg=Code is wrong in+PassedFieldName;
Alert(ErrorMsg
tAt 09:16 AM 01/16/03 -0500, Timothy Heald wrote:
say your What do you name the variable in your function definition?
function VerifyCode(thisField){
alert(thisField.name);
}
That should work.
Excellent. Thanks.
T
At 09:16 AM 01/16/03 -0500, Timothy Heald wrote:
function VerifyCode(thisField){
alert(thisField.name);
}
This worked, but now I'm having a problem with the focus. I'm using the
following script.
SCRIPT language=Javascript
function VerifyCode(formField)
{
Use formField.focus();
Chris Lofback
Sr. Web Developer
TRX Integration
28051 US 19 N., Ste. C
Clearwater, FL 33761
www.trxi.com
-Original Message-
From: Thane Sherrington [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 16, 2003 10:40 AM
To: CF-Talk
Subject: RE: -OT- Javascript
Hello everyone,
I've 2 questions, they are doozies too.
Client wants to sell his little online e-book for 5$/chapter, decided to go
with PayPal beceause well, no funds to spend on things like verisign and so
forth. (Yes I know about some of the horror stories of PayPal.)
First, I don't think
Probably not much help - but in the least you can check the refering site with
#CGI.referer# and it if contains paypal.com or something - you can say thanks or
- please pay through paypal. But that assumes they are paying through paypal and
coming right back.
And of course - paypal did come up
, Lead Developer
Sceiron Internet Services, Inc.
http://www.sceiron.com
- Original Message -
From: Mark Smeets [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Saturday, June 01, 2002 8:25 PM
Subject: Sorta OT: Javascript Question/PayPal question
Hello everyone,
I've 2 questions
The to programming is not to repeat. Anyway, you can call a function from
a function.
function a (){
b();
}
function b (){
alert hi;
}
On Wed, 12 Dec 2001, Double Down wrote:
I have several different Java Scripts that I want to run at once. All of
them have to deal with
I have several different Java Scripts that I want to run at once. All of
them have to deal with checking a form. I want to run all of them at
once, but each one requires a different function, I want to combine all
of them into one function and run them at the same time.
Can anyone help with
function master(){
f1();
f2();
..
fn();
}
or am I missing something?
- Original Message -
From: Double Down [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Wednesday, December 12, 2001 6:31 PM
Subject: OT JavaScript Question
I have several different Java
I have a dynamically generated form and I wish to do validation on some
of the fields using Javascript.
Basically I am ensuring that numeric data is entered - simple enough to
validate, but the problem occurs when there are units such as currency
that need to be submitted along with the value.
I have a dynamically generated form and I wish to do validation on some
of the fields using Javascript.
Basically I am ensuring that numeric data is entered - simple enough to
validate, but the problem occurs when there are units such as currency
that need to be submitted along with the value.
There is the JavaScript variable that gets the value of the Address bar of
another frame (+parent.topwindow.document.location). Does anyone if the
variable changes along with redirects and META refreshes or is only the
value of the address when loaded?
IF it does look at the live address would it
Javascript is client side so it is executed on after all CF code is
executed, so cflocations are irrelavant to javascript. It doesn't matter
if you cflocated, meta refreshed, or teleported to the currently loaded
document. The document.location property will always return the current
url.
I'm having a mind blankarghhh. I'm trying to incremtnet the value of a
control in a form by one where part of the controls name is poassed in as a
variable. Probably best I explain with the code snippet:
function test(controlnum) {
document.forms[0].interest + interest + .value =
PROTECTED]]
Sent: 24 May 2001 12:18
To: CF-Talk
Subject: OT Javascript question
I'm having a mind blankarghhh. I'm trying to incremtnet the value of a
control in a form by one where part of the controls name is poassed in as a
variable. Probably best I explain with the code snippet:
function test
Andy
Does this work?
function test(controlnum) {
elt = document.forms[0][interest + interest];
elt.value = parseInt(elt.value) + 1;
}
Nick
-Original Message-
From: Andy Ewings [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 24, 2001 12:18 PM
To: CF-Talk
Subject: OT Javascript
[mailto:[EMAIL PROTECTED]]
Sent: 24 May 2001 12:32
To: CF-Talk
Subject: RE: OT Javascript question
Andy
Does this work?
function test(controlnum) {
elt = document.forms[0][interest + interest];
elt.value = parseInt(elt.value) + 1;
}
Nick
-Original Message-
From: Andy Ewings [mailto
parseInt() is a method of the String object, so try
elt.value = elt.value.parseInt() + 1;
-Original Message-
From: Andy Ewings [mailto:[EMAIL PROTECTED]]
Sent: 24 May 2001 13:58
To: CF-Talk
Subject: RE: OT Javascript question
MopeI tried this Nick but it kept complaining
To: CF-Talk
Subject: RE: OT Javascript question
parseInt() is a method of the String object, so try
elt.value = elt.value.parseInt() + 1;
-Original Message-
From: Andy Ewings [mailto:[EMAIL PROTECTED]]
Sent: 24 May 2001 13:58
To: CF-Talk
Subject: RE: OT Javascript question
MopeI tried
I had to do a lot of form mathematics with javascript, and in order to
force the fields to recognize the fields as numerics instead of strings, I
had to parsefloat() around the value.
So my form fields looked like this.
parseFloat(document.form.field.value) + 1;
In your case, you may have
Hi,
Does anyone know if it is possible to capture key strokes with javascript.
In other words, can I create a onReturn event which fires when the user hits
the return button on their keyboard?
Cheers
Will Swain
Hot Horse Ltd
~~
Structure
: (703) 655-1095
-Original Message-
From: Will Swain [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 20, 2001 11:49 AM
To: CF-Talk
Subject: OT Javascript question
Hi,
Does anyone know if it is possible to capture key strokes with javascript.
In other words, can I create a onReturn
i know there is in NS but i'm not sure about IE
in NS you can enable event capturing and inherent to that is the type of
event. i.e., a key stroke and the key depressed
see developer.netscape.com for more on this
script
document.captureEvents(ONKEYPRESS);
function myHandler(e){ //where e is
In IE4 and up event.keyCode(13) is the enter key
- Original Message -
From: [EMAIL PROTECTED]
To: "CF-Talk" [EMAIL PROTECTED]
Sent: Friday, April 20, 2001 12:45 PM
Subject: Re: OT Javascript question
i know there is in NS but i'm not sure about IE
in NS you can en
I am having a problem with running javascript on in a second(popup) window.
from the calling page I use:
Script
windnow.open("file.cfm");
/Script
when the page first opens everything works fine, but when I call a function
to rewrite the page, the next time I try to call any function,
OK guys and girls...slightly ot question but it's bugging me! In part of a
Javasript function I am trying to loop through a collection of controls and
adding their value to a list which is then the value of a text box. Here is
the code:
var i = 1;
while(i = document.skills.slidercount.value)
Use the eval function.
eval("document.Slider" + i + ".GetValue()");
Roughly.
Jay
At 05:48 PM 12/13/2000 +, you wrote:
OK guys and girls...slightly ot question but it's bugging me! In part of a
Javasript function I am trying to loop through a collection of controls and
adding their value
Anyone know how code the size of the font for text in a dropdown box.
I know it works for Netscape.but I'm looking for an IE solutions.
Thanks
Todd Everling
--
Archives:
You have to use Style sheets.
select name="selectfield" style="font-size:xx"
Stuart Duncan
MaracasMedia Inc.
At 12:41 PM 9/15/00 -0500, you wrote:
Anyone know how code the size of the font for text in a dropdown box.
I know it works for Netscape.but I'm looking for an IE solutions.
ubject: RE: (OT) Javascript Question
Now will this make it so they can't click the sumit image again?
Bob Everland
-Original Message-
From: John Andrichak IV [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 31, 2000 12:54 PM
To: [EMAIL PROTECTED]
Subject: Re: (OT) Javascript Quest
Now will this make it so they can't click the sumit image again?
Bob Everland
-Original Message-
From: John Andrichak IV [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 31, 2000 12:54 PM
To: [EMAIL PROTECTED]
Subject: Re: (OT) Javascript Question
Why don't you check to see
I can't remember where or the name of the javascript forum off of
cf-talk but I figured I may as well as my question and then have someone
tell me where to do. I have a form button that is an image. I put some
javascript in there so that when I click on it, it changes the image. What I
1 - 100 of 101 matches
Mail list logo