Skip to main content
April 10, 2010
Answered

How do I get checkboxes, radiobuttons and other formdata to change what is being displayed?

  • April 10, 2010
  • 2 replies
  • 981 views

Hello ,

     I'm trying to build a web site that will allow users to pick items and navigate throu selected item types while having a box show current total price and other related data, but with out having to hit the submit button, in fact I dont want a submit button at all .

     Is there any tutorials or examples of how this can be/is done?

Any help would be lovely

thanks.

This topic has been closed for replies.
Correct answer BKBK

randijay89 wrote:

Thx guys,

     And what I really ment was err, well I guess the submit button would be renamed as "checkout"

Ah, checkout! Are you aiming for a shopping-cart-like solution?  Then search the web for ajax coldfusion shopping cart.

2 replies

BKBK
Community Expert
Community Expert
April 11, 2010

Re: How do I get checkboxes, radiobuttons and other formdata to change what is being displayed?

randijay89 wrote:

Hello ,

     I'm trying to build a web site that will allow users to pick items and navigate throu selected item types while having a box show current total price and other related data, but with out having to hit the submit button, in fact I dont want a submit button at all .

     Is there any tutorials or examples of how this can be/is done?

Any help would be lovely

thanks.

You can do all that with the AJAX now built in in Coldfusion. However, what you ask is too much to be done at once. You should start with one block of functionality at a time.

For example, start with the tags cfform, cfselect and cfcomponent. The component will contain data and functionality about products, prices, and so on. Use onClick and onChange events, together with the bind attribute of cfinput and cfselect tags, to dynamically change the values. There are examples in the livedocs on binding in cfinput and binding in cfselect.

April 13, 2010

BKBK wrote:

Re: How do I get checkboxes, radiobuttons and other formdata to change what is being displayed?

randijay89 wrote:

Hello ,

     I'm trying to build a web site that will allow users to pick items and navigate throu selected item types while having a box show current total price and other related data, but with out having to hit the submit button, in fact I dont want a submit button at all .

     Is there any tutorials or examples of how this can be/is done?

Any help would be lovely

thanks.

You can do all that with the AJAX now built in in Coldfusion. However, what you ask is too much to be done at once. You should start with one block of functionality at a time.

For example, start with the tags cfform, cfselect and cfcomponent. The component will contain data and functionality about products, prices, and so on. Use onClick and onChange events, together with the bind attribute of cfinput and cfselect tags, to dynamically change the values. There are examples in the livedocs on binding in cfinput and binding in cfselect.

I don't think I'm ready for javascripting just yet, I've only been at html/css/cfml for a few months at the rate of a few hours a day.

I think I'm on the right track looking at binding and cfc's for what I want to do I'll keep at it.

I've got to say you guys are ledgens!!!

Thx a mill once again guys, your input has been very helpfull indeed

Inspiring
April 11, 2010

You can use javascript to do all that display stuff.

As far as not having a submit button at all, how is the user supposed to submit the form?

April 12, 2010

Thx guys,

     And what I really ment was err, well I guess the submit button would be renamed as "checkout", but anyway thanks a mill for the pointers BKBK.

I can see I got plenty plenty to do if I wanna get this done so I'll get on it

BKBK
Community Expert
BKBKCommunity ExpertCorrect answer
Community Expert
April 12, 2010

randijay89 wrote:

Thx guys,

     And what I really ment was err, well I guess the submit button would be renamed as "checkout"

Ah, checkout! Are you aiming for a shopping-cart-like solution?  Then search the web for ajax coldfusion shopping cart.