[Catalyst] Catalyst-Ajax-Mochikit - followed tute but am stuck.
Cannot show values in view(webpage)
Peter Flanigan
pjf at roxsoft.co.uk
Mon Apr 13 04:13:12 GMT 2009
kakimoto at tpg.com.au wrote:
> How do I actually get the value (which is the 'price' attribute to display)?
> Point of problem: addCallBack method in my javascript file.
> //Creating a callback on success to process our json response
> d.addCallback
> (
> function (req)
> {
> //elements consult mochikit docs for full details
> var td_price = TD(null, resp.data.price.value);
> // Im stuck here!!! Don't know why the freakin' value won't show :(
>
> p_txt = P({'style':'display:none'}, resp.data.price);
> replaceChildNodes(price, [p_txt]);
Am not familiar with Mochikit, but from context should that be
p_txt = P({'style':'display:none'}, resp.data.price.value);
^^^^^^^
--
Regards
More information about the Catalyst
mailing list