Hello Jim,
what's in priceListProductId ?
I would see this in javascript :
priceListProductId = {{=request.vars.priceListProductId}}
?
Richard
On Fri, Jan 17, 2014 at 11:32 AM, Jim S <[email protected]> wrote:
> Trying to reload a component, passing new parameters to it.
>
> I have the following code based on this discussion:
> https://groups.google.com/forum/#!searchin/web2py/reload$20component/web2py/jZeJT0WFgV4/x4eeOpAFxh8J
>
> <script type="text/javascript">
> function priceListProductSiteEdit( priceListProductId ) {
> //alert(priceListProductId);
>
> //$('#priceListProductEdit2').load('/infocenter/pricing/priceListProduct.load?priceListProductId='
> + priceListProductId);
> web2py_component("{{=URL('pricing', 'priceListProduct.load',
> vars="{'priceListProductId':" + priceListProductId + "})}}, target=
> 'priceListProductEdit');
> }
> </script>
>
>
> But, when my controller function is called, the value passed to the
> priceListProductId variable is + priceListProductId + not the
> value that is passed to the javascript function.
>
> I'm having a total brain-fart trying to figure out how to pass this
> properly.
>
> Can someone help please?
>
> -Jim
>
> --
> 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/groups/opt_out.
>
--
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/groups/opt_out.