Re: javascript help

2007-05-29 Thread Tom Chiverton
On Tuesday 29 May 2007, Andy Matthews wrote: > I believe that you have to reference the frame as an array index, similar > to the way you can reference form elements. Get firefox. Get the firebug extension. Set a break point and poke around the DOM :-) -- Tom Chiverton Helping to confidentially

RE: javascript help

2007-05-29 Thread Andy Matthews
I believe that you have to reference the frame as an array index, similar to the way you can reference form elements. -Original Message- From: Dan Munez [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 29, 2007 9:12 AM To: CF-Talk Subject: OT: javascript help hey guys i have a little window

Re: javascript help

2007-05-29 Thread James Wolfe
> hey guys i have a little window with a link on it opened up a popup > window and gave it a name. the new window also has frames in it. I > would like to manipulate the forms in that frame, like giving it > certain values and stuff, by calling it from the little window. how > do I do that?

Re: javascript

2007-05-17 Thread Jim Davis
> I want to write a javascript function that I can use on all of my > forms and inputs to disable a text input. So I want to pass to the > function the form's ID and the text input's ID to be disabled. After fixing the reference to the field as Adrian suggested you can genericize this further.

RE: javascript

2007-05-17 Thread Adrian Lynch
document[formID][textInputID].disabled=true; Adrian -Original Message- From: Chad Gray [mailto:[EMAIL PROTECTED] Sent: 17 May 2007 14:41 To: CF-Talk Subject: OT: javascript I want to write a javascript function that I can use on all of my forms and inputs to disable a text input. So I

RE: Javascript regex question...

2007-05-01 Thread Ben Nadel
Subject: RE: Javascript regex question... Yeah... The "Javascript regex question" wasn't that obvious. Sorry. ;) ~| Create robust enterprise, web RIAs. Upgrade & integrate Adobe Coldfusion MX7 with Flex 2 h

RE: Javascript regex question...

2007-05-01 Thread Andy Matthews
Yeah... The "Javascript regex question" wasn't that obvious. Sorry. ;) -Original Message- From: Ben Nadel [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 01, 2007 3:08 PM To: CF-Talk Subject: RE: Javascript regex question... Oh whoops. Didn't realize yo

RE: Javascript regex question...

2007-05-01 Thread Ben Nadel
ay 01, 2007 3:57 PM To: CF-Talk Subject: RE: Javascript regex question... Found it. In case anyone's interested. This is what I came up with: str = 'select a makeHondaAcura'; re = /value="(\w+)"/i; found = str.match(re); alert(found): returns value="Honda&qu

RE: Javascript regex question...

2007-05-01 Thread Andy Matthews
Found it. In case anyone's interested. This is what I came up with: str = 'select a makeHondaAcura'; re = /value="(\w+)"/i; found = str.match(re); alert(found): returns value="Honda",Honda alert(found[1]): returns Honda -Original Message- From: Andy Matthews [mailto:[EMAIL PROTECTED] S

RE: Javascript regex question...

2007-05-01 Thread Ben Nadel
Probably not the best solution, but a very quick one (to come up with, not processing time): ListGetAt( YOUR_CONTENT, 2, ) Treat the content a quote-delimited list. Then the second list item is the first value. .. Ben Nadel Certified Advanced ColdFusion MX7 Developer w

RE: Javascript Question

2007-04-12 Thread Scott Stewart
Never mind, I figured it out -- Scott Stewart ColdFusion Developer SSTWebworks 7241 Jillspring Ct. Springfield, Va. 22152 (703) 220-2835 http://www.sstwebworks.com -Original Message- From: Scott Stewart [mailto:[EMAIL PROTECTED] Sent: Thursday, April 12, 2007 10:52 AM To: CF-Talk Sub

RE: Javascript Question

2007-03-07 Thread Brad Wood
Lol. It all makes perfect sense. ~Brad ~| Deploy Web Applications Quickly across the enterprise with ColdFusion MX7 & Flex 2. Free Trial http://www.adobe.com/products/coldfusion/flex2/ Archive: http://www.houseoffusion.com

RE: Javascript Question

2007-03-07 Thread Dave Watts
> By more that one reference do you mean more than one > instance, or more than one pointer to the same instance? The latter. Jim just explained it better than I did. But he's probably not typing with his thumbs! Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provi

RE: Javascript Question

2007-03-07 Thread Jim Davis
> -Original Message- > From: Brad Wood [mailto:[EMAIL PROTECTED] > Sent: Wednesday, March 07, 2007 10:53 PM > To: CF-Talk > Subject: OT: Javascript Question > > Hi guys, I've got a JavaScript question which has me puzzled. Can an > instance of a JavaScript object "know" the name of its in

RE: Javascript Question

2007-03-07 Thread Brad Wood
By more that one reference do you mean more than one instance, or more than one pointer to the same instance? ~Brad My understanding is that it generally can't; this makes sense, since an object may have more than one reference. ~

RE: Javascript Question

2007-03-07 Thread Dave Watts
> Can an instance of a JavaScript object "know" the name of > its instance? My understanding is that it generally can't; this makes sense, since an object may have more than one reference. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the highest caliber

Re: JavaScript Browser Support History

2007-03-02 Thread Mike Chabot
The question is related to support of regular expression syntax and the form validation functions are completely generated by a framework. So the normal methods of feature checking don't work in this case. I found my answer on the Mozilla Web site. That feature was introduced in JavaScript 1.5. W

Re: JavaScript Browser Support History

2007-03-02 Thread Tom Chiverton
On Wednesday 28 Feb 2007, Mike Chabot wrote: > Specifically, I am looking for which browsers support positive > lookahead regular expression searches, but a nice reference for Why not test for the feature, rather than guess based on the user agent ? -- Tom Chiverton Helping to appropriately mone

Re: JavaScript Browser Support History

2007-02-28 Thread Robertson-Ravo, Neil (RX)
jeez, a. Doc like would be massive if it covered all JS changelogs! "This e-mail is from Reed Exhibitions (Gateway House, 28 The Quadrant, Richmond, Surrey, TW9 1DN, United Kingdom), a division of Reed Business, Registered in England, Number 678540. It contains information which is confidential

Re: JavaScript Browser Support History

2007-02-27 Thread Dinner
I was hoping it would be here: http://www.gotapi.com/ Since someone just turned me onto that awesome little deal, but at a quick glance, I didn't see 'em. They are standards tho, I reckon, so maybe the w3c or something? Google is the friend of the searcher here. :Dee On 2/27/07, Mike Chabot <[

RE: Javascript Onclick Question

2007-01-30 Thread Lee.S.Surma
Of course in CF! That worked well. Thanks. -Original Message- From: Scott Weikert [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 30, 2007 2:24 PM To: CF-Talk Subject: Re: Javascript Onclick Question [EMAIL PROTECTED] wrote: > I have a form that has the following javascript next t

Re: Javascript Onclick Question

2007-01-30 Thread Scott Weikert
[EMAIL PROTECTED] wrote: > I have a form that has the following javascript next to a date input > text input. When the button is pressed it simply clears the date input > box. How would I get it to populate the box with today's date instead? > > Assuming you're doing this in CF... :D onClick=

RE: JavaScript Forum Needed

2007-01-15 Thread Andy Matthews
Try using jQuery's tab plugin. Loads of ways to customize it: http://www.stilbuero.de/2006/11/05/tabs-version-2/ Andy matthews -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, January 15, 2007 1:34 PM To: CF-Talk Subject: JavaScript Forum Needed Does

RE: JavaScript not working with CFFOFM Checkbox

2006-12-30 Thread Bruce Sorge
k. So, how can I get it to work like I want? Sorry for appearing stupid but I am new to action script. Thanks, Bruce -Original Message- From: Jacob Munson [mailto:[EMAIL PROTECTED] Sent: Saturday, December 30, 2006 7:39 AM To: CF-Talk Subject: Re: JavaScript not working with CFFOFM Che

Re: JavaScript not working with CFFOFM Checkbox

2006-12-30 Thread Jacob Munson
I've just barely started using Flash forms this month, and I had to jump through some real hoops to get JS to work with them. It doesn't work like normal, because the form elements are in a swf, they aren't accessible to the page like normal form elements. But if you do some googling for using ja

RE: Javascript and Dynamic CF Forms

2006-12-29 Thread Che Vilnonis
Thanks. Works now. If I wasn't in such a rush, I would have saw the quotes myself. -Original Message- From: Charlie Griefer [mailto:[EMAIL PROTECTED] Sent: Thursday, December 28, 2006 5:26 PM To: CF-Talk Subject: Re: Javascript and Dynamic CF Forms sorry. my bad. remove the q

Re: Javascript and Dynamic CF Forms

2006-12-28 Thread Christopher Jordan
This might be bad form, but in the onchange of the select box, you can just do: the 'this.value' is already the value of the selected item. I've tested this fact in IE and FF. Cheers, Chris Che Vilnonis wrote: > Still no go... > > 1. took care of the select value syntax as per previous email

Re: Javascript and Dynamic CF Forms

2006-12-28 Thread Christopher Jordan
First: It is *awesome* that Rob has written a distro of AjaxCFC for jQuery. I started playing with the alpha release last night. Very cool stuff. Second: There is probably a much more succinct way of doing this in jQuery. I'm not the absolute best person to ask. Also, my code below only requir

Re: Javascript and Dynamic CF Forms

2006-12-28 Thread Charlie Griefer
couple of things (and just to throw it out there, i am in no way against jQuery...i haven't used it yet, but am fixing to download it and start playing around with it...especially now that Rob G. has integrated AjaxCFC into it). in this case, i don't think using the library really saves you anythi

Re: Javascript and Dynamic CF Forms

2006-12-28 Thread Christopher Jordan
This would be dead simple using jQuery. I just wrote and tested this. I think it does what you want. function myFunction(thisValue){ if(thisValue == "OUT OF STOCK"){ $("#myID").val("0"); }

Re: Javascript and Dynamic CF Forms

2006-12-28 Thread Charlie Griefer
sorry. my bad. remove the quotes from the 'this.options[this.selectedIndex].value' i was having you pass that literal string :\ On 12/28/06, Che Vilnonis <[EMAIL PROTECTED]> wrote: > Hmmm. Not working... Does selOpt need another name, dynamic name? -- Charlie Griefer

RE: Javascript and Dynamic CF Forms

2006-12-28 Thread loathe
Change the name of your form to something else. Form and forms are both reserved words. > -Original Message- > From: Che Vilnonis [mailto:[EMAIL PROTECTED] > Sent: Thursday, December 28, 2006 5:11 PM > To: CF-Talk > Subject: RE: Javascript and Dynamic CF Forms > >

RE: Javascript and Dynamic CF Forms

2006-12-28 Thread Che Vilnonis
Still no go... 1. took care of the select value syntax as per previous email. 2. what do you mean by "i'd also prefer to see id attributes in the form fields (use the same value as the 'name' attribute) and in the script". How would I rewrite that? 3. already know about JS being case sensitive and

Re: Javascript and Dynamic CF Forms

2006-12-28 Thread Charlie Griefer
see my previous post regarding the syntax of the select value. i'd also prefer to see id attributes in the form fields (use the same value as the 'name' attribute) and in the script, do: document.getElementById('QTYShipped' + n).value = 0; also...remember that JS is case sensitive. also also...i

RE: Javascript and Dynamic CF Forms

2006-12-28 Thread Che Vilnonis
Hmmm. Not working... Does selOpt need another name, dynamic name? -Original Message- From: Che Vilnonis [mailto:[EMAIL PROTECTED] Sent: Thursday, December 28, 2006 4:46 PM To: CF-Talk Subject: RE: Javascript and Dynamic CF Forms Geez. That was fast. Thanks... Testing now

Re: Javascript and Dynamic CF Forms

2006-12-28 Thread Charlie Griefer
just noticed something... change 'this.value' to 'this.options[this.selectedIndex].value' (please) :) On 12/28/06, Che Vilnonis <[EMAIL PROTECTED]> wrote: > Geez. That was fast. Thanks... Testing now... -- Charlie Griefer "...All the world shall

RE: Javascript and Dynamic CF Forms

2006-12-28 Thread Che Vilnonis
Geez. That was fast. Thanks... Testing now... -Original Message- From: Charlie Griefer [mailto:[EMAIL PROTECTED] Sent: Thursday, December 28, 2006 4:42 PM To: CF-Talk Subject: Re: Javascript and Dynamic CF Forms function updateText(n, selOpt) { if (selOpt == "O

Re: Javascript and Dynamic CF Forms

2006-12-28 Thread Charlie Griefer
function updateText(n, selOpt) { if (selOpt == "OUT OF STOCK") { document.formName.elements["QTYShipped" + n].value = 0; } } On 12/28/06, Che Vilnonis <[EMAIL PROTECTED]> wrote: > I have a form with a varied number of form fields (they are dynamical

RE: Javascript help

2006-12-22 Thread Bobby Hartsfield
And here I was thinking you had no sense of humor ;-) -Original Message- From: Dave Watts [mailto:[EMAIL PROTECTED] Sent: Friday, December 22, 2006 10:43 AM To: CF-Talk Subject: RE: Javascript help > Well since we are being smart asses... the question was "how > can I clear

RE: Javascript help

2006-12-22 Thread Dave Watts
> Well since we are being smart asses... the question was "how > can I clear either one when I click on any one of the radio buttons." One person's smart ass is another's stickler for accuracy. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the highest cal

RE: Javascript help

2006-12-21 Thread Bobby Hartsfield
Well since we are being smart asses... the question was "how can I clear either one when I click on any one of the radio buttons." -Original Message- From: Dave Watts [mailto:[EMAIL PROTECTED] Sent: Thursday, December 21, 2006 7:34 PM To: CF-Talk Subject: RE: Javascript help

RE: Javascript help

2006-12-21 Thread Dave Watts
> I don't consider Netscape 2 (or IE pre 5) when I use the > phrase 'cross browser compatible'. Especially when dealing > with JS and/or CSS. I thought the question was, "what is the most compatible way to address a form in JS", not "what browsers do you prefer to disregard?" Right now, the ans

RE: Javascript help

2006-12-21 Thread Dave Watts
> > This seems to work, but will it work in all browser? > > > > onFocus="document.updClassified.asking1.value = > > '',document.updClassified.asking2.value = ''" > > > No it won't. > > For that you'll need a function and you'll need to write a > javascript browser diction script and have sepa

RE: Javascript help

2006-12-21 Thread Dave Watts
> You can stack arguments that way, but will calling the field > that way work cross browser? Yes, there's nothing wrong with having multiple statements within an event handler, other than readability. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the hig

RE: Javascript help

2006-12-21 Thread Bobby Hartsfield
ber 21, 2006 5:42 PM To: CF-Talk Subject: RE: Javascript help > > document.formname.fieldname.value is about as standard as it > > gets AFAIK. > > Yes, it is as vanilla as it gets and easiest for most people > to read and understand. But if you'd like to make it NOT wo

RE: Javascript help

2006-12-21 Thread Dave Watts
> > document.formname.fieldname.value is about as standard as it > > gets AFAIK. > > Yes, it is as vanilla as it gets and easiest for most people > to read and understand. But if you'd like to make it NOT work > in all browsers that can read JS you can try some of these lol > > document.forms[0

RE: Javascript help

2006-12-21 Thread Bobby Hartsfield
form'].myfield.value document.forms['myform']['myfield'] .value -Original Message- From: Charlie Griefer [mailto:[EMAIL PROTECTED] Sent: Thursday, December 21, 2006 4:23 PM To: CF-Talk Subject: Re: Javascript help i'm pretty sure it'll work. but of course i

Re: Javascript help

2006-12-21 Thread Christopher Jordan
Check out jQuery. This sort of thing would be a snap in jQuery (http://jQuery.com). Doug Brown wrote: > I have a form with 2 text fields and some radio button, and what I would like > to do is clear any text in the text fields if any of the radio buttons are > selected. I can do this with one

Re: Javascript help

2006-12-21 Thread Charlie Griefer
arguments that way, but will calling the field that way work > cross browser? > > I don't know, I still write it using different techniques. > > > -Original Message- > > From: Charlie Griefer [mailto:[EMAIL PROTECTED] > > Sent: Thursday, December 21, 20

RE: Javascript help

2006-12-21 Thread loathe
Also your using a comma and not a semi colon, sorry forgot to add that. > -Original Message- > From: loathe [mailto:[EMAIL PROTECTED] > Sent: Thursday, December 21, 2006 4:07 PM > To: CF-Talk > Subject: RE: Javascript help > > No it won't. > > For that y

RE: Javascript help

2006-12-21 Thread loathe
CF-Talk > Subject: Re: Javascript help > > That should work cross-browser, no? it's pretty standard JS syntax. > > onfocus="statement1; statement2; statement3..." > > as long as each is separated by a semi-colon it should be ok? > > On 12/21/06, loathe &

Re: Javascript help

2006-12-21 Thread Charlie Griefer
Brown [mailto:[EMAIL PROTECTED] > > Sent: Thursday, December 21, 2006 3:51 PM > > To: CF-Talk > > Subject: Re: Javascript help > > > > This seems to work, but will it work in all browser? > > >

RE: Javascript help

2006-12-21 Thread loathe
Doug Brown [mailto:[EMAIL PROTECTED] > Sent: Thursday, December 21, 2006 3:51 PM > To: CF-Talk > Subject: Re: Javascript help > > This seems to work, but will it work in all browser? > > onFocus="document.updClassified.asking1.value = > &#

RE: Javascript help

2006-12-21 Thread loathe
1. Don't use on focus, use on click. Users (well power users) and the disabled tab through form fields, and if you do on focus it will empty to form field even if they don't want to. 2. When dealing with multiple fields I would recommend your using a function in a script block kicked off by the

Re: Javascript help

2006-12-21 Thread Doug Brown
This seems to work, but will it work in all browser? onFocus="document.updClassified.asking1.value = '',document.updClassified.asking2.value = ''" Doug B. ~| Create robust enterprise, web RIAs. Upgrade & integrate Adobe Coldfu

RE: Javascript help

2006-12-21 Thread Bobby Hartsfield
On the radio button... Onclick="document.myform.mytextfield.value='';" If you are saying you want to clear both text fields Onclick="document.myform.mytextfield.value=''; document.myform.myothertextfield.value='';" -Original Message- From: Doug Brown [mailto:[EMAIL PROTECTED] Sen

RE: JavaScript question.

2006-12-20 Thread Andy Matthews
Using jQuery this would be a snap: $('fieldsent#contacts div'); Assuming that the fieldset tag had an ID of contacts. -Original Message- From: Ian Skinner [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 20, 2006 2:33 PM To: CF-Talk Subject: SOT: JavaScript question. Is there any

Re: javascript confirm

2006-11-22 Thread Tom Chiverton
On Wednesday 22 November 2006 14:51, Dan Vega wrote: > Yes indeed, I had a very long day yesterday and I was losing my mind. Sorry > for the dumb question!! Heh, we've all done it, no worries :-) -- Tom Chiverton Helping to administratively monetize eligible web-readiness **

Re: javascript confirm

2006-11-22 Thread Dan Vega
Yes indeed, I had a very long day yesterday and I was losing my mind. Sorry for the dumb question!! On 11/22/06, Tom Chiverton <[EMAIL PROTECTED]> wrote: > > On Tuesday 21 November 2006 20:55, Charlie Griefer wrote: > > CF is server side. JS is client side. > > It never ceases to make me scratch

Re: javascript confirm

2006-11-22 Thread Tom Chiverton
On Tuesday 21 November 2006 20:55, Charlie Griefer wrote: > CF is server side. JS is client side. It never ceases to make me scratch my head that people can start using the one or the other without coming across this fundamental difference. -- Tom Chiverton Helping to augmentatively expedite

RE: Javascript vs. cfscript

2006-09-25 Thread Dan G. Switzer, II
>> the only way i can make it actually display an alert within >> javascript is if i do the following code: >> >> alert("#student.name#"); >> >> if i do the following it doesnt work: >> >> alert(#student.name#); >> >> am i doing something wrong First, in order to get the second example to work, yo

Re: Javascript vs. cfscript

2006-09-25 Thread Richard White
oh i see, sorry i mis-read the post above it, i didnt see the whole alert was surrounded by tags, thanks ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your p

RE: Javascript vs. cfscript

2006-09-25 Thread Sandra Clark
.name#"); Either way will work Sandra Clark == http://www.shayna.com Training in Cascading Style Sheets and Accessibility -Original Message- From: Richard White [mailto:[EMAIL PROTECTED] Sent: Monday, September 25, 2006 12:55 PM To: CF-Talk Subject: Re:

Re: Javascript vs. cfscript

2006-09-25 Thread Jon Clausen
> the only way i can make it actually display an alert within > javascript is if i do the following code: > > alert("#student.name#"); > > if i do the following it doesnt work: > > alert(#student.name#); > > am i doing something wrong Not at all. You can't use a string in Javascript without sur

Re: Javascript vs. cfscript

2006-09-25 Thread Richard White
the only way i can make it actually display an alert within javascript is if i do the following code: alert("#student.name#"); if i do the following it doesnt work: alert(#student.name#); am i doing something wrong ~| Introdu

RE: Javascript vs. cfscript

2006-09-22 Thread Eric Roberts
As long as it is defined before the JavaScript is called...you can reference the structure just as you would in CF. Eric -Original Message- From: Richard White [mailto:[EMAIL PROTECTED] Sent: Thursday, 21 September 2006 13:36 To: CF-Talk Subject: Re: Javascript vs. cfscript i am

Re: Javascript vs. cfscript

2006-09-22 Thread Scott Stroz
You can make your CF structure avcailable in JS by using the toScript() function. This will replicate any CF variable, including complex data types like structures and arrays into the equivalent JavaScript data types. Granted, you still can't use the JS to interact with CF without AJAX, but if all

RE: Javascript vs. cfscript

2006-09-22 Thread Eric Roberts
;/cfset x=1/"); / /script/ What you will get is the text of the tag and not the actual cfset... -Original Message- From: Richard White [mailto:[EMAIL PROTECTED] Sent: Thursday, 21 September 2006 14:24 To: CF-Talk Subject: Re: Javascript vs. cfscript hi, thanks for your reply. I d

RE: Javascript vs. cfscript

2006-09-22 Thread Eric Roberts
: CF-Talk Subject: Re: Javascript vs. cfscript >>just wondering if there was much of a difference between cfscript and javascript. In other words, cfscript is to CFML what javascript is to HTML. -- ___ REUSE CODE! Use custom tags; See http://www.contentb

RE: Javascript vs. cfscript

2006-09-21 Thread Bobby Hartsfield
You cant actually use the CF VARIABLE in Javascript but you can use its value (if that makes sense) alert("#student.name#"); -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.405 / Virus Database: 268.12.6/453 - Release Date: 9/20/2006 ~~

Re: Javascript vs. cfscript

2006-09-21 Thread Richard White
>you're still overlooking the client/server issue. > >when you create your structure, you're doing it on the server. that >has nothing to do with the client until you make it have somethign to >do with the client. > >e.g. > > > > > > var studentName = "#students.name#"; >

Re: Javascript vs. cfscript

2006-09-21 Thread Charlie Griefer
you're still overlooking the client/server issue. when you create your structure, you're doing it on the server. that has nothing to do with the client until you make it have somethign to do with the client. e.g. var studentName = "#students.name#"; alert(stud

Re: Javascript vs. cfscript

2006-09-21 Thread Richard White
> stop thinking in terms of javascript vs cfscript and start thinking > in > terms of client versus server. > > any ColdFusion (be it CFML or cfscript) is going to execute on the > server. by the time the browser renders the page, any and all CF > processing is long since done. > > you can "int

Re: Javascript vs. cfscript

2006-09-21 Thread Richard White
hi, thanks for your reply. I dont really understand how this works, i tried to use the code you supplied but it didnt do as expected. can i not create a variable in a cfset tag and then use it in the javascript. if i cant do this how can i get around it? i tried playing around with the code tha

Re: Javascript vs. cfscript

2006-09-21 Thread Charlie Griefer
stop thinking in terms of javascript vs cfscript and start thinking in terms of client versus server. any ColdFusion (be it CFML or cfscript) is going to execute on the server. by the time the browser renders the page, any and all CF processing is long since done. you can "integrate" CF and JS j

RE: Javascript vs. cfscript

2006-09-21 Thread Matt Quackenbush
Matt Quackenbush [mailto:[EMAIL PROTECTED] Sent: Thursday, September 21, 2006 1:50 PM To: CF-Talk Subject: RE: Javascript vs. cfscript Javascript is client-side. Cfscript is server-side. They do NOT communicate with each other. The only way to get javascript to talk to CF is to use AJAX. -Ori

RE: Javascript vs. cfscript

2006-09-21 Thread Matt Quackenbush
: Re: Javascript vs. cfscript i am wondering if you can intergrate the 2. Basically i have a structure in coldfusion which holds all the information ready to be saved, however i want to reference this in javascript. I need to reference it in a javascript function which says that if the structure

Re: Javascript vs. cfscript

2006-09-21 Thread Richard White
i am wondering if you can intergrate the 2. Basically i have a structure in coldfusion which holds all the information ready to be saved, however i want to reference this in javascript. I need to reference it in a javascript function which says that if the structure value is equal to x then doc

Re: Javascript vs. cfscript

2006-09-21 Thread Claude Schneegans
>>just wondering if there was much of a difference between cfscript and javascript. In other words, cfscript is to CFML what javascript is to HTML. -- ___ REUSE CODE! Use custom tags; See http://www.contentbox.com/claude/customtags/tagstore.cfm (Please send

Re: Javascript vs. cfscript

2006-09-21 Thread Richard White
that makes alot of sense, thanks for your help :) ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://w

Re: Javascript vs. cfscript

2006-09-21 Thread D F
cfscript is just a way to use the coldfusion language in script form. Javascript as stated before runs on the users browser generally speaking. And so you use that primarily for user only functions ( if we dont count asyncronous calls with the request object etc ).

Re: Javascript vs. cfscript

2006-09-21 Thread James Holmes
cfscript runs on the server, driving ColdFusion. Javascript runs on the client - after CF has done its job. On 9/21/06, Richard White <[EMAIL PROTECTED]> wrote: > hi, i am new to coldfusion, in fact even scripting, and just wondering if > there was much of a difference between cfscript and javasc

RE: Javascript - Refresh a window

2006-09-20 Thread Mosh Teitelbaum
Dave Francis wrote: > I have a window from which I open pop-up with JS > window.open();. When I > close this pop-up - self.close(); - is there any way to force a refresh of > the "parent" window? Dave: When a window creates a pop-up, it creates within the pop-up a reference back to the open

RE: JavaScript

2006-07-17 Thread Snake
U could write a function to loop over the array and return the array index of the element your looking for. -Original Message- From: Ian Skinner [mailto:[EMAIL PROTECTED] Sent: 17 July 2006 22:59 To: CF-Talk Subject: OT: JavaScript Is there a function or property to will identify what p

RE: JavaScript

2006-07-17 Thread Ben Nadel
Ian, In the Javascript Bible Gold Edition, there is no mention of such an index (at least that I can remember reading). This might be a simple funciton for such a thing: function GetIndex( objAny ){ var intIndex = 0; // Crawl up the sibling chain. for ( intIndex = 0

RE: Javascript image reorder package

2006-05-22 Thread Eric Roberts
Try dynamicdrive.com Eric -Original Message- From: Philip K. Dunn [mailto:[EMAIL PROTECTED] Sent: Monday, 22 May 2006 12:08 To: CF-Talk Subject: Javascript image reorder package Anyone know of a javascript package available to re-order images on-screen? ~

RE: Javascript help

2006-04-20 Thread Bobby Hartsfield
il 20, 2006 11:01 AM To: CF-Talk Subject: RE: Javascript help Bobby, I cannot seem to get the onCLick to fire in my browser. Granted I am using IE in Homesite. But, my concern with this solution is that I feel (without testing) that it is string dependent. divCont.setAttribute('onClic

RE: Javascript help

2006-04-20 Thread Ben Nadel
going to try to force intI to a string, which works for simple values, but will not work with complex values. ... Ben Nadel www.bennadel.com -Original Message- From: Bobby Hartsfield [mailto:[EMAIL PROTECTED] Sent: Thursday, April 20, 2006 10:49 AM To: CF-Talk Subject

RE: Javascript help

2006-04-20 Thread Bobby Hartsfield
PS... in your original code > It's like they all point to > one variable and then get > updated for each loop of the FOR iteration They do. Each of your onclicks triggered the same function that alerted the same variable. The last time the variable was set, it was 10. So they are all 10. ..

RE: Javascript help

2006-04-20 Thread Bobby Hartsfield
Is this what you were going for? for (IntI = 0; IntI < 10; IntI++) { divCont = document.createElement('DIV'); divCont.id = 'div' + IntI; divCont.appendChild(document.createElement('BR'));

Re: Javascript help

2006-04-20 Thread Rob Wilkerson
ber. > > ... > Ben Nadel > www.bennadel.com > > -Original Message- > From: Bobby Hartsfield [mailto:[EMAIL PROTECTED] > Sent: Thursday, April 20, 2006 10:06 AM > To: CF-Talk > Subject: RE: Javascript help > > The onclicks a

RE: Javascript help

2006-04-20 Thread Bobby Hartsfield
Maybe I'll get caffeine in me before I answer the next one. I'll take a closer look ;-) ..:.:.:.:.:.:.:.:.:.:.:.:. Bobby Hartsfield http://acoderslife.com -Original Message- From: Ben Nadel [mailto:[EMAIL PROTECTED] Sent: Thursday, April 20, 2006 9:35 AM To: CF-Talk Subject: OT: J

RE: Javascript help

2006-04-20 Thread Ben Nadel
umber. ... Ben Nadel www.bennadel.com -Original Message- From: Bobby Hartsfield [mailto:[EMAIL PROTECTED] Sent: Thursday, April 20, 2006 10:06 AM To: CF-Talk Subject: RE: Javascript help The onclicks are outside of the loop ...:.:.:.:.:.:.:.:.:.:.:.:. Bobby Hartsfield http://acoderslif

RE: Javascript help

2006-04-20 Thread Bobby Hartsfield
The onclicks are outside of the loop ..:.:.:.:.:.:.:.:.:.:.:.:. Bobby Hartsfield http://acoderslife.com -Original Message- From: Ben Nadel [mailto:[EMAIL PROTECTED] Sent: Thursday, April 20, 2006 9:35 AM To: CF-Talk Subject: OT: Javascript help Not really for CF, but though someo

RE: JavaScript Scoping Gurus?

2006-03-21 Thread Jim Davis
> -Original Message- > From: Dan G. Switzer, II [mailto:[EMAIL PROTECTED] > Sent: Tuesday, March 21, 2006 11:10 AM > To: CF-Talk > Subject: RE: JavaScript Scoping Gurus? > > Jim, > > What I've always done to counter this problem is to create an API

RE: JavaScript Scoping Gurus?

2006-03-21 Thread Dan G. Switzer, II
Jim, What I've always done to counter this problem is to create an API class--which I use to monitor instances of each class and hold "global" functionality. For example: function _HRPApi(){ this.instance = []; } _HRPApi.prototype.register = function (obj){ var iInstance = this.i

RE: Javascript character errors outputting HTML

2006-03-09 Thread Dan G. Switzer, II
Chris, >So the tag that creates each node looks something like this: > #Name#> Try: #Name#"> The double quotes ("") are escaped within CF and are output as a single quotation. -Dan ~| Message: http://www.houseoffusion.com/li

RE: Javascript character errors outputting HTML

2006-03-08 Thread Michael T. Tangorre
> From: Chris Musial [mailto:[EMAIL PROTECTED] > So the tag that creates each node looks something like this: > #Name#> #Name#") /> ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:234778 Archives: http://www.ho

RE: javascript submit form and then location in same function

2006-02-20 Thread Jeremy Bunton
slick just more code to add to each page. Jeremy -Original Message- From: Josh Nathanson [mailto:[EMAIL PROTECTED] Sent: Monday, February 20, 2006 2:03 PM To: CF-Talk Subject: Re: javascript submit form and then location in same function Hi Jeremy, When you do "window.document.thef

Re: javascript submit form and then location in same function

2006-02-20 Thread Josh Nathanson
Hi Jeremy, When you do "window.document.theform.submit()", it will submit the form to whatever file you have in your form action attribute , before it hits the window.document.location=url line in your js code. So, you'll probably need to do a little more work to send the user to the right pla

<    1   2   3   4   5   6   7   8   9   10   >