RE: CF/Javascript

2000-04-10 Thread Robert Everland III

You should be able to use the footer option in IIS if you're using it, and
onrequestend for the coldfusion part.

Robert Everland III
Network Administrator
Orlando.com

-Original Message-
From: zknoll [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 10, 2000 10:53 AM
To: [EMAIL PROTECTED]
Subject: CF/Javascript


HI, I'm a cf newbie (about 3 months) and I was given the task of putting a
link on the bottom of every page in a cf site to a) pull the url off the
page they are on b) send the user
and the url to a form to email that url to a friend. My first impulse was to
use the onrequestend.cfm and use the cgi variable to pull the url off the
page. The problem is that half
the pages in the site are static html pages so the onrequestend.cfm won't
work for the site. So now I think I need a way to do this in Javascript
(pull the url off the page) and then
send them and the url to the email form which will be a cf template. Any
suggestions on how to do this (example code)?
--zach



--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.

--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.



RE: CF/Javascript

2000-04-11 Thread sherry.zeiss

Is anyone familiar with a Javascript group?

Sherry Zeiss
Infrastructure Support Services

> -Original Message-
> From: Roy Rim [SMTP:[EMAIL PROTECTED]]
> 
> You really should ask the question on a javascript group, but here's the
--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.



Re: CF/Javascript

2000-04-11 Thread B.Cravens

> Is anyone familiar with a Javascript group

js-jive.. by the same folks that run this list.. go to houseoffusion.com for
info

Billy Cravens
[EMAIL PROTECTED]


--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.



RE: CF/Javascript

2000-04-11 Thread Steve Reich

Yes... JS-Jive! Filled with lots of CFers too!

Community email addresses:
  Post message: [EMAIL PROTECTED]
  Subscribe:[EMAIL PROTECTED]
  Unsubscribe:  [EMAIL PROTECTED]
  List owner:   [EMAIL PROTECTED]

Shortcut URL to this page:
  http://www.onelist.com/community/JS-Jive

HTH,
Steve Reich

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 11, 2000 10:55 AM
To: [EMAIL PROTECTED]
Subject: RE: CF/Javascript


Is anyone familiar with a Javascript group?

Sherry Zeiss
Infrastructure Support Services

> -Original Message-
> From: Roy Rim [SMTP:[EMAIL PROTECTED]]
>
> You really should ask the question on a javascript group, but here's the

--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.

--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.



RE: CF/Javascript

2000-04-11 Thread Steve Reich

>js-jive.. by the same folks that run this list.. go to houseoffusion.com
for
>info

>Billy Cravens
>[EMAIL PROTECTED]


Just to clarify, JS-Jive is not affiliated in any way to the House of Fusion
or the CF-Talk list. It was started by one of the members of CF-Talk (me)
and does have a large CF community population. Here is the current
information for subscribing (a real home page will be in place shortly):

Community email addresses:
  Post message: [EMAIL PROTECTED]
  Subscribe:[EMAIL PROTECTED]
  Unsubscribe:  [EMAIL PROTECTED]
  List owner:   [EMAIL PROTECTED]

Shortcut URL to this page:
  http://www.onelist.com/community/JS-Jive

Thanks,
Steve Reich

--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.



Re: CF & Javascript frames

2002-03-21 Thread Scott Van Vliet

window.opener is the parent window reference from a js popup window ^_^

so, try:window.opener.LeftFrameBottom.location = "..."

HTH

- Original Message -
From: "Bosky, Dave" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Thursday, March 21, 2002 2:30 PM
Subject: CF & Javascript frames


> How can you refresh a specifc frame from a popup window and then close
that
> window?
> I just can't find the correct syntax.
>
> Any ideas?
>
> 
>
>
//parent.LeftFrameBottom.location.href=".././modules.cfm?#client.u
> rltoken#";
> window.close();
> 
>
> Thanks,
> Dave
>
>
>
>
>
> 
__
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: CF & Javascript frames

2002-03-21 Thread Dave Carabetta

