Jelix 1.7.18

function.urljsstring.php

Tags
subpackage

jtpl_plugin

author

Laurent Jouanneau

copyright

2005-2006 Laurent Jouanneau

see
http://www.jelix.org
licence

GNU Lesser General Public Licence see LICENCE file or http://www.gnu.org/licenses/lgpl.html

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()
Return values
mixed

Search results