Quickly complete fix:
function ExecPhp_fillContainer(container_id, text)
{
var container = document.getElementById(container_id);
try {
if ( null !== container ) {
if ( container.length > 0 ) {
var text = document.createTextNode = text;
container.appendChild(text);
} else throw new Error("Container not exists.");
} else throw new Error("Container it's null.");
} catch (e) {
var infoDiv = document.getElementById('message');
if ( 'object' === typeof(infoDiv) ) {
if ( null !== infoDiv ) {
var txtnode = document.createTextNode('JavaScript Error (plugin execPHP): ' + e.message);
infoDiv.appendChild(txtnode);
}
} else alert(e.message);
}
}
But... the best solution it's a global exception handler function and standar JS code. It's just a quickly fix.
S!
PD: Can't edit the first post.