/plugins/tpl/html/function.urljsstring.php

Description
  • author: Jouanneau Laurent
  • version: $Id$
  • copyright: 2005-2006 Jouanneau laurent
  • link: http://www.jelix.org
  • licence: GNU Lesser General Public Licence see LICENCE file or http://www.gnu.org/licenses/lgpl.html
  • filesource: Source Code for this file
Functions
jtpl_function_html_urljsstring (line 23)

function plugin : write the url corresponding to the given jelix action for javascript

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();

void jtpl_function_html_urljsstring (jTpl $tpl, string $selector, [array $params = array()], [ $jsparams = array()], array $jsparam)
  • jTpl $tpl: template engine
  • string $selector: selector action
  • array $params: parameters for the url
  • array $jsparam: array : key=name of a url parameter, value=piece of javascript code ( variable name for example)
  • $jsparams

Documentation generated on Wed, 07 Sep 2011 13:46:37 +0200 by phpDocumentor 1.4.3