RE: OT JavaScript question.

2008-11-12 Thread Jim Davis
> -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 { >

Re: OT JavaScript question.

2008-11-12 Thread Charlie Griefer
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 hav

Re: OT JavaScript question.

2008-11-12 Thread Ian Skinner
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"; > }

RE: OT JavaScript question.

2008-11-12 Thread Adrian Lynch
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);

RE: OT JavaScript question.

2008-11-12 Thread Andy Matthews
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 i

Re: OT JavaScript question.

2008-11-12 Thread Cutter (CFRelated)
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 _ http://bl

RE: (ot) Javascript Question...

2008-05-16 Thread Che Vilnonis
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

RE: (ot) Javascript Question...

2008-05-16 Thread Bobby Hartsfield
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..

Re: OT: Javascript question

2006-05-25 Thread Tony
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 > > then you can just refer to

Re: OT: Javascript question

2006-05-25 Thread Michael Traher
try dropping #chr(10)# into the string, I think that will work. might be nicer to set one display variable earlier then you can just refer to #infoText in the js. On 5/25/06, Tony <[EMAIL PROTECTED]> wrote: > > Hi there... this should be quick and easy for you Jscript ninja's... > > in this line

NEVERMIND, thanks! Re: OT: Javascript question

2006-05-25 Thread Tony
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: > marker.openInf

Re: OT: Javascript question...

2005-05-10 Thread Charlie Griefer
Mark: Is the innerHTML property an option? that'd handle the s much easier. On 5/10/05, Mark A Kruger <[EMAIL PROTECTED]> wrote: > I want to manipulate the "innerText" property of a tag. It works fine > except that I can't seem to put in a linefeed or break. I tried all the > following without

Re: OT: Javascript Question. JS Wizards needed!

2005-04-13 Thread Charlie Griefer
(not tested) :) #i# function changeDisplay(fVal) { document.getElementById('displayValue').innerHTML = fVal - 1; } On 4/13/05, Che Vilnonis <[EMAIL PROTECTED]> wrote: > > Any JS wizards out there? I have a simple FORM... > > > > #i# > > > > What I would like to do is to display the

RE: OT: Javascript question

2005-01-24 Thread Micha Schopman
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* co

Re: OT: Javascript question

2005-01-24 Thread Claude Schneegans
>>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.

Re: OT: Javascript question

2005-01-24 Thread Ben Doom
> 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

Re: OT: Javascript question

2005-01-24 Thread Barney Boisvert
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 javascr

Re: ot: javascript question

2004-08-17 Thread Scott Brady
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 functio

Re: ot: javascript question

2004-08-16 Thread Daniel Farmer
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 Settin

Re: OT: JavaScript Question.

2004-08-13 Thread S . Isaac Dealey
> 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 > great

Re: OT: Javascript question

2003-09-24 Thread Ben Doom
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

Re: OT: JavaScript question??

2003-08-26 Thread Charlie Griefer
EMAIL PROTECTED]> Sent: Tuesday, August 26, 2003 9:35 AM 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 th

Re: OT: JavaScript question??

2003-08-26 Thread Salvador Delacosta
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

Re: OT: JavaScript question??

2003-08-26 Thread Salvador Delacosta
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

Re: OT: JavaScript question??

2003-08-25 Thread Salvador Delacosta
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

Re: OT JavaScript question

2003-07-23 Thread Matthew Walker
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

