Jelix 1.6.37

function.link_to_remote.php

Tags
subpackage

jtpl_plugin

author

Julien Jacottet

contributor

Dominique Papin, Julien Issler

copyright

2008 Julien Jacottet, 2008 Dominique Papin, 2011 Julien Issler

link
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_link_to_remote()  : mixed
function plugin : Ajax request

Functions

function plugin : Ajax request

jtpl_function_html_link_to_remote(mixed $tpl, mixed $label, mixed $element_id, mixed $action_selector, mixed $action_parameters, mixed $option) : mixed

it creates a javascript ajax function example :

{link_to_remote
 'Link',    
 'result',    
 'test~default:ajax', array('id'=>'34'),    
 array(
   'position'=>'html',    
   'method'=>'GET',    
   'beforeSend'=>'alert("beforeSend")',    
   'complete'=>'alert("complete")',    
   'error'=>'alert("error")',    
)}
Parameters
$tpl : mixed
$label : mixed
$element_id : mixed
$action_selector : mixed
$action_parameters : mixed
$option : mixed
Return values
mixed

Search results