Re: OT - JS Question

2012-08-29 Thread .jonah
Trigger the form serialization and AJAX form submission onchange and then trigger the popup from the success callback to the AJAX call. Are you doing this with vanilla.js or using a library like jQuery? On 8/28/12 3:30 PM, Bruce Sorge wrote: Can someone point me to a site or a sample of JS

RE: OT - JS Question

2012-08-29 Thread Stephens, Larry V
I suggest jquery for formatting the DOB. You can also bind the DOB field with jquery to trigger an Ajax call then use the callback to pop up your message. If you haven't used these that probably sounds like gibberish. Contact me off list if it does. -Original Message- From: Bruce

Re: OT JS question

2010-03-05 Thread Raj Vijay
Can you try this, (parseInt(,10)||0) Raj Thanks for the suggestions but if I do this I get NaN (not a number I am guessing). parseInt(FOO,10); parseInt(,10); http://www.w3schools.com/jsref/jsref_parseInt.asp var value = 15; parseInt(value,10); On Thu, Mar 4, 2010 at 1:37 PM, Chad Gray

Re: OT JS question

2010-03-04 Thread Jake Churchill
http://www.w3schools.com/jsref/jsref_parseInt.asp var value = 15; parseInt(value,10); On Thu, Mar 4, 2010 at 1:37 PM, Chad Gray cg...@careyweb.com wrote: Anyone know if there is an equivalent to CF’s val() in Javascript? I want to check a JS variable and set it to zero if it is blank.

RE: OT JS question

2010-03-04 Thread Andy Matthews
parseInt might do the trick. parseInt(var) -Original Message- From: Chad Gray [mailto:cg...@careyweb.com] Sent: Thursday, March 04, 2010 1:37 PM To: cf-talk Subject: OT JS question Anyone know if there is an equivalent to CF's val() in Javascript? I want to check a JS variable and

RE: OT JS question

2010-03-04 Thread Chad Gray
Thanks for the suggestions but if I do this I get NaN (not a number I am guessing). parseInt(FOO,10); parseInt(,10); -Original Message- From: Jake Churchill [mailto:reyna...@gmail.com] Sent: Thursday, March 04, 2010 2:40 PM To: cf-talk Subject: Re: OT JS question http

RE: OT JS question

2010-03-04 Thread Chad Gray
Ah I think I found one that will work Number(); I will test it out. Thanks for the help! -Original Message- From: Chad Gray [mailto:cg...@careyweb.com] Sent: Thursday, March 04, 2010 3:04 PM To: cf-talk Subject: RE: OT JS question Thanks for the suggestions but if I do this I get

Re: OT: JS Question Hide/Show Form Elements

2007-08-03 Thread Eric Haskins
We use Prototype. It works in just about everything we have thrown at it. Eric On 8/2/07, Che Vilnonis [EMAIL PROTECTED] wrote: Anyone know of a JS that works on *most* browsers that will allow me to hide/show sections of a form depending on what radio button is clicked? I've found a few,

Re: OT: JS Question

2003-06-29 Thread Brook Davies
Just call the function that does your validation function validateform(){ if (x!=''){ document.ViewInfo.submit();} { else{ alert('bad form, bad...'); } In your button you would just call a href=javascript:validateform();/a Brook At 06:42 PM 6/29/2003 -0500, you wrote: Say, I have this enter

RE: OT - JS Question

2003-02-24 Thread Scott Wilhelm
Maybe set a hidden field up in the form, and have an onChange refer to a function that will update that hidden field so that if it changes it would change it from change=no to change=yes. Then, put an onExit (or onUnload...can't remember which off the top of my head), to refer to another function

RE: OT - JS Question

2003-02-24 Thread David Collie (itndac)
script var bChangeFlag = False; function udfFlagChange() { bChangeFlag = True; } function udfCheckChange() { if (bChangeFlag == True) { alert('You changed somethings'); return false; } else { return true; } } /script

Re: RE: OT - JS Question

2003-02-24 Thread ksuh
displayed. - Original Message - From: David Collie (itndac) [EMAIL PROTECTED] Date: Monday, February 24, 2003 8:23 am Subject: RE: OT - JS Question script var bChangeFlag = False; function udfFlagChange() { bChangeFlag = True; } function udfCheckChange

Re: OT js question (child window passing back to parent)

2002-10-18 Thread Robert Polickoski
Tim, window.opener is the parent object. You can set any form element from the child window using the Javascript statement window.opener.formname.inputelementname.value = document.formname.fieldname.value; I hope this helps. -- Original Message --

RE: OT js question (child window passing back to parent)

2002-10-18 Thread Mosh Teitelbaum
Tim Do wrote: Could anybody show me how I would pass values from a child window back to the parent window? I have a form with a link that spawns a window, and from the new page, the user selects some checkboxes. I wanted to pass the values back into a form field in the parent window. I'm

RE: OT js question (child window passing back to parent)

2002-10-18 Thread Gene Kraybill
Looks like you may have mis-referenced your child form name -- it's actually actionCode not actionReason. Gene -Original Message- From: Tim Do [mailto:TDo;lahd.lacity.org] SNIP Parent Window: FORM NAME=newCaseInfo ACTION=index.cfm?action=caseAnalysissubaction=createNewCase

RE: OT js question (child window passing back to parent)

2002-10-18 Thread Tim Do
, 2002 8:58 AM To: CF-Talk Subject: RE: OT js question (child window passing back to parent) Looks like you may have mis-referenced your child form name -- it's actually actionCode not actionReason. Gene -Original Message- From: Tim Do [mailto:TDo;lahd.lacity.org] SNIP Parent Window

RE: OT JS Question

2002-07-26 Thread Van Vliet, Scott
Two things: 1) Use window.opener instead of just opener. Also make sure that the parent window that opened this child window is still opened (otherwise, it will not be defined. 2) name is a property of the form object, so if you are trying to set the value of a form field called name, it might

Re: OT JS Question

2002-07-26 Thread Marlon Moyer
Have you tried self.opener Kris Pilles wrote: Any idea why this isn't working??? Tells me opener.document is not defined function setForm() { opener.document.Form1.name.value = document.name2.employees.value; self.close(); return false; } //--/script

Re: OT JS Question

2002-07-26 Thread S . Isaac Dealey
Kris Pilles wrote: Any idea why this isn't working??? Tells me opener.document is not defined function setForm() { opener.document.Form1.name.value = document.name2.employees.value; self.close(); return false; } //--/script You might want to qualify opener as window.opener

Re: OT: JS Question

2002-03-28 Thread BEN MORRIS
The last DC CFUG had a similar presentation by Steve Seaquist of Contemporary Technology. He made a simple cross-browser program that does this sort of thing. I don't think the code is posted on the cfug web site: http://www.cfugorama.com/cfugorama/dccfug/index.cfm Maybe one of the figleaf

Re: OT: JS Question

2001-01-15 Thread Trace Faber
Hi Dave, This has worked for me... script language="Javascript" !-- function cursorForm() { window.document.formName.fieldName.focus() return true; } -- /script body onLoad="cursorForm()" /body - Original Message - From: David Hannum [EMAIL PROTECTED] To: CF-Talk [EMAIL