2003-07-23 Thread Craig Dudley
Hand is not valid css2, use pointer, ie IMG { cursor : pointer; } I'm pretty sure 'hand' only works on ie. It deffinatley doesn't work on Mozilla/NS6+ -Original Message- From: Matthew Walker [mailto:[EMAIL PROTECTED] Sent: 22 July 2003 22:20 To: CF-Talk Subjec

RE: OT JavaScript question

2003-07-22 Thread Ian Skinner
o! Get your free, 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

Re: OT JavaScript question

2003-07-22 Thread Matthew Walker
Well, the default behaviour is that you define a cursor e.g. IMG { cursor : hand; } in your stylesheet so that anything pointing to given screen element will use that pointer. Or do you want the pointer to stay permanently changed? Matthew Walker Electric Sheep Web http://www.electricsheep.

RE: OT JavaScript question

2003-07-22 Thread Tony Weeg
supps. you can with css http://www.google.com/search?hl=en&ie=UTF-8&oe=UTF-8&q=css+mouse+pointer s gives you this http://www.stewshack.com/css/mouse.asp tony weeg uncertified advanced cold fusion developer tony at navtrak dot net www.navtrak.net office 410.548.2337 fax 410.860.2337 -O

RE: -OT- Javascript Question - follow up

2003-01-17 Thread Lofback, Chris
rm fields like this: That should do it. 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: Friday, January 17, 2003 9:25 AM > To: CF-Talk &g

RE: -OT- Javascript Question - follow up

2003-01-17 Thread Thane Sherrington
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, b

RE: -OT- Javascript Question - follow up

2003-01-16 Thread Lofback, Chris
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-T

RE: -OT- Javascript Question - follow up

2003-01-16 Thread Thane Sherrington
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. function VerifyCode(formField) { if (formField.valu

RE: -OT- Javascript Question

2003-01-16 Thread Thane Sherrington
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 ~~

Re: -OT- Javascript Question

2003-01-16 Thread Marius Milosav
you can use this.name Marius Milosav www.scorpiosoft.com It's not about technology, it's about people. Virtual Company (VICO) Application Demo www.scorpiosoft.com/vicodemo/login.cfm - Original Message - From: "Thane Sherrington" <[EMAIL PROTECTED]> To: "CF-Talk" <[EMAIL PROTECTED]> Sent:

RE: -OT- Javascript Question

2003-01-16 Thread Timothy Heald
say your What do you name the variable in your function definition? function VerifyCode(thisField){ alert(thisField.name); } That should work. Tim -Original Message- From: Thane Sherrington [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 16, 2003 9:13 AM To: CF-Talk Subject:

Re: OT JavaScript Question

2001-12-13 Thread Alex
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 c

Re: OT JavaScript Question

2001-12-12 Thread Don Vawter
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 Ja

Re: OT: JavaScript Question: ADVANCED

2001-08-28 Thread Jon Hall
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. jon

Re: OT Javascript question

2001-05-24 Thread Stuart Duncan
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 to

RE: OT Javascript question

2001-05-24 Thread Andy Ewings
15 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

RE: OT Javascript question

2001-05-24 Thread alistair . davidson
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 at the

RE: OT Javascript question

2001-05-24 Thread Andy Ewings
e- From: DeVoil, Nick [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 -Orig

RE: OT Javascript question

2001-05-24 Thread DeVoil, Nick
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 ques

RE: OT Javascript question

2001-05-24 Thread alistair . davidson
Try function test(controlnum) { var theObject = eval( "document.forms[0].interest" + interest ); theObject.value = theObject.value + 1; } If it's a text input that you're using, you might have to convert the values between string and integer, something like theObject.value = (theO

Re: OT Javascript question

2001-04-20 Thread Bryan LaPlante
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

Re: OT Javascript question

2001-04-20 Thread savan . thongvanh
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 document.captureEvents(ONKEYPRESS); function myHandler(e){ //where e is the eve

RE: OT Javascript question

2001-04-20 Thread Semrau, Steven L Mr SRA
Yes you can, it's call the 'Event Object'. Although NN and MSIE are dramatically different in the way that they handle this currently (not sure about Netscape 6). Steven Semrau SRA International, Inc. Senior Member, Professional Staff [EMAIL PROTECTED] [EMAIL PROTECTED] Com: (703) 805-1095 DSN:

Re: OT: Javascript Question

2000-09-15 Thread Stuart Duncan
You have to use Style sheets. 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. > >Thanks > >Todd Everling >-

Re: (OT) Javascript Question

2000-09-05 Thread John Andrichak IV
, 2000 11:25 PM Subject: 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 &

RE: (OT) Javascript Question

2000-09-01 Thread Robert Everland III
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

Re: (OT) Javascript Question

2000-08-31 Thread John Andrichak IV
Why don't you check to see if the image has already changed? If it has... then don't change the image and cancel the form submission. Try something like: with this JavaScript: var submitted = false; function doChangeSubmit() { if(!submitted) { submitted = true; --- i

RE: OT JavaScript Question

2000-04-18 Thread Bill Killillay
To all who are interested. I solved my problem of this JavaScript question. I had to use JavaScript because it was NOT on a CF or ASP enabled server. Therefore I used good old JavaSript and I have included the source below so anybody who need this type of thing or cares can have it and use it.

Re: OT JavaScript Question

2000-04-18 Thread Dirk De Bock
Since you're using dynamic pages I would just add the current template to the href as in location.href = "index_test.cfm?page=pageyoureon and then use that param to decide what pages to include in your frame you could probably even use the cgi_referer in the index.cfm if you don't like the idea o