![]() |
|
|
|||||||
| Javascript and Ajax Questions and information about working with Ajax and Javascript in Delphi for PHP. |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
Hi,
I've got a problem with javascript who seems to limite my developping, i explain : I need to show some value came from a row in a DBGrid, in Edit, Combobox and lot of things, so I've decided to use Javascript and code like that for the moment : function JSRowChanged($sender, $params) { ?> document.GestTC.edCommercial.value = DBGridAffaire_Liste.getTableModel().getValue(6, DBGridAffaire_Liste.getFocusedRow()); document.GestTC.edNumero_Affaire.value = DBGridAffaire_Liste.getTableModel().getValue(0, DBGridAffaire_Liste.getFocusedRow()); document.GestTC.edRef_Client.value = DBGridAffaire_Liste.getTableModel().getValue(1, DBGridAffaire_Liste.getFocusedRow()); document.GestTC.dtCreation_Affaire.value = DBGridAffaire_Liste.getTableModel().getValue(5, DBGridAffaire_Liste.getFocusedRow()); document.GestTC.cbAffaire_Origine.value = DBGridAffaire_Liste.getTableModel().getValue(3, DBGridAffaire_Liste.getFocusedRow()); document.GestTC.cbAffaire_Mode_Contact.value = DBGridAffaire_Liste.getTableModel().getValue(4, DBGridAffaire_Liste.getFocusedRow()); document.GestTC.cbAffaire_Client.value = DBGridAffaire_Liste.getTableModel().getValue(1, DBGridAffaire_Liste.getFocusedRow()); document.GestTC.edAffaire_Interlocuteur.value = DBGridAffaire_Liste.getTableModel().getValue(7, DBGridAffaire_Liste.getFocusedRow()); document.GestTC.Edit6.value = DBGridAffaire_Liste.getTableModel().getValue(1, DBGridAffaire_Liste.getFocusedRow()); <?php } I use the function JSRowChanged to do that, my problem is that the third componements work fine, but the other do not, it change only the third lign, the other componement do nothing. so i'm stuck, is this javascript problem ? |
| Sponsored Links |
|
|