>How can you refresh a specifc frame from a popup window and then close that
>window?
>I just can't find the correct syntax.
>
>Any ideas?
>
>
>
>//parent.LeftFrameBottom.location.href=".././modules.cfm?#client.u
>rltoken#";
> window.close();
>

A couple things. First, your path reference looks off to me. I think you 
just want ../modules.cfm, but I could be wrong as I don't know your 
architecture. I think that ".././" just puts you in the same directory 
you're already in. But here's how to do what you're looking for:





Again, not sure about your URL (I could be wrong), but that's how you do the 
refresh and close.

Regards,
Dave.

_
Send and receive Hotmail on your mobile device: http://mobile.msn.com

__
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: CF / JavaScript question

2004-01-06 Thread Daniel Farmer
I'm not sure what you're doing here. But why not just put the select fields into a seperate templates and then call them as you need to? ( cfinclude )
  - Original Message - 
  From: Steve Logan 
  To: CF-Talk 
  Sent: Tuesday, January 06, 2004 2:49 PM
  Subject: CF / _javascript_ question

  I was looking around for a code example of this and haven't been able to
  find one - it's definitely something that's been on my list of "must learn"
  - now it's a need to learn item.

  I have 2 tables in my db - one is partcategory and one is partsubcatetory.
  I have a CF snippet set to create a form select pulldown off of the first
  table, but what I want to have happen is when they make a selection from the
  first pull down (onChange) run a 2nd query to populate the subcategory with
  the appropriate items.

  The part category pulldown select code is this:

  
  
 select * from partcategory
  
  
  
  
  " & "--Make A Selection--">
  
    
  value="#selPartCat.pc_id#"'>
    
  
  selected">
  
    " &
  #selPartCat.pc_category#>
  
  ">
  
  PartCategorySelect>

  

  #PartCategorySelect#

  This gives me a nice pulldown with the correct values and selection names.
  Now I'm stuck on the _javascript_ to get the 2nd query / pulldown to be
  created.

  Thanks.

  Steve
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Re: CF / JavaScript question

2004-01-06 Thread Charlie Griefer
http://www.webtricks.com/sourcecode/code.cfm?CodeID=18

http://www.macromedia.com/cfusion/exchange/index.cfm#loc=en_us&view=sn106&viewName=Exchange%20Search%20Details&authorid=7653985&page=0&scrollPos=0&subcatid=0&snid=sn106&itemnumber=13&extid=1000288&catid=0

  - Original Message - 
  From: Daniel Farmer 
  To: CF-Talk 
  Sent: Tuesday, January 06, 2004 12:54 PM
  Subject: Re: CF / _javascript_ question

  I'm not sure what you're doing here. But why not just put the select fields into a seperate templates and then call them as you need to? ( cfinclude )
    - Original Message - 
    From: Steve Logan 
    To: CF-Talk 
    Sent: Tuesday, January 06, 2004 2:49 PM
    Subject: CF / _javascript_ question

    I was looking around for a code example of this and haven't been able to
    find one - it's definitely something that's been on my list of "must learn"
    - now it's a need to learn item.

    I have 2 tables in my db - one is partcategory and one is partsubcatetory.
    I have a CF snippet set to create a form select pulldown off of the first
    table, but what I want to have happen is when they make a selection from the
    first pull down (onChange) run a 2nd query to populate the subcategory with
    the appropriate items.

    The part category pulldown select code is this:

    
    
   select * from partcategory
    
    
    
    
    " & "--Make A Selection--">
    
  
    value="#selPartCat.pc_id#"'>
  
    
    selected">
    
  " &
    #selPartCat.pc_category#>
    
    ">
    
    PartCategorySelect>

    

    #PartCategorySelect#

    This gives me a nice pulldown with the correct values and selection names.
    Now I'm stuck on the _javascript_ to get the 2nd query / pulldown to be
    created.

    Thanks.

    Steve
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Re: CF / JavaScript question

2004-01-06 Thread Joe On The Road
Hi Steve,
  Take a look at the _javascript_ on this page.  It might help.
http://www.jascouniform.com/ecom/showdetl.cfm?&User_ID=4326092&st=4888&st2=79755318&st3=70838938&Product_ID=4240

Select a color and the size changes, select a size and the price 
changes.  Not exactly what you wanted but the concept is there.
Also, why not join your query to get all the data from both tables at 
once and group it, put the results in a _javascript_ array, and use this 
array to populate the selects.  Hope this helps...
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: CF / JavaScript question

2004-01-06 Thread DURETTE, STEVEN J (AIT)
Steve,

 
Why don't you do one select that joins the tables.  Then you can use the
multiselects related with cf and _javascript_ tutorial I wrote.

 
The tutorial can be found at http://tutorial196.easycfm.com
   It deals with 3 related selects, but
should be easily converted to two selects.

 
Steve

-Original Message-
From: Steve Logan [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 06, 2004 2:49 PM
To: CF-Talk
Subject: CF / _javascript_ question

I was looking around for a code example of this and haven't been able to
find one - it's definitely something that's been on my list of "must learn"
- now it's a need to learn item.

I have 2 tables in my db - one is partcategory and one is partsubcatetory.
I have a CF snippet set to create a form select pulldown off of the first
table, but what I want to have happen is when they make a selection from the
first pull down (onChange) run a 2nd query to populate the subcategory with
the appropriate items.

The part category pulldown select code is this:



   select * from partcategory




" & "--Make A Selection--">

  
value="#selPartCat.pc_id#"'>
  

selected">

  " &
#selPartCat.pc_category#>

">

PartCategorySelect>



#PartCategorySelect#

This gives me a nice pulldown with the correct values and selection names.
Now I'm stuck on the _javascript_ to get the 2nd query / pulldown to be
created.

Thanks.

Steve 
  _
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Re: CF -> Javascript variables

2004-08-31 Thread Patrick Whittingham
Can't you use the innerHTML instead?

Pat




x.innerHTML="3432432432";

- Original Message - From: Frank Dewey <[EMAIL PROTECTED]> Date: Tue, 31 Aug 2004 13:13:53 -0500 Subject: CF -> _javascript_ variables To: CF-Talk <[EMAIL PROTECTED]> Wrong subject From: Frank Dewey [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 31, 2004 1:10 PM To: CF-Talk Subject: RE: CFQuery Hello all, In my page, clicking on a name brings up another window where you can edit their information (their address is shown below their name).  The addressID for each address is also stored in a variable (addressIDList). Clicking on a button gets the the current information from the database - the processing is done in an iframe and addressIDList is passed in the URL. I would like to have _javascript_ write this new information to the screen.  I do not want the entire screen to be reloaded though, just certain information.  The proper text is surounded by (for the city and state text): ... ... ... Everything works like it should except that I cannot get _javascript_ to update the page because of some syntax errors.  I am trying to use JS.innertext to write the new information (i.e. for the city):    
parent['city'+#addressid#].innerText =
#evaluate(city&addressid)#;
...
    What is wrong with this syntax?  What should it be instead? I appreciate any help... Thank you -   Frank [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

RE: CF -> Javascript variables

2004-08-31 Thread Frank Dewey
Thanx Patrick,

 
I finaly got it to work:

 
I put the CF variables in an 
Then I used JS to get these values

 
Regards -
  Frank



From: Patrick Whittingham [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, August 31, 2004 6:45 PM
To: CF-Talk
Subject: Re: CF -> _javascript_ variables

Can't you use the innerHTML instead?

Pat




x.innerHTML="3432432432";

- Original Message - From: Frank Dewey <[EMAIL PROTECTED]> Date: Tue, 31 Aug 2004 13:13:53 -0500 Subject: CF -> _javascript_ variables To: CF-Talk <[EMAIL PROTECTED]> Wrong subject From: Frank Dewey [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 31, 2004 1:10 PM To: CF-Talk Subject: RE: CFQuery Hello all, In my page, clicking on a name brings up another window where you can edit their information (their address is shown below their name).  The addressID for each address is also stored in a variable (addressIDList). Clicking on a button gets the the current information from the database - the processing is done in an iframe and addressIDList is passed in the URL. I would like to have _javascript_ write this new information to the screen.  I do not want the entire screen to be reloaded though, just certain information.  The proper text is surounded by (for the city and state text): ... ... ... Everything works like it should except that I cannot get _javascript_ to update the page because of some syntax errors.  I am trying to use JS.innertext to write the new information (i.e. for the city):    
parent['city'+#addressid#].innerText =
#evaluate(city&addressid)#;
...
    What is wrong with this syntax?  What should it be instead? I appreciate any help... Thank you -   Frank [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

Re: CF, Javascript and Form Select Boxes - Need Help

2000-03-25 Thread David Shadovitz

I'll take a look, but I see right away that the function cover_price has
no opening bracket.
-David

On Sat, 25 Mar 2000 20:49:32 -0600 "Chris Montgomery" <[EMAIL PROTECTED]>
writes:
> Howdy folks,
> 
> If any Javascript wizards have a few moments and can help, I would
> certainly appreciate it.
> 
> Below is some code for a page that contains a form that uses 
> Javascript
> to update calculated values.  The second form SELECT is not updating 
> the
> total_price form field.  The team I'm working with needs to resolve 
> this
> problem with Javascript not working in the form by Monday morning, 
> so
> timeliness is of the essence.
> 
> Can anyone see the problem?
> 
> Code follows:
> =
> 
> 
>
>
>
>
>
>
>
>
>
>
> 
> 
> 
> SELECT MAL_CLS_CD, MAL_CLS_DESC, MAL_CLS_CST, PLT_PRD.BND_TYP
> FROM MAL_CLS_TIER, PLT_PRD
> WHERE MAL_CLS_TIER_CD = '#SESSION.MAL_CLS_TIER_CD#'
> AND   MAL_CLS_TIER.PRD_TYP_CD = '02'
> AND PLT_PRD.ORD_ENT_PRD_CD = '#SESSION.COVER_PRODUCT_CODE#'
> AND MAL_CLS_TIER.BND_TYP = '#SESSION.BINDING#'
> ORDER BY MAL_CLS_CST
> 
> 
> 
> 
> 
> 
> 
> Cover Quantity
> 
> 
> 
> 
> //function to change the cover price 
> as
> multiple quantities are chosen
>   function cover_price(form)
> 
> 
>   // if only one cover is chosen, the standard cover price is 
> given
>   if (form.Cover_QUANTITY.selectedIndex == 0)
>   {
>   form.cover_price2.value =  
> #session.cover_cost#;
>   }
>   else
>   {
>   form.cover_price2.value = (form.Cover_QUANTITY.selectedIndex 
> *
> #session.cover_cost_add2#) +
> #session.cover_cost#;
>   }
> 
>   result = calc_precision(form.cover_price2.value);
> 
>   return(result);
>   }
> 
>   function calc_precision(in_value)
>   {
>   alert("in calc_precision");
>   precision = 2;   // Set the precision to 2 places past the 
> decimal
> point
> 
>   var whole = "" + Math.round(in_value * Math.pow(10, 
> precision));
> 
>   var decPoint = whole.length - precision;
> 
>   if(decPoint != 0)
>   {
>   result = whole.substring(0, decPoint);
>   result += ".";
>   result += whole.substring(decPoint, whole.length);
>   }
>   else
>   {
>   result = whole;
>   }
>   alert("calc_precision returning "+result);
>   return(result)
>   }
> 
>   function calc_Total()
>   {
>   alert("in calc_total");
>   total_result = 
> parseFloat(document.Cover_qty.cover_price2.value) +
> #COVER_SHIP_COST.mal_cls_cst#;
>   alert("calc_total total_result is "+total_result);
>   result = calc_precision(total_result);
>   alert("calc_total returning "+result);
>   return(result);
>   }
> 
> 
> 
> 
>  onLoad="document.Cover_qty.total_price.value=calc_Total()">
> Standard
> Delivery for Covers is Bulk Mail.You may upgrade delivery
> below.
> 
>  target="_top">
>  valign="TOP" border="1">
>
>   
>   Your Cover Selection:
>   
>   
>src="../covers/#SESSION.COVER_IMAGE#">
>   
>
>
>    
>   
>   #SESSION.COVER_DESCRIPTION# 
> Leather
> Cover
>   
>
>
>   
>   Select Cover Quantity:
>   
>   
>   
>  
onChange="document.Cover_qty.cover_price2.value=cover_price(this.form);d
> ocument.Cover_qty.total_price.value=calc_Total()">
>  1>selected>1 Cover
>  2>selected>2 Covers
>  3>selected>3 Covers
>  4>selected>4 Covers
>  5>selected>5 Covers
>     Price:  $
>   value="#DecimalFormat(Evaluate(SESSION.COVER_COST +
> (SESSION.COVER_COST_ADD * (SESSION.COVER_QUANTITY - 1#" size="5"
> maxlength="5"
>
onChange="this.value=cover_price(this.form);document.Cover_qty.total_pri
> ce.value=calc_Total()">
>   
>
>
>   
>   Shipping Method:
>   
>   
> 
>
> 
> 
> 
> The onChange in the SELECT statement below is where the code
> appears to be broken.
> 
> 
>   onChange="document.Cover_qty.total_price.value=calc_Total()">
> 
>  session.cover_shipping_method is #mal_cls_cd#>selected
> >#Trim(MAL_CLS_DESC)#: $#Trim(MAL_CLS_CST)#
>  
> 
>   
>
>
>size="2">
>   Total:
>   
>   
> 
> *
> This is where choosing one of the affected Select options
> above should update the total price, but it isn't working.
> *
> 
>size="2">$
>   maxlength="5"
> onChange="this.value=calc_Total()">
>   
>
>
>size="-1"> 
> WARNING: UPS does NOT deliver to P.O. Box Addresses.  When 
> selecting
> Ground, 2nd Day, 

RE: CF, Javascript and Form Select Boxes - Need Help

2000-03-25 Thread Chris Montgomery

David,

Thanks a bunch.  I just checked the file and the opening bracket is in
fact there.  Don't know why/how it got dropped when I copied and pasted
it.


Re: CF, Javascript and Form Select Boxes - Need Help

2000-03-25 Thread David Shadovitz

Chris,
What happens when you choose an option in Cover_SHIPPING_METHOD?  Do you
get the alerts in the calc_Total function?  If so, are the values in the
alerts correct?
-David

On Sat, 25 Mar 2000 21:53:26 -0600 "Chris Montgomery" <[EMAIL PROTECTED]>
writes:
> David,
> 
> Thanks a bunch.  I just checked the file and the opening bracket is 
> in
> fact there.  Don't know why/how it got dropped when I copied and 
> pasted
> it.
> 
> 

RE: CF, Javascript and Form Select Boxes - Need Help

2000-03-25 Thread Chris Montgomery

David,

To be honest, I don't recall exactly what happens.  All the CF and
Javascript code was written by other folks where I'm doing some
consulting work (I'm the only one subscribed to this list, that's why
I'm asking).  The person who wrote the Jscript part put the alerts in to
"track" each action in the form as it gets updated after something is
changed.  If memory serves, selecting an Cover_Shipping_Method option
threw a Javascript error, but the upshot is the total price value isn't
getting updated.

I'll try to determine what the error is tomorrow at the office since I'm
unable to run it remotely.

Thanks for your help.  Have a good weekend.

Chris Montgomery

>-Original Message-
>From: David Shadovitz [mailto:[EMAIL PROTECTED]]
>Sent: Saturday, March 25, 2000 11:05 PM
>To: [EMAIL PROTECTED]
>Subject: Re: CF, Javascript and Form Select Boxes - Need Help
>
>
>Chris,
>What happens when you choose an option in
>Cover_SHIPPING_METHOD?  Do you
>get the alerts in the calc_Total function?  If so, are the
>values in the
>alerts correct?
>-David
>

--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.