Does this help?
onchange="jQuery(gaslists).empty();jQuery.getJSON('prices',
jQuery('[name=station_name]').val(), function(data){alert(data.diesel);});"
On Saturday, 21 February 2015 23:33:09 UTC-6, 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 [email protected].
For more options, visit https://groups.google.com/d/optout.