Checking values of input passed to template

2003-03-27 Thread FlashGuy
Hi again,

I have four input tags that based on which one I click on passes the appropriate 
varaible. For example

input type=image name=new 
src=cfoutput#Request.App.image_root#/cfoutputnew.gif onFocus=this.blur();
br
input type=image name=delete 
src=cfoutput#Request.App.image_root#/cfoutputdelete.gif onFocus=this.blur();

So...if I click on the new image I want to pass that to my action page. so I can 
check it and do my edit stuff.

cfif new...
   Do this
/cfif

cfif delete...
   Do this
/cfif

And so on...




---
Colonel Nathan R. Jessop
Commanding Officer
Marine Ground Forces
Guatanamo Bay, Cuba
---



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

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



Re: Checking values of input passed to template

2003-03-27 Thread mynews
When you use the image type in HTML is passes the .x and .y coords 
of where on the image you clicked. If you cfdump the form scope 
you will see which variables are available to you. Also, if you 
have multiple image types only the one you click will be passed 
to the action page.

DM

= = = Original message = = =

Hi again,

I have four input tags that based on which one I click on passes 
the appropriate varaible. For example

input type=image name=new src=cfoutput#Request.App.image_root#/cfoutp
utnew.gif onFocus=this.blur();
br
input type=image name=delete src=cfoutput#Request.App.image_root#/cfo
utputdelete.gif onFocus=this.blur();

So...if I click on the new image I want to pass that to my 
action page. so I can check it and do my edit stuff.

cfif new...
   Do this
/cfif

cfif delete...
   Do this
/cfif

And so on...




---
Colonel Nathan R. Jessop
Commanding Officer
Marine Ground Forces
Guatanamo Bay, Cuba
---




~|
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



Re: Checking values of input passed to template

2003-03-27 Thread FlashGuy
I've never used cfdump. Whats the syntax to dump the variables from the form?

cfdump var=query

Outputs: query


On Thu, 27 Mar 2003 9:55:38 -0500, [EMAIL PROTECTED] wrote:

 When you use the image type in HTML is passes the .x and .y coords 
 of where on the image you clicked. If you cfdump the form scope 
 you will see which variables are available to you. Also, if you 
 have multiple image types only the one you click will be passed 
 to the action page.
 
 DM
 
 = = = Original message = = =
 
 Hi again,
 
 I have four input tags that based on which one I click on passes 
 the appropriate varaible. For example
 
 input type=image name=new src=cfoutput#Request.App.image_root#/cfoutp
 utnew.gif onFocus=this.blur();
 br
 input type=image name=delete src=cfoutput#Request.App.image_root#/cfo
 utputdelete.gif onFocus=this.blur();
 
 So...if I click on the new image I want to pass that to my 
 action page. so I can check it and do my edit stuff.
 
 cfif new...
Do this
 /cfif
 
 cfif delete...
Do this
 /cfif
 
 And so on...
 
 
 
 
 ---
 Colonel Nathan R. Jessop
 Commanding Officer
 Marine Ground Forces
 Guatanamo Bay, Cuba
 ---
 
 
 
 
 
~|
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: Checking values of input passed to template

2003-03-27 Thread Hugo Ahlenius
Try:
cfdump var=#Form#

and check the manual...





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

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



RE: Checking values of input passed to template

2003-03-27 Thread FlashGuy
OK...now I get:

FIELDNAMES NEW.X,NEW.Y  
NEW.X 11  
NEW.Y 11  

FORM.fieldnames: NEW.X,NEW.Y 

How can I check just for new?


On Thu, 27 Mar 2003 16:11:19 +0100, Hugo Ahlenius wrote:

 Try:
 cfdump var=#Form#
 
 and check the manual...
 
 
 
 
 
 
~|
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: Checking values of input passed to template

2003-03-27 Thread mynews
cfdump var=#form#

Cfdump is a CF developer's best friend. Learn to use it and use 
it often!

DM
= = = Original message = = =

I've never used cfdump. Whats the syntax to dump the variables 
from the form?

cfdump var=query

Outputs: query


On Thu, 27 Mar 2003 9:55:38 -0500, [EMAIL PROTECTED] wrote:

 When you use the image type in HTML is passes the .x and .y 
coords 
 of where on the image you clicked. If you cfdump the form scope 

 you will see which variables are available to you. Also, if 
you 
 have multiple image types only the one you click will be passed 

 to the action page.
 
 DM
 
 = = = Original message = = =
 
 Hi again,
 
 I have four input tags that based on which one I click on 
passes 
 the appropriate varaible. For example
 
 input type=image name=new src=cfoutput#Request.App.image_root#/cfou
tp
 utnew.gif onFocus=this.blur();
 br
 input type=image name=delete src=cfoutput#Request.App.image_root#/c
fo
 utputdelete.gif onFocus=this.blur();
 
 So...if I click on the new image I want to pass that to my 

 action page. so I can check it and do my edit stuff.
 
 cfif new...
Do this
 /cfif
 
 cfif delete...
Do this
 /cfif
 
 And so on...
 
 
 
 
 ---
 Colonel Nathan R. Jessop
 Commanding Officer
 Marine Ground Forces
 Guatanamo Bay, Cuba
 ---
 
 
 
 
 

~|
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
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

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



RE: Checking values of input passed to template

2003-03-27 Thread Dave Watts
 OK...now I get:
 
 FIELDNAMES NEW.X,NEW.Y  
 NEW.X 11  
 NEW.Y 11  
 
 FORM.fieldnames: NEW.X,NEW.Y 
 
 How can I check just for new?

If you're using CFDUMP to dump the Form scope, and something doesn't show up
in there that you're expecting, well, it's not in there, so there's nothing
else to check for. CFDUMP shows you everything in the Form scope, when you
dump that scope.

If new corresponds to an INPUT field with TYPE=IMAGE, you won't have a
variable called new in the Form scope - you'll just have new.x and
new.y. That's just the way image fields work in HTML.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
voice: (202) 797-5496
fax: (202) 797-5444

~|
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