Make an 'hidden' input field.

On Apr 6, 7:59 am, leone <[email protected]> wrote:
> I need to use ajax web2py function passing a costant, es.:
>
>       ajax(url,[ 'namefld1', 'namefld2', 'costant-value'], ':eval')
>
> Exploring code I see that I must insert an input tag with desidered
> value and call it by name.
> There is a smarter way?
> Thanks
>
> On 5 Apr, 16:06, Ross Peoples <[email protected]> wrote:
>
>
>
>
>
>
>
> > Could you be a little more specific? Are you trying to pass args and vars?
> > Or are you trying to load HTML using AJAX and sending it to a target DIV? If
> > you are using web2py's ajax function, you may be limited to what you can do.
> > Worst case, you can always try calling jQuery's load() method:
>
> > var url = {{=URL('ajax_view.load', args={'arg1': 'my', 'arg2', 'value'})}};
> > jQuery('#target').load(url);
>
> > Or like this:
>
> > var url = {{=URL('ajax_view.load')}};
> > jQuery('#target').load(url, {arg1: 'my', arg2, 'value'});
>
> > Does this help?

Reply via email to