Показать сообщение отдельно
Старый 16.02.2011, 12:08   #5  
Shamasher is offline
Shamasher
Участник
 
10 / 10 (1) +
Регистрация: 01.09.2010
В итоге все заработало, но немного по другому:

1) Вызыв теперь происходит так:
PHP код:
retval=window.showModalDialog(CrmURL '/isv/Messages/input.html''child''width=600,height=200,directories=no,menubar=no,modal=yes,resizable=yes,titlebar=no,toolbar=no');
        
alert(retval); 
2) Сам файл input.html содержит такой код:
PHP код:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<
html xmlns="http://www.w3.org/1999/xhtml" >
<
head>
<
script language="javascript"
function 
changeparent() 

window.returnValue=document.getElementById('inputText1').value
window.close();

</script>
    <title>Предупреждение</title>
    <style>
    body { background-color: #deebff; padding: 20px; font-family:Arial; font-size:12px;  }
    p {  }
    a { color:#10418c; }
    h1 { color: #639ace; font-size:18px; font-weight: bold; }
</style>
</head>
<body>
    <h1>Предупреждение</h1>
    <p>Пожалуйста введите причину отказа:</p>
    <input id="inputText1" name="inputText" type="text" size="60">
    <input type="button" value="Отправить" onclick="javascript:changeparent()">    
</body>
</html> 
Спасибо всем, кто отозвался. Надеюсь мое решение кому-нибудь понадобиться