posto il codice fixato per chi si trova con il mio problema
codice:
function submitMessage(message, roomID){
mexIframe = document.getElementById('mexSender');
ck = true;
if(mexIframe)
{
mexIframe.src="../chat.php?module=senderPage";
mexIframe.onload = function()
{
if(ck == true)
{
ck = false;
new send(message, roomID);
}
}
}
function send(msg, roomID)
{
//carico i dati nei form e spedisco il messaggio
mexIframe.contentWindow.document.getElementById('roomIdBox').innerHTML = roomID;
mexIframe.contentWindow.document.getElementById('msgTextInputBox').innerHTML = msg;
mexIframe.contentWindow.document.mexPackage.action = 'chat.php?act=sendMessage';
mexIframe.contentWindow.document.mexPackage.submit();
}
}