[Catalyst] Catalyst-Ajax-Mochikit - followed tute but am
stuck. Cannot show values in view(webpage)
kakimoto at tpg.com.au
kakimoto at tpg.com.au
Mon Apr 13 10:57:07 GMT 2009
hello, Peter,
Good evening. Thank you for the response.
Yeah, "log(resp.data.price);" prints out the value which I was expecting.
Hence, I was expecting the line, "p_txt = P({'style':'display:none'},
resp.data.price); "
to have worked.
alas, your recommendation of "p_txt = P({'style':'display:none'},
resp.data.price.value);" failed too :(
anyone?? thank you:)
Quoting Peter Flanigan <pjf at roxsoft.co.uk>:
> 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
>
> _______________________________________________
> List: Catalyst at lists.scsys.co.uk
> Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
> Searchable archive:
> http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
> Dev site: http://dev.catalyst.perl.org/
>
>
>
More information about the Catalyst
mailing list