Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

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

Guest
Apr 10, 2010 Apr 10, 2010

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.

TOPICS
Getting started
790
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Apr 12, 2010 Apr 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.

Translate
LEGEND ,
Apr 10, 2010 Apr 10, 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?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Apr 12, 2010 Apr 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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Apr 12, 2010 Apr 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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Apr 13, 2010 Apr 13, 2010

No I've not got that far yet. Ok, say I've got 1 group of radiobuttons and 1 <cfselect> drop down menu box, How do I populate the <cfselect> with data that changes depending on the radiobuttons thats selected?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Apr 13, 2010 Apr 13, 2010

This is similar to related selects.  As with most things, there is more than one way to accomplish it.  This link gives you a pure javascript approach.  http://www.pathcom.com/~bracuk/code/RelatedSelects.htm

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Apr 11, 2010 Apr 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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Apr 13, 2010 Apr 13, 2010
LATEST

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources