I want to write a form into a createPopup function. Is this possible and how would I do it? I wrote this, but I get an error:
Using a Submit command button does nothing. No error. Nada.
Keith Davis
MCSA, A+, N+, Guru+, Geek+, Child of God++++++
Love and Service
Code:
function ChangeDate($sID, $sDateTime){
var $oWin = window.createPopup();
var $oBody = $oWin.document.body;
$oBody.style.backgroundColor = '#0000FF';
$oBody.style.border = 'solid thin black';
$oBody.innerHTML = '<form name="frmNotInList" method="get" ' +
'action="<?=$_SERVER['PHP_SELF']?>" id="frmNotInList" ' +
'style="margin: 2%; background-color:#FFFFFF; border: ' +
'1px #000000 groove">' +
'<strong>Enter the correct date and time: <br /></strong>' +
'<input type="TEXT" name="' + $sID + '" id="txtDateTime" ' +
'class="patientinput"' +
'style="width: 95%" value="' + $sDateTime + '"><br />' +
'<input type="submit" name="cmdSubmit" id="cmdSubmit" ' +
'onClick="document.frmNotInList.submit()" ' +
'class="patientinput" value="Submit"> <br /><br />' +
'</form>';
$oWin.show(150,150,300,100,document.body);
}
Using a Submit command button does nothing. No error. Nada.
Keith Davis
MCSA, A+, N+, Guru+, Geek+, Child of God++++++
Love and Service