Copy link to clipboard
Copied
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.
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.
Copy link to clipboard
Copied
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?
Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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?
Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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