Dialog-form and Data

Dialog-form and Data

pearly_030pearly_030 Posts: 42Questions: 0Answers: 0
edited August 2011 in General
Hi,

I'va got a datatable in which when i click on a row a dialo-form appears.
OK.... But i don't arrive to display row's data in my formular's fields.
Can you help me ?
My code
[code]
.....
$('#ireservees tbody tr').live('click',function(){
var vData = oTable2.fnGetData(this);
$('#dialog-form').dialog({
autoOpen: true,
title: 'Confirmation de réservation d\'un véhicule.',
height: 840,
width: 1030,
modal: true,
buttons: {
Annuler: function()
{
$(this).dialog('close');
}
}
});
});
.....

[/code]
[code]
.......

Vous êtes sur le point de réserver le véhicule suivant :



Marque

Modèle



Couleur

Immatriculation



Son emplacement :





Vos dates de réservation :










.....
[/code]

Replies

  • fbasfbas Posts: 1,094Questions: 4Answers: 0
    Can you provide a link?
  • pearly_030pearly_030 Posts: 42Questions: 0Answers: 0
    Thanks fbas but i found the "solution" with a php script in which i put the formular :
    [code]
    $('#dialog-form').load('form.php?marque='+vData[11]
    +'&modele='+vData[12]
    +'&couleur='+vData[13]
    ........
    ).dialog({
    [/code]

    On the other hand can you help me for this question:
    http://www.datatables.net/forums/discussion/6078/autocomplete-filter#Item_1

    Thanks.
  • fbasfbas Posts: 1,094Questions: 4Answers: 0
    I saw that, but since I'm not familiar with .autocomplete() I don't have any insight.
This discussion has been closed.