Re: JS Question

2009-04-08 Thread Sam
Thanks Jim. On Tue, Apr 7, 2009 at 8:49 PM, Jim Davis wrote: > If you're looking for "short" you might not like this, but my date > extensions will definitely do it: > > http://www.depressedpress.com/Content/Development/JavaScript/Extensions/DP_D > ateExtensions/Index.cfm > > There's a lot of f

Re: JS Question

2009-04-07 Thread Michael Grant
Sam, are you freaking serious? It's 122 lines of tabbed, formatted code. Remove spaces and line breaks and you're probably down to three. Put it in an external js and you never even look at it. You call the function with a single line of code Date.format(''dd/mm/"). It's input is formatted alm

RE: JS Question

2009-04-07 Thread Jim Davis
> -Original Message- > From: Sam [mailto:sammyc...@gmail.com] > Sent: Tuesday, April 07, 2009 3:35 PM > To: cf-community > Subject: JS Question > > > I'm using Date.parse(myDate) to compare dates and store in a hidden > form field. Now I found out I need

Re: JS Question

2009-04-07 Thread Sam
I was looking for a shorter version On Tue, Apr 7, 2009 at 12:45 PM, Michael Grant wrote: > > That's odd. The first result when googling "javascript format date" looked > pretty helpful. > > http://blog.stevenlevithan.com/archives/date-time-format > ~

Re: JS Question

2009-04-07 Thread Michael Grant
That's odd. The first result when googling "javascript format date" looked pretty helpful. http://blog.stevenlevithan.com/archives/date-time-format On Tue, Apr 7, 2009 at 3:34 PM, Sam wrote: > > I'm using Date.parse(myDate) to compare dates and store in a hidden > form field. Now I found out I

JS Question

2009-04-07 Thread Sam
I'm using Date.parse(myDate) to compare dates and store in a hidden form field. Now I found out I need to change it back to a formatted date for display. Google is not helping me. Thanks ~| Adobe® ColdFusion® 8 software 8 is th

RE: JS Question

2007-11-08 Thread James Smith
- Jay -Original Message- From: morgan l [mailto:[EMAIL PROTECTED] Sent: 07 November 2007 17:52 To: CF-Community Subject: Re: JS Question function updateCC(rowNum) { document.prices("cc" + rowNum).value = document.prices("cost" + rowNum).value * 1.2; } But it's wid

Re: JS Question

2007-11-07 Thread morgan l
Yeah, I assumed that the single exception was a simplification of the problem, instead of a hard-fast rule of only ever one exception. In my experience, there's rarely ever a single exception, and when there is only a single exception today, tomorrow, the boss wants another one added. On 11/7/07,

Re: JS Question

2007-11-07 Thread Charlie Griefer
On Nov 7, 2007 9:51 AM, morgan l <[EMAIL PROTECTED]> wrote: > function updateCC(rowNum) { >document.prices("cc" + rowNum).value = document.prices("cost" + > rowNum).value * 1.2; > } i thought about that... but he says the only exception is '4'. your code assumes that the form field to man

Re: JS Question

2007-11-07 Thread morgan l
function updateCC(rowNum) { document.prices("cc" + rowNum).value = document.prices("cost" + rowNum).value * 1.2; } But it's widely considered better practice to use document.getElementById() rather than document.formname to reference form fields. To do so, just ad id="" to the fields, and t

Re: JS Question

2007-11-07 Thread Charlie Griefer
function updateCC(rowNum) { if (rowNum == 4) { document.prices.cc4.value = document.prices.cost4.value * 1.2; } else { document.prices.cc1.value = document.prices.cost1.value * 1.2; } } On Nov 7, 2007 9:02 AM, James Smith <[EMAIL PROTECTED]> wrote: > Quick questi

JS Question

2007-11-07 Thread James Smith
Quick question I am sure someone will answer in no time... How do I modify the function... function updateCC(rowNum) { document.prices.cc1.value = document.prices.cost1.value * 1.2; } So that if 'rowNum' is 4 then 'cc1' becomes 'cc4' and 'cost1' becomes 'cost4'. -- Jay No virus found i

RE: JS Question

2006-01-22 Thread Tim Heald
Wasn't that, I screwed up something in the HTML. BTW the return will throw an error as well. > -Original Message- > From: Charlie Griefer [mailto:[EMAIL PROTECTED] > Sent: Sunday, January 22, 2006 9:41 PM > To: CF-Community > Subject: Re: JS Question > &g

RE: JS Question

2006-01-22 Thread Tim Heald
sage- > From: Michael T. Tangorre [mailto:[EMAIL PROTECTED] > Sent: Sunday, January 22, 2006 9:44 PM > To: CF-Community > Subject: RE: JS Question > > > From: Tim Heald [mailto:[EMAIL PROTECTED] Can anyone > tell me why > > this isn't working in IE? > &

RE: JS Question

2006-01-22 Thread Michael T. Tangorre
> From: Tim Heald [mailto:[EMAIL PROTECTED] > Can anyone tell me why this isn't working in IE? Make sure you have the JS being called after the form loads or wrap the entire block in a function and then attach that to the onsubmit event handler. I just loaded it up in IE over here and it bombed w

RE: JS Question

2006-01-22 Thread Tim Heald
Maybe, the error occurs onLoad though. I'll try it. Thanks. > -Original Message- > From: Charlie Griefer [mailto:[EMAIL PROTECTED] > Sent: Sunday, January 22, 2006 9:41 PM > To: CF-Community > Subject: Re: JS Question > > i think you need to say: >

Re: JS Question

2006-01-22 Thread Charlie Griefer
i think you need to say: thisForm.onsubmit = return checkForm; need the return keyword in there (?) On 1/22/06, Tim Heald <[EMAIL PROTECTED]> wrote: > Can anyone tell me why this isn't working in IE? > > Works fine in FF, but it's an IE only error, and of course you can't get > crap in IE for an

JS Question

2006-01-22 Thread Tim Heald
Can anyone tell me why this isn't working in IE? Works fine in FF, but it's an IE only error, and of course you can't get crap in IE for an error message. var thisForm = document.forms["qAction"]; var myField = thisForm.coop_int;

Re: JS Question

2005-11-29 Thread Paul Ihrig
qforms has great js validation pengoworks.com ~| Discover CFTicket - The leading ColdFusion Help Desk and Trouble Ticket application http://www.houseoffusion.com/banners/view.cfm?bannerid=48 Message: http://www.houseoffusion.c

Re: JS Question

2005-11-29 Thread Marlon Moyer
; -Original Message- > From: Adkins, Randy [mailto:[EMAIL PROTECTED] > Sent: Tuesday, November 29, 2005 4:09 PM > To: CF-Community > Subject: JS Question > > Dose anyone have a simple JS script that validates the FIRST character > of a field to make sure it is an ALPHA cha

RE: JS Question

2005-11-29 Thread Adkins, Randy
Never mind I think I got it. -Original Message- From: Adkins, Randy [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 29, 2005 4:09 PM To: CF-Community Subject: JS Question Dose anyone have a simple JS script that validates the FIRST character of a field to make sure it is an ALPHA

JS Question

2005-11-29 Thread Adkins, Randy
Dose anyone have a simple JS script that validates the FIRST character of a field to make sure it is an ALPHA character. My initial thought was to validate the ASCII value of it, but there is no ASC function in JS. I know this is something that should be relatively simple but it is escaping me

Re: js question

2005-01-10 Thread Adam Haskell
There's an orielly book out there probably the best JS book you can find. I'll get the title and stuff tomarrow at work if interested. Just think of JS as a scalled down Object oriented programming language and things will start to click. Adam H On Mon, 10 Jan 2005 15:51:48 -0400, joe zanter <[E

Re: js question

2005-01-10 Thread joe zanter
Thanks, Adam. I'm, learning js as I need it. The more I learn, the more I see the need for it, though. I think I'll work on trying to understand some examples, rather than just boldly coding. >Ok a comple of things wrong...first off JS arrays typically start at 0. >You should pass objects to

Re: js question

2005-01-10 Thread Adam Haskell
Ok a comple of things wrong...first off JS arrays typically start at 0. You should pass objects to your function, not names, so you would would want to pass this and you do not need to pass the form name. Your field_text array needs to be initialized before hand too. I also changed the array to an

Re: js question

2005-01-10 Thread Adam Haskell
Ok a comple of things wrong...first off JS arrays typically start at 0. You should pass objects to your function, not names, so you would would want to pass this and you do not need to pass the form name. Your field_text array needs to be initialized before hand too. I also changed the array to an

js question

2005-01-10 Thread joe zanter
Hi All, Took the littlun's out sledding this weekend-- geat time! My daughter (7) had something of a hard time with the concept of having to walk up after each ride down. I can see her point. I'm missing something in the code below... It's a script which is supposed to clear the default text i

RE: JS Question

2004-06-09 Thread Tangorre, Michael
br> > tblref.style.display = 'block';<br> >   }<br> > }<br> > > > > > > ... > > > Hope this helps! > > Jeff Garza > > - Original Message - > From: Tangorre, Michael >

Re: JS Question

2004-06-09 Thread Jeff Garza
ef.style.display = 'inline';<br>   } else {<br>     tblref.style.display = 'block';<br>   }<br> }<br> ... Hope this helps! Jeff Garza - Original Message - From: Tangorre, Michael To: CF-Community Sent: Wednesday, June 09, 2004 11:18

Re: JS Question

2004-06-09 Thread [EMAIL PROTECTED]
So, when you view source of the page, is the value you expect to see actually there?  Do you know what is exactly getting passed into the function?  I.e., is it the string "document.getElementByID(tbl4)"?   You'd need to change this into an  object somehow.  I'd try the eval() function. i.e.,

RE: JS Question

2004-06-09 Thread Jerry Johnson
Grab the link and the table from the HTM after it is rendered to the browser and send us that. Let's make sure CF is outputting what you think it should be. Jerry Johnson >>> [EMAIL PROTECTED] 06/09/04 02:28PM >>> > And out of curiosity, I assume it works when you hard-code > the value to a kn

RE: JS Question

2004-06-09 Thread Tangorre, Michael
> And out of curiosity, I assume it works when you hard-code > the value to a known object? Yeah... It's very weird. [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Re: JS Question

2004-06-09 Thread [EMAIL PROTECTED]
And out of curiosity, I assume it works when you hard-code the value to a known object? Robyn Tangorre, Michael wrote: >Ok, I posted this over at CF-TALK but no luck... > >I keep getting an object expected error... but I thought I was passing the >object in! > > > > > >... > > > >Here is

RE: JS Question

2004-06-09 Thread Lyons, Larry
Once in a while I can figure stuff out. larry > -Original Message- > From: Tangorre, Michael [mailto:[EMAIL PROTECTED] > Sent: Wednesday, June 09, 2004 2:23 PM > To: CF-Community > Subject: RE: JS Question > > > > Just a stab in the dark but did you remember

RE: JS Question

2004-06-09 Thread Tangorre, Michael
> Just a stab in the dark but did you remember to surround your > tbl#x# with cfoutputs's? Yupper. :-) [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

RE: JS Question

2004-06-09 Thread Tony Weeg
dog. can you make it work with hardcoded values, and a mock table? tw -Original Message- From: Tangorre, Michael [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 09, 2004 2:19 PM To: CF-Community Subject: JS Question Ok, I posted this over at CF-TALK but no luck... I keep getting an

RE: JS Question

2004-06-09 Thread Lyons, Larry
Just a stab in the dark but did you remember to surround your tbl#x# with cfoutputs's? larry > -Original Message- > From: Tangorre, Michael [mailto:[EMAIL PROTECTED] > Sent: Wednesday, June 09, 2004 2:19 PM > To: CF-Community > Subject: JS Question > > >

JS Question

2004-06-09 Thread Tangorre, Michael
Ok, I posted this over at CF-TALK but no luck... I keep getting an object expected error... but I thought I was passing the object in! ... Here is my JS function... toggleDrillDown(tblObj) { if(document.getElementById(tblObj).style.display == 'block')     document.getElemen

Re: JS Question

2002-12-26 Thread jon hall
Something like this? function init() { divObj = document.all.menuDiv; divObj.onmouseover = function() { vis(divObj); }; } function vis(elem) { alert(elem.id); } window.onload = init; btw, replacing one line can also make this cross browser all the way back to NS4. Ins

RE: JS Question

2002-12-26 Thread Haggerty, Mike
le.visibility = 'hidden'; } } //--> Hello I am the DIV tag. -Original Message- From: Timothy Heald [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 26, 2002 3:24 PM To: CF-Community Subject: JS Question Hey, When I want to set a function for an e

JS Question

2002-12-26 Thread Timothy Heald
Hey, When I want to set a function for an event how do I pass it an object? EX: //alias document d = document; //get the div thisDiv = d.all.menuDiv; //give it the mouseover function thisDiv.onmouseover = changeVis; end ex Now I would ass

JS question: specifying an iframe target nested in a target

2001-09-17 Thread webmaster
Dear friends, i have a navigational system that uses the My question is that i have other nested iframes within the main iframe, and need to know how to state the javascript. ["Comments Form","javascript:top.boxFrame.location='form.cfm'",1,0,0] I need to access the seventhframe target that i