[jQuery] Re: AjaxCFC success return value
bump :) -- View this message in context: http://www.nabble.com/AjaxCFC-success-return-value-tp21580307s27240p21581667.html Sent from the jQuery General Discussion mailing list archive at Nabble.com.
[jQuery] AjaxCFC success return value
I am trying to create a function that returns the value produced from an Ajaxcfc call. function getRootCatID(strSupplierCode){ var objParams = {}; objParams.strSupplierCode = strSupplierCode; $.AjaxCFC({ url: "model/category/CategoryAjaxFacade.cfc", method: "getRootNode", data: objParams, unnamedargs: false, serialization: "json", success: function(intCatID) { alert(intCatID); } }); return intCatID; } I have not been able to return a value from with the success parameter or outside the ajaxcfc call. How can I get my function working ? thanks very much -- View this message in context: http://www.nabble.com/AjaxCFC-success-return-value-tp21580307s27240p21580307.html Sent from the jQuery General Discussion mailing list archive at Nabble.com.
[jQuery] Re: Meta Data within elements
BUMP alexquery wrote: > > I am creating a product/category tree using jquery. I would like to be > able to store additional data within each node. > > The nodes in my tree are basicaly list elements. How would I add data to > these elements such as the count of products and categories beneath them ? > > I tried this method. > > jQuery.data(objNode, 'intProdCounter', intProdCounter); > > But I have had some problems.. are there any other ways of acheiving this > ? > > thanks for any help in advance > > > -- View this message in context: http://www.nabble.com/Meta-Data-within-elements-tp21416642s27240p21431844.html Sent from the jQuery General Discussion mailing list archive at Nabble.com.
[jQuery] Meta Data within elements
I am creating a product/category tree using jquery. I would like to be able to store additional data within each node. The nodes in my tree are basicaly list elements. How would I add data to these elements such as the count of products and categories beneath them ? I tried this method. jQuery.data(objNode, 'intProdCounter', intProdCounter); But I have had some problems.. are there any other ways of acheiving this ? thanks for any help in advance -- View this message in context: http://www.nabble.com/Meta-Data-within-elements-tp21416642s27240p21416642.html Sent from the jQuery General Discussion mailing list archive at Nabble.com.