This is my first question here, like this.
I have a problem in IE8 where I have a popup form ( window.showDialog()) used to edit receipt information in an accounting system.
This worked fine until I had to add more content by adding a dynamically generated table of input fields. I get the information back to the array, however, where my error seems to be happening. var pinputs = [];- this is what seems to be causing the problem.
js in popup form:
function saveForm() {
if($('user_id')){
var user_id = $F('user_id');
} else {
var user_id = 0;
}
var payments = $$('.payment');
var pinputs = [];
for(var i=0; i<payments.length; i++){
pinputs.push($F(payments[i]));
}
window.returnValue = {received_of: $F('received_of'), user_id: user_id,
note: $F('note'), work_date: $F('work_date'), payment: pinputs};
window.close();
}
js in the parent js file:
function modifyReceiptInformation(id) {
return window.showModalDialog('mod.php?mod=receipts&mode=receipt_edit_popup&wrapper=no&receipt_id=' + id, 'Modify Receipt',"dialogWidth:600px;dialogHeight:500px");
}
, , . , ? JS, .
- Edit -
, var payments = $$('.payment'); - .