Nothing related to Json, web2py html template works everywhere inside views.

>From Doc :



        >>> URL(a='a', c='c', f='f', args=['x', 'y', 'z'],
        ...     *vars={'p':1, 'q':2}*, anchor='1')
        '/a/c/f/x/y/z#1?q=2&p=1'

    generates a url \"/a/c/f\" corresponding to application a, controller c
    and function f. If r=request is passed, a, c, f are set, respectively,
    to r.application, r.controller, r.function.


On Fri, Aug 20, 2010 at 1:37 AM, Alexandre Andrade <alexandrema...@gmail.com
> wrote:

> I really don't know how it works with json, but the sintaxe for URL haven't
> 'vars' but args=['a','b','etc']
>
>
>
> 2010/8/19 Phyo Arkar <phyo.arkarl...@gmail.com>
>
> Trunk version Rev 853
>>
>> in view:
>> $("#list").jqGrid({
>>
>> url:"{{=URL(r=request,f='listMIME.json',vars={'extracted_path':extracted_path,'source_path':source_path})}}",
>>
>> HTML Result:
>>     $("#list").jqGrid({
>>     url:"/sExtract/extraction/listMIME.json?source_path=home*&amp*
>> ;extracted_path=target",
>>
>> it insert  &amp;instead of &
>>
>> that screwed up all my sites :D ..
>>
>> have not tested with released version ..
>>
>
>
>
> --
> Atenciosamente
>
> --
> =========================
> Alexandre Andrade
> Hipercenter.com
>

Reply via email to