Thanks I think I found the solution with :eval:

onchange="jQuery(gaslists).empty();ajax('prices', ['station_name'], ':eval'
);"

and in the controller

return "jQuery('#target').html(%s);" % repr(str(row.db_ulp_price))

I must read read read the docs

On Sunday, February 22, 2015 at 3:33:09 PM UTC+10, CC J wrote:
>
> Hi
>
> I submit a request to the web2py server
>
> onchange="jQuery(gaslists).empty();ajax('prices', ['station_name'], 
> 'shadow_clone');"
>
> My controller returns
>
> return XML(listing)
>
> In Firefox developer I receive a response
>
> {'ulp': '124.90', 'diesel': '126.90', 'autogas': '54.90'}
>
> I've a mental block when it comes to extracting the values and displaying 
> them in my page.
>
> Help appreciated
>
> CCJ
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to