web/data/cubicweb.htmlhelpers.js
branchstable
changeset 8238 087bb529035c
parent 7069 8bf2337a6f3b
child 9259 68cde7431c2c
equal deleted inserted replaced
8235:c2a91d6639d8 8238:087bb529035c
    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 dictionnary)
    67  * builds an 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