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 that does the following:

 User enters first name, last name and birth date (birthdate is in a specific 
 format by using drop downs and not free text).
 Once the birth year has been selected, a query is triggered to check for the 
 existence of the same information that was just entered.
 If a match is found, a pop up is displayed stating that they have already 
 registered.
 If no match, nothing happens.


 Thanks,

 Bruce

 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:352334
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


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 Sorge [mailto:sor...@gmail.com] 
Sent: Tuesday, August 28, 2012 6:30 PM
To: cf-talk
Subject: OT - JS Question


Can someone point me to a site or a sample of JS that does the following:

User enters first name, last name and birth date (birthdate is in a specific 
format by using drop downs and not free text).
Once the birth year has been selected, a query is triggered to check for the 
existence of the same information that was just entered. 
If a match is found, a pop up is displayed stating that they have already 
registered.
If no match, nothing happens.


Thanks,

Bruce



~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:352335
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


OT - JS Question

2012-08-28 Thread Bruce Sorge

Can someone point me to a site or a sample of JS that does the following:

User enters first name, last name and birth date (birthdate is in a specific 
format by using drop downs and not free text).
Once the birth year has been selected, a query is triggered to check for the 
existence of the same information that was just entered. 
If a match is found, a pop up is displayed stating that they have already 
registered.
If no match, nothing happens.


Thanks,

Bruce

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:352328
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


OT - JS question

2012-08-12 Thread Bruce Sorge

I have a form where I am adding administrators to a site. Site administrators 
and resort administrators. Rather than have two separate forms for this I 
thought that what I would do is when they are adding an admin, if they select a 
resort admin, then another select list appears with a list of resorts. 
Otherwise if they are a site admin they do not need ot select a resort. I have 
looked on line for JS to do this but all I can find is something that shows 
both select lists, and if you select a certain item in the first one then the 
second one populates, otherwise the list is empty. Admittedly I am not all that 
savvy at writing JS code. Has anyone done this before and would you be willing 
to share the code?


Thanks,

Bruce


~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:352116
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


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 cg...@careyweb.com wrote: 

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:331375
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


OT JS question

2010-03-04 Thread Chad Gray

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

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:331359
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


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.

 Thanks

 

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:331360
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


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 set it to zero if it is blank.
 
Thanks



~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:331362
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


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

 Thanks

 



~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:331365
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


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

 Thanks

 





~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:331366
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


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, but they don't seem to work with all browsers. Sent at 2:52
 PM
 EST.

 Thanks, Che



 

~|
Get the answers you are looking for on the ColdFusion Labs
Forum direct from active programmers and developers.
http://www.adobe.com/cfusion/webforums/forum/categories.cfm?forumid-72catid=648

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:285280
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


OT: JS Question Hide/Show Form Elements

2007-08-02 Thread Che Vilnonis
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, but they don't seem to work with all browsers. Sent at 2:52 PM
EST.

Thanks, Che



~|
Get involved in the latest ColdFusion discussions, product
development sharing, and articles on the Adobe Labs wiki.
http://labs/adobe.com/wiki/index.php/ColdFusion_8

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:285234
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


ot: js question :: validate :: select 3 out of 5 fields

2003-08-14 Thread Ihrig Paul E Cont 88 ABW/EM
ok, Dan switzer started me off with the js below.
which forces user to select 1 of 5 fields. that works just like he intended it to!

i would like 3 of 5 to be selected.

i have messed with all the 0's and 1's with varied results...
but none right..

so need to ask for some one out there with js skills to look at it.
i cant really tell what bits to fudge with...
thanks
-paul



function init(){
oForm = new qForm(frmExample);

oForm.apple.validateAtLeastOne(apple,orange,grape,banana,watermelon);
}

// [start] validation routine
function _f_isAtLeastOne(_f){
var sFields = this.name + ((typeof _f == string) ? , + _removeSpaces(_f) : 
);
var aFields = sFields.split(,), v = new Array(), d = new Array(), x = ,;

for( var i=0; i  aFields.length; i++ ){
if( !this.qForm[aFields[i]] ) return alert(The field name \ + 
aFields[i] + \ does not exist.);
// store the value in an array
v[v.length] = this.qForm[aFields[i]].getValue();
// if the field name is already in the list, don't add it
if( x.indexOf(, + aFields[i] + ,) == -1 ){
d[d.length] = this.qForm[aFields[i]].description;
x += aFields[i] + ,;
}
}

// if all of the form fields has empty lengths, then throw
// an error message to the page
if( v.join().length == 0. ){
this.error = At least Three of the following fields is required:\n   
 + d.join(, );
for( i=0; i  aFields.length; i++ ){
if( qFormAPI.useErrorColorCoding  
this.qForm[aFields[i]].obj.style ) this.qForm[aFields[i]].obj.style.backgroundColor = 
qFormAPI.errorColor;
}
}
}
_addValidator(isAtLeastOne, _f_isAtLeastOne, true);
// [ end ] validation routine
//--
/script
~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq

Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. 
http://www.fusionauthority.com/ads.cfm

Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4



OT: JS Question

2003-06-29 Thread Bruce Sorge
Say,
I have this enter image that looks like this:
a href=javascript:document.ViewerInfo.submit();img src=images/EnterButton.gif 
border=0

What I want to do is to also be able to call my form validation JavaScript when the 
user submits the form. I tried using an onSubmit routine in the Form tag, but that is 
not working. Any thoughs on this?

Thanks,

Bruce
~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq

This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.
http://www.cfhosting.com

Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4



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 image that looks like this:
a href=javascript:document.ViewerInfo.submit();img 
src=images/EnterButton.gif border=0

What I want to do is to also be able to call my form validation JavaScript 
when the user submits the form. I tried using an onSubmit routine in the 
Form tag, but that is not working. Any thoughs on this?

Thanks,

Bruce

~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq

Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. 
http://www.fusionauthority.com/ads.cfm

Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4



OT: js question

2003-05-31 Thread Ewok
im trying to get the displayed text from a select field (not the value)

select name=blah size=1
option value=1Option One/option
/select

I know document.formname.blah.value would return 1, is there a way to
return Option One when that option is selected?

~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq

Host with the leader in ColdFusion hosting. 
Voted #1 ColdFusion host by CF Developers. 
Offering shared and dedicated hosting options. 
www.cfxhosting.com/default.cfm?redirect=10481

Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4



OT - JS Question

2003-02-24 Thread Tangorre, Michael
Hey everyone, sorry for the OT post, but I figure someone might have a solution to my 
problem.
 
I need a way to alert the user that they have made changes to one or more form fields 
if they attempt to exit the page before saving.
 
does anyone know of a quick solution to this?
 
Thanks,
 
Mke

~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Get the mailserver that powers this list at http://www.coolfusion.com

Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4



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 that will check this field.  If it's change=no, then it
closes.  If it's change=yes, then it will alert the user with a yes/no
box.  Then go from there.

HTH.

Scott

 -Original Message-
 From: Tangorre, Michael [mailto:[EMAIL PROTECTED]
 Sent: Monday, February 24, 2003 10:11 AM
 To: CF-Talk
 Subject: OT - JS Question
 
 
 Hey everyone, sorry for the OT post, but I figure someone 
 might have a solution to my problem.
  
 I need a way to alert the user that they have made changes to 
 one or more form fields if they attempt to exit the page 
 before saving.
  
 does anyone know of a quick solution to this?
  
 Thanks,
  
 Mke
 
 
~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4



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

body onUnload=udfCheckChange()

Every input element would have onChange=udfFlagChange() attribute added to it

Above is very hacked and don't know if the returning false from the onUnload will work 
in not letting them move on the page... also in my experience, onChange doesn't work 
too well either

onUnload doesn't work very well anyways

dc

-Original Message-
From: Tangorre, Michael [mailto:[EMAIL PROTECTED]
Sent: 24 February 2003 15:11
To: CF-Talk
Subject: OT - JS Question


Hey everyone, sorry for the OT post, but I figure someone might have a solution to my 
problem.
 
I need a way to alert the user that they have made changes to one or more form fields 
if they attempt to exit the page before saving.
 
does anyone know of a quick solution to this?
 
Thanks,
 
Mke


~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Get the mailserver that powers this list at http://www.coolfusion.com

Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4



Re: RE: OT - JS Question

2003-02-24 Thread ksuh
The onUnload event doesn't bubble, which means that you can't abort the operation of 
the page using onUnload.

IE has an event called onBeforeUnload that does what you need, but it always displays 
a confirmation box, and you can only add text to the box - there's fixed text on it 
that's always 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() {
   if (bChangeFlag == True) {
   alert('You changed somethings');
   return false;
   } else {
   return true;
   }
 }
 /script
 
 body onUnload=udfCheckChange()
 
 Every input element would have onChange=udfFlagChange() 
 attribute added to it
 
 Above is very hacked and don't know if the returning false from 
 the onUnload will work in not letting them move on the page... 
 also in my experience, onChange doesn't work too well either
 
 onUnload doesn't work very well anyways
 
 dc
 
 -Original Message-
 From: Tangorre, Michael [mailto:[EMAIL PROTECTED]
 Sent: 24 February 2003 15:11
 To: CF-Talk
 Subject: OT - JS Question
 
 
 Hey everyone, sorry for the OT post, but I figure someone might 
 have a solution to my problem.
 
 I need a way to alert the user that they have made changes to one 
 or more form fields if they attempt to exit the page before saving.
 
 does anyone know of a quick solution to this?
 
 Thanks,
 
 Mke
 
 
 
~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm

Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4



OT: JS Question...

2002-12-10 Thread Che Vilnonis
It's brainfart Tuesday.

I have a hyperlink. When clicked, I would like it to launch 2 pop up windows
for 2 different hardcoded urls.

Any ideas on how to do this?

Ché Vilnonis
Application Developer
Advertising Systems Incorporated
8470C Remington Avenue
Pennsauken, NJ 08110
p: 856.488.2211
f: 856.488.1990
www.asitv.com

~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.



OT js question (child window passing back to parent)

2002-10-18 Thread Tim Do
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 getting an error
message that says the parent window's form field is null or not an object.

Here is what I have:

Parent Window:

FORM NAME=newCaseInfo
ACTION=index.cfm?action=caseAnalysissubaction=createNewCase METHOD=POST
onSubmit=return validateUnits();

Form that I'm trying to populate with Child window data:
INPUT TYPE=text NAME=actionReason VALUE= SIZE=5nbsp;nbsp;A
HREF=javascript:openFrameless2() CLASS=text9ptBlackCodes/A


Child Window:

SCRIPT LANGUAGE=JavaScript
function passToParent()
{
window.opener.document.newCaseInfo.actionReason.value =
document.actionReason.actionReasonCode.value;
return false;
window.close();
}
/SCRIPT

FORM NAME=actionCode
ACTION=index.cfm?action=caseAnalysissubaction=createNewCase METHOD=POST
onSubmit=return passToParent();

INPUT TYPE=checkbox NAME=actionReasonCode VALUE=#actionReasonCode#



Thanks

~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm



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 --
From: Tim Do [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
Date:  Fri, 18 Oct 2002 08:28:09 -0700

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 getting an error
message that says the parent window's form field is null or not an object.

Here is what I have:

Parent Window:

FORM NAME=newCaseInfo
ACTION=index.cfm?action=caseAnalysissubaction=createNewCase METHOD=POST
onSubmit=return validateUnits();

Form that I'm trying to populate with Child window data:
INPUT TYPE=text NAME=actionReason VALUE= SIZE=5  A
HREF=javascript:openFrameless2() CLASS=text9ptBlackCodes/A


Child Window:

SCRIPT LANGUAGE=JavaScript
function passToParent()
{
   window.opener.document.newCaseInfo.actionReason.value =
document.actionReason.actionReasonCode.value;
   return false;
   window.close();
}
/SCRIPT

FORM NAME=actionCode
ACTION=index.cfm?action=caseAnalysissubaction=createNewCase METHOD=POST
onSubmit=return passToParent();

INPUT TYPE=checkbox NAME=actionReasonCode VALUE=#actionReasonCode#



Thanks


~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm



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 getting an error
 message that says the parent window's form field is null or not an object.

[snip]

 Child Window:

 SCRIPT LANGUAGE=JavaScript
 function passToParent()
 {
   window.opener.document.newCaseInfo.actionReason.value =
 document.actionReason.actionReasonCode.value;
   return false;
   window.close();
 }
 /SCRIPT

 FORM NAME=actionCode
 ACTION=index.cfm?action=caseAnalysissubaction=createNewCase
 METHOD=POST
 onSubmit=return passToParent();

 INPUT TYPE=checkbox NAME=actionReasonCode VALUE=#actionReasonCode#

It looks like you're defining the path to the parent object just fine.  But,
unless it's a typo, the code for accessing the child object is incorrect.
The child object form field name is actionReasonCode contained in a form
named actionCode.  But your JS code refers to it as:

document.actionReason.actionReasonCode.value
 

This should be actionCode as in:

document.actionCode.actionReasonCode.value

--
Mosh Teitelbaum
evoch, LLC
Tel: (301) 625-9191
Fax: (301) 933-3651
Email: [EMAIL PROTECTED]
WWW: http://www.evoch.com/

~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm



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 METHOD=POST
onSubmit=return validateUnits();

Form that I'm trying to populate with Child window data:
INPUT TYPE=text NAME=actionReason VALUE= SIZE=5nbsp;nbsp;A
HREF=javascript:openFrameless2() CLASS=text9ptBlackCodes/A


Child Window:

SCRIPT LANGUAGE=JavaScript
function passToParent()
{
window.opener.document.newCaseInfo.actionReason.value =
document.actionReason.actionReasonCode.value;
return false;
window.close();
}
/SCRIPT

FORM NAME=actionCode
ACTION=index.cfm?action=caseAnalysissubaction=createNewCase METHOD=POST
onSubmit=return passToParent();

INPUT TYPE=checkbox NAME=actionReasonCode VALUE=#actionReasonCode#

~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm



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

2002-10-18 Thread Tim Do
Thank you... now I have another issue with this... can I pass back multiple
values? I output a list of checkboxes and want to pass back all the values
the user checks on the child form.  

-Original Message-
From: Gene Kraybill [mailto:Gene.Kraybill;adelphia.com]
Sent: Friday, October 18, 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:

FORM NAME=newCaseInfo
ACTION=index.cfm?action=caseAnalysissubaction=createNewCase METHOD=POST
onSubmit=return validateUnits();

Form that I'm trying to populate with Child window data:
INPUT TYPE=text NAME=actionReason VALUE= SIZE=5nbsp;nbsp;A
HREF=javascript:openFrameless2() CLASS=text9ptBlackCodes/A


Child Window:

SCRIPT LANGUAGE=JavaScript
function passToParent()
{
window.opener.document.newCaseInfo.actionReason.value =
document.actionReason.actionReasonCode.value;
return false;
window.close();
}
/SCRIPT

FORM NAME=actionCode
ACTION=index.cfm?action=caseAnalysissubaction=createNewCase METHOD=POST
onSubmit=return passToParent();

INPUT TYPE=checkbox NAME=actionReasonCode VALUE=#actionReasonCode#


~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm



OT JS Question

2002-07-26 Thread Kris Pilles

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
__
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



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 not work.  Try changing the
name of the form field to txtName or something to that effect.

Hope this helps ;)

--
Scott Van Vliet
Sempra Energy
555 W. 5th St., 21st Floor
Los Angeles, CA 90013
Tel  213.244.5205
Email  [EMAIL PROTECTED]

Hello Stupid, and welcome to your crappy computer.
- Strong Bad, HomestarRunner.com






 -Original Message-
 From: Kris Pilles [mailto:[EMAIL PROTECTED]]
 Sent: Friday, July 26, 2002 11:32 AM
 To: CF-Talk
 Subject: OT JS Question
 
 
 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
 
__
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



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

__
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



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

function setForm() {
winopen = window.opener;
winopen.document.Form1.name.value = document.name2.employees.value;
window.close(); return;
}

Isaac Dealey
Certified Advanced ColdFusion Developer

www.turnkey.to
954-776-0046
__
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



OT: JS Question

2002-03-28 Thread Bruce Sorge

I have a form that, if a user selects a specific item from a select list, then the 
next section of the form is grayed out, and the required attributes are no longer 
required. I know how to by-pass the required fields using simple if-else in my JS 
validation. What I am needing to know is, how would I go about making the other form 
elements disable? Does this even make sense? IS this more of a DHTML thing?

Thanks,

_
Bruce Sorge
ICQ#:145050973
Current ICQ status: 

SMS: (Send an SMS message to my ICQ): +2783142145050973
More ways to contact me: http://wwp.icq.com/145050973
_ 


__
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



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 people can get you in touch with steve.

 Bruce Sorge [EMAIL PROTECTED] 03/28/02 03:02PM 
I have a form that, if a user selects a specific item from a select list, then the 
next section of the form is grayed out, and the required attributes are no longer 
required. I know how to by-pass the required fields using simple if-else in my JS 
validation. What I am needing to know is, how would I go about making the other form 
elements disable? Does this even make sense? IS this more of a DHTML thing?

Thanks,

_
Bruce Sorge
ICQ#:145050973
Current ICQ status: 

SMS: (Send an SMS message to my ICQ): +2783142145050973
More ways to contact me: http://wwp.icq.com/145050973 
_ 



__
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



OT: JS Question

2002-02-04 Thread Bruce H. Sorge

Why would I be receiving the following error message:Error, object does 
not support this property or method.

The JS is this:
SCRIPT LANGUAGE=JavaScript
   !-- 
function confirmDelete()
{
 if(confirm(Are you sure you want to delete 
cfoutput#qGetClientofClient.CofC_Name#/cfoutput?))
 {
  document.DeleteClientofClient.submit();
 }
}
   //--
   /SCRIPT

What is weird is that I have a similar script that works just fine. Here 
is the one that works:
SCRIPT LANGUAGE=JavaScript
   !-- 
function confirmDelete()
{
 if(confirm(Are you sure you want to delete 
cfoutput#qGetClient.Client_Name#/cfoutput?))
 {
  document.DeleteForm.submit();
 }
}
   //--
   /SCRIPT

TIA,
Bruce

__
Why Share?
  Dedicated Win 2000 Server · PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER
  Instant Activation · $99/Month · Free Setup
  http://www.pennyhost.com/redirect.cfm?adcode=coldfusionc
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: ok, OT JS question

2001-09-17 Thread Rice, John J

The best way to do something like that may be to
create and html page and use js to open that
page in a new window (window.open()).
Then use js to pass information back
to the opening page from the new window.
You then have all the flexability of html
formatting.

I've used that method for some time now.


Best of Luck
-Rice

-Original Message-
From: Kevin Mansel [mailto:[EMAIL PROTECTED]]
Sent: Friday, September 14, 2001 7:45 PM
To: CF-Talk
Subject: ok, OT JS question


is there a way to decorate the text within the confirm function, like bold
it or color it?

thanks,

kev

~
Kevin Mansel
Senior Web Developer
Fox Communications
[EMAIL PROTECTED]
DL : 425-649-1321
C : 425-346-7221


~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: ok, OT JS question

2001-09-17 Thread Shawn Grover

Javascript is based on C/C++, hence the reason for the \n and simalar escape
characters.
I'm stretching here (haven't touched C/C++ for years), but I believe \b can
be used to denote the start and end of bold sections.

Otherwise, if you are looking for specific formatting, then create your own
window - it'd be easier, and you can do a fair bit more with it.

Shawn Grover

-Original Message-
From: Kevin Mansel [mailto:[EMAIL PROTECTED]]
Sent: Friday, September 14, 2001 5:45 PM
To: CF-Talk
Subject: ok, OT JS question


is there a way to decorate the text within the confirm function, like bold
it or color it?

thanks,

kev

~
Kevin Mansel
Senior Web Developer
Fox Communications
[EMAIL PROTECTED]
DL : 425-649-1321
C : 425-346-7221


~~
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: ok, OT JS question

2001-09-17 Thread Billy Cravens

\b is backspace, not bold

---
Billy Cravens
Web Development, EDS
[EMAIL PROTECTED]


-Original Message-
From: Shawn Grover [mailto:[EMAIL PROTECTED]] 
Sent: Monday, September 17, 2001 10:02 AM
To: CF-Talk
Subject: RE: ok, OT JS question


Javascript is based on C/C++, hence the reason for the \n and simalar
escape characters. I'm stretching here (haven't touched C/C++ for
years), but I believe \b can be used to denote the start and end of bold
sections.

Otherwise, if you are looking for specific formatting, then create your
own window - it'd be easier, and you can do a fair bit more with it.

Shawn Grover

-Original Message-
From: Kevin Mansel [mailto:[EMAIL PROTECTED]]
Sent: Friday, September 14, 2001 5:45 PM
To: CF-Talk
Subject: ok, OT JS question


is there a way to decorate the text within the confirm function, like
bold it or color it?

thanks,

kev

~
Kevin Mansel
Senior Web Developer
Fox Communications
[EMAIL PROTECTED]
DL : 425-649-1321
C : 425-346-7221



~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: ok, OT JS question

2001-09-15 Thread Dave Watts

 is there a way to decorate the text within the confirm 
 function, like bold it or color it?

To the best of my knowledge, there's no way you can change the appearance of
any of the message boxes presented by JavaScript when you use the alert,
confirm, or prompt methods. You can use things like tabs and carriage
returns within your text, though, by using the escape sequences for those
characters (\t, \n).

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
voice: (202) 797-5496
~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



ok, OT JS question

2001-09-14 Thread Kevin Mansel

is there a way to decorate the text within the confirm function, like bold
it or color it?

thanks,

kev

~
Kevin Mansel
Senior Web Developer
Fox Communications
[EMAIL PROTECTED]
DL : 425-649-1321
C : 425-346-7221

~~
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



OT: JS-question- transferring text from one template to another

2001-04-23 Thread cf-talk

Hi, I want to do the following:

I have an Input-template with five text-fields.
On on text field (memory-field, text area) I want to call a small browser
window via
JS (wiht a hyperlink). So far so good. I know how I can do that. In the
called template I have another
Input-field which gets filled by the user. What I want to do is transferring
the text in this text-area back to the calling page and reloading, but the
text
already filled in the four ohter input-boxes shouldn't be touched/changed.
How can I do this.
Does s.o. has his code available ?

Thank you.

Uwe


~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



OT: JS Question

2001-01-15 Thread David Hannum

Hello,

Is there a way to force the focus to a form field (text field) onLoad?

Thanks,
Dave



~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



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 PROTECTED]
Sent: Monday, January 15, 2001 8:13 AM
Subject: OT: JS Question


 Hello,

 Is there a way to force the focus to a form field (text field) onLoad?

 Thanks,
 Dave




~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists