The URL extension propagates, so if you call URL() without explicitly 
specifying an extension, it adds the extension of the current request 
(i.e., the request in which URL() is called), with the exception of the 
".html" extension, which is dropped.

So, if the current request has a .load extension, calls to URL() made 
within that request will also have the .load extension by default. You can 
explicitly suppress the extension via URL(..., extension=False), which is 
probably what you should do unless for some reason your Ajax calls need the 
.load extension.

Anthony

On Friday, August 3, 2018 at 6:47:23 AM UTC-4, Artem wrote:
>
> Hello , All!
> I load component via :
>
> $.web2py.component("{{=URL(c='conc2',f='c2.load')}}", 'conc_div') 
>
> component have ajax calls like :
>
> ajax("{{=URL(c='conc2', f='create_new_detail?t=')}}" +t+ 
> '&c_id='+c_id,[],'mbody_CRUD_Modal');
>
> when i send t and c_id vars to function with ajax call, and print them 
> out by console.log() in browser everything looks how is must be ,
> but ajax call always add .load  to the first var ...
>
> so for example i need  send to controller t='abc' and c_id='001' , but in 
> controller i receive t=.loadabc and c_id=001 .
>
>
>
>
>
>
>
>
>
>
>
> vxvxvxv                           
>
>

-- 
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