Ik zit met het volgende probleem:
In FireFox geeft prototype de volgende error:
getValue()(null)prototype.js (regel (3517)
modify_ip(45)javascri...beheer.js (regel (74)
onclick(click clientX=758, clientY=413)
var method = element.tagName.toLowerCase();
Echter werkt in IE alles feilloos. Dit Javascriptje word gebruikt:
function modify_ip(kid){
var amount = $F('amount'+kid);
var information = $F('information'+kid);
var url = 'includes/pages/ajax/admin_editip.php';
var params = 'k_id=' + kid + '&amount=' + amount + '&information=' + information;
new Ajax.Updater('ajaxresponse', url, { method: 'get', parameters: params });
document.getElementById("ajaxresponse").style.display = "block";
}HTML / PHP:
<?php
echo '<tr>
<td>' . $result_p['name'] . '</td>
<td><input type="text" name="amount'.$result_ip['k_id'].'" value="' . $result_ip['amount'] .
'" /></td>
<td><input type="text" name="information'.$result_ip['k_id'].'" value="' . $result_ip['information'] .
'" /></td>
<td width="37"><a href="#" onclick="confirm_deleteip(' . $result_ip['k_id'] .
')"><img src="images/icons/delete.png" width="16" height="16" title="Product verwijderen van factuur" /></a></td>
<td width="37"><a href="#" onclick="modify_ip(' . $result_ip['k_id'] .
')"><img src="images/icons/done.png" width="16" height="16" title="Aanpassen" /></a></td>
</tr>';
?>
Zoals je ziet, is de HTML & PHP gewoon oké. Ik zit hier al een paar dagen mee te klooien, en heb de moed maar opgegeven. Heeft er iemand een oplossing?
Alvast bedankt,
Niels.
P.S: Ik gebruik Prototype versie 1.6.0.2