This is a migrated thread and some comments may be shown as answers.

[Solved] Send $checkedRecords and others parameters (ajax)

0 Answers 15 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Milko
Top achievements
Rank 1
Milko asked on 17 May 2011, 06:58 AM
Hi.

I send $checkedRecords to the controler and all works fine:

function agregar_onclick() {
    var $checkedRecords = $(':checked');
    if ($checkedRecords.length < 1) {
        alert('xxxx');
        return;
    }
    $('#result').load('<%= Url.Action("AgregaNuevo", "Solicitudes")%>, $checkedRecords);
}


However, if i try to send another parameter simultaneously, not work, I have tested in several ways:

$('#result').load('<%= Url.Action("AgregaNuevo", "Solicitudes")%>, {checkedRecords:$checkedRecords, param1:param1});
 
$('#result').load('<%= Url.Action("AgregaNuevo", "Solicitudes")%>, {$checkedRecords, param1:param1});

Any idea? How i can send many parameters simultaneously including $checkedRecords?

Regards,

Milko

(sorry for my english)



Tags
Grid
Asked by
Milko
Top achievements
Rank 1
Share this question
or