Re: How to use ajax in selection-list
asif_zzz wrote: > Hi Imran, > > First of all thanks for your reply.. > I've populated all the values to the selection list. > Based on selected value ,i need to process the information in the DB > and the i need to load the new values using ajax.. > > I've tried on on change event handler..The selected value get stored in > front end itself > i cant receive the value to the backend.. > > My binding will look like this. > > > > var collection = jxpathPointer.getNode(); > widget.setSelectionList(collection, "key", "val"); > > > > > > > > > > My definition part look like this > > > customer > > > > > > event.source.lookupWidget("../customerSelectedId").setValue(event.newValue); > > > > > > > > > > > Regards > Aashik > i dont see u calling the backend anywhere ... there is a very good example about changing a selectionlist using ajax within cocoon samples .. there they are doing everyting using javascript .. u can see the online demo at http://cocoon.zones.apache.org/demos/21branch/samples/blocks/forms/carselector for looking at the source checkout the 2.1 branche from the SVN .. you will find all you need in there .. Hope that helps - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to use ajax in selection-list
Hi Imran, First of all thanks for your reply.. I've populated all the values to the selection list. Based on selected value ,i need to process the information in the DB and the i need to load the new values using ajax.. I've tried on on change event handler..The selected value get stored in front end itself i cant receive the value to the backend.. My binding will look like this. var collection = jxpathPointer.getNode(); widget.setSelectionList(collection, "key", "val"); My definition part look like this customer event.source.lookupWidget("../customerSelectedId").setValue(event.newValue); Regards Aashik -- View this message in context: http://www.nabble.com/How-to-use-ajax-in-selection-list-tp19836402p19838759.html Sent from the Cocoon - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to use ajax in selection-list
asif_zzz wrote: > hi, im new to cocoon. Im using cocoon 2.1.10 CForms. I need to use > ajax in a selection-list. > > My scernario is when i select a item in a selectionlist, i need to > get some value from the database based on the Selected value of the > selectionlist. And populate the new retrived values in UI screen. > > I've used ajax in repeaters. > > Any suggestions,appreciated > > Regards, Aashik Hi, What you are looking for here is Event handling .. u can use on-value-changed event .. there are two options .. you can either use javascript or java class .. this is a good place to start .. http://cocoon.apache.org/2.1/userdocs/widgetconcepts/eventhandling.html and if your using java the i have written a small example of populating a suggestion field .. u can find it here .. http://pariyani.blogspot.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How to use ajax in selection-list
hi, im new to cocoon. Im using cocoon 2.1.10 CForms. I need to use ajax in a selection-list. My scernario is when i select a item in a selectionlist, i need to get some value from the database based on the Selected value of the selectionlist. And populate the new retrived values in UI screen. I've used ajax in repeaters. Any suggestions,appreciated Regards, Aashik -- View this message in context: http://www.nabble.com/How-to-use-ajax-in-selection-list-tp19836402p19836402.html Sent from the Cocoon - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]