how to give 2 parameters to remote_function thanks to 'with' ???

Posted by bahamut100 on Stack Overflow See other posts from Stack Overflow or by bahamut100
Published on 2010-06-17T13:07:48Z Indexed on 2010/06/17 18:03 UTC
Read the original article Hit count: 237

Filed under:
|
|
|

Hi,

I try to give a lot of parameters in a remote_function like this :

<?php 
echo remote_function(array( 'update' => 'test',
                           'url' => 'conges/verifdate',
                           'with' => "'date_deb=' + $('date_debut').value"
                    ));
?>

This code works, in my action.class I can to get the parameter.

But when I try to give a second parameter, it doesn't work :

<?php
    echo remote_function(array( 'update' => 'test',
                           'url' => 'conges/verifdate',
                           'with' => "'date_deb=' + $('date_debut').value"."'+&date_fin=' + $('date_fin')"
                    ))
?>

Why ??

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about AJAX