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
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
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
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 CFs val() in Javascript?
I want to check a JS variable and set it to zero if it is blank.
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
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
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
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,
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
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
script
var bChangeFlag = False;
function udfFlagChange() {
bChangeFlag = True;
}
function udfCheckChange() {
if (bChangeFlag == True) {
alert('You changed somethings');
return false;
} else {
return true;
}
}
/script
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
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 --
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
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
, 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
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
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
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
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
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
21 matches
Mail list logo