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 _

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

OT JavaScript question.

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

RE: OT JavaScript question.

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

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; } alert(someObject.var1);

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 have

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 { var1 = not; var2 = sure; var3 = about

(ot) Javascript Question...

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

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...

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

OT: Javascript Question

2007-04-12 Thread Scott Stewart
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

OT: Javascript Question

2007-03-07 Thread Brad Wood
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 =

OT: Javascript question

2006-05-25 Thread Tony
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, 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:

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 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

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 cfset infoText = url.address

OT: Javascript question...or suggestion where to go to get answer

2006-01-29 Thread Eric Roberts
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

RE: Quick OT Javascript question.

2005-06-14 Thread Jeff Waris
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

Quick OT Javascript question. PART 2

2005-06-14 Thread Jeff Waris
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

RE: Quick OT Javascript question. PART 2

2005-06-14 Thread Adrian Lynch
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

Re: Quick OT Javascript question. PART 2

2005-06-14 Thread Adam Haskell
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.

RE: Quick OT Javascript question. PART 2

2005-06-14 Thread Jeff Waris
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

RE: Quick OT Javascript question. PART 2

2005-06-14 Thread Jeff Waris
:[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

RE: Quick OT Javascript question. PART 2

2005-06-14 Thread Micha Schopman
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

Quick OT Javascript question.

2005-06-13 Thread Jeff Waris
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

Re: Quick OT Javascript question.

2005-06-13 Thread Bryan Stevenson
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:

Re: Quick OT Javascript question.

2005-06-13 Thread Dustin Tinney
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

Re: Quick OT Javascript question.

2005-06-13 Thread Howie Hamlin
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

Re: Quick OT Javascript question.

2005-06-13 Thread Howie Hamlin
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

Re: Quick OT Javascript question.

2005-06-13 Thread Charlie Griefer
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

RE: Quick OT Javascript question.

2005-06-13 Thread Matt Osbun
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

Re: Quick OT Javascript question.

2005-06-13 Thread Claude Schneegans
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

Re: Quick OT Javascript question.

2005-06-13 Thread Sergey Croitor
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

Re: Quick OT Javascript question.

2005-06-13 Thread Claude Schneegans
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. ___

OT: Javascript question...

2005-05-10 Thread Pascal Peters
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

OT: Javascript question...

2005-05-10 Thread Mark A Kruger
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

Re: OT: Javascript question...

2005-05-10 Thread Charlie Griefer
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

OT: Javascript Question. JS Wizards needed!

2005-04-13 Thread Che Vilnonis
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

Re: OT: Javascript Question. JS Wizards needed!

2005-04-13 Thread Charlie Griefer
(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

OT: Javascript question

2005-01-24 Thread Rebecca Wells
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

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 javascript

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 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 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*

OT: JavaScript question.

2004-10-01 Thread Ian Skinner
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

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

ot: javascript question

2004-08-16 Thread Tony Weeg
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

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

OT: JavaScript Question.

2004-08-13 Thread Tangorre, Michael
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

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 greater than

OT: Javascript question

2003-09-24 Thread Eric Creese
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,

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 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 question

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 question

Re: OT: JavaScript question??

2003-08-26 Thread Charlie Griefer
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

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 question

OT: JavaScript question??

2003-08-22 Thread Ciliotta, Mario
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

RE: OT JavaScript question

2003-07-23 Thread Craig Dudley
://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

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 Hand is not valid

OT JavaScript question

2003-07-22 Thread Ian Skinner
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:

RE: OT JavaScript question

2003-07-22 Thread Tony Weeg
-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

Re: OT JavaScript question

2003-07-22 Thread Matthew Walker
://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

RE: OT JavaScript question

2003-07-22 Thread Ian Skinner
, 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

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, but

RE: -OT- Javascript Question - follow up

2003-01-17 Thread Lofback, Chris
: -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

-OT- Javascript Question

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

RE: -OT- Javascript Question

2003-01-16 Thread Timothy Heald
: -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

Re: -OT- Javascript Question

2003-01-16 Thread Marius Milosav
: 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

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 - 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. SCRIPT language=Javascript function VerifyCode(formField) {

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-Talk Subject: RE: -OT- Javascript

Sorta OT: Javascript Question/PayPal question

2002-06-01 Thread Mark Smeets
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

Re: Sorta OT: Javascript Question/PayPal question

2002-06-01 Thread Jason Miller
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

Re: Sorta OT: Javascript Question/PayPal question

2002-06-01 Thread Justin Scott
, 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

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

OT JavaScript Question

2001-12-12 Thread Double Down
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

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 Java

OT - Javascript question

2001-10-18 Thread Ryan Edgar
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.

OT - Javascript question

2001-10-18 Thread Ryan Edgar
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.

OT: JavaScript Question: ADVANCED

2001-08-28 Thread BT
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

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.

OT Javascript question

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

RE: OT Javascript question

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

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

RE: OT Javascript question

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

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

RE: OT Javascript question

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

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

OT Javascript question

2001-04-20 Thread Will Swain
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

RE: OT Javascript question

2001-04-20 Thread Semrau, Steven L Mr SRA
: (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

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 script document.captureEvents(ONKEYPRESS); function myHandler(e){ //where e is

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 about IE in NS you can en

ot: javascript question

2001-04-19 Thread Bruce, Rodney
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,

Slightly OT....Javascript question

2000-12-13 Thread Andy Ewings
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)

Re: Slightly OT....Javascript question

2000-12-13 Thread Jay Brushett
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

OT: Javascript Question

2000-09-15 Thread Todd Everling
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:

Re: OT: Javascript Question

2000-09-15 Thread Stuart Duncan
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.

Re: (OT) Javascript Question

2000-09-05 Thread John Andrichak IV
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

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 see

OT: Javascript Question

2000-08-31 Thread Robert Everland
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   2   >