web/data/cubicweb.htmlhelpers.js
branchstable
changeset 9700 da7d341cca76
parent 9379 b0b1148b6963
child 9821 2077c8da1893
equal deleted inserted replaced
9699:990676d3f39f 9700:da7d341cca76
    62 }
    62 }
    63 
    63 
    64 /**
    64 /**
    65  * .. function:: asURL(props)
    65  * .. function:: asURL(props)
    66  *
    66  *
    67  * builds an url from an object (used as a dictionary)
    67  * builds a URL from an object (used as a dictionary)
    68  *
    68  *
    69  * >>> asURL({'rql' : "RQL", 'x': [1, 2], 'itemvid' : "oneline"})
    69  * >>> asURL({'rql' : "RQL", 'x': [1, 2], 'itemvid' : "oneline"})
    70  * rql=RQL&vid=list&itemvid=oneline&x=1&x=2
    70  * rql=RQL&vid=list&itemvid=oneline&x=1&x=2
    71  * >>> asURL({'rql' : "a&b", 'x': [1, 2], 'itemvid' : "oneline"})
    71  * >>> asURL({'rql' : "a&b", 'x': [1, 2], 'itemvid' : "oneline"})
    72  * rql=a%26b&x=1&x=2&itemvid=oneline
    72  * rql=a%26b&x=1&x=2&itemvid=oneline