function.urljsstring.php
Tags
Table of Contents
- jtpl_function_html_urljsstring() : mixed
- function plugin : write the url corresponding to the given jelix action for javascript.
Functions
jtpl_function_html_urljsstring()
function plugin : write the url corresponding to the given jelix action for javascript.
jtpl_function_html_urljsstring(jTpl $tpl, string $selector[, array<string|int, mixed> $params = array() ][, mixed $jsparams = array() ]) : mixed
it creates a javascript string, that contains the url, with dynamic javasript parameters
example : {urljsstring 'jxacl~admin_rightslist',array(),array('grpid'=>'idgroup','__rnd'=>'Math.random()')};
it will produce: "index.php?module=acl&action=admin_rightslist&grpid="+idgroup+"&__rnd="+ Math.random();
Parameters
- $tpl : jTpl
-
template engine
- $selector : string
-
selector action
- $params : array<string|int, mixed> = array()
-
parameters for the url
- $jsparams : mixed = array()