why doesn't PrintGrid() get called at Print Button OnClick???!??!!
-------------------- Code in aspx file
.....initial stuff
<HEAD>
.... title and meta stuff
<SCRIPT LANGUAGE="javas cript">
function GetDate(CtrlNam e)
{
// this method gets called??!!
....method code
}
function CheckWindow()
{
// linked into the onload body...
....method code
}
function PrintGrid()
{
alert([about to print]); // this doesn't get processed!!! Here
so i knon when it does
parent.overview .focus();
window.print();
alert([printed]);
}
</SCRIPT>
</HEAD>
<BODY onunload="Check Window();" MS_POSITIONING= "GridLayout ">
.... other HTML ...
<!-- this works and calls method above... -->
<A HREF="javascrip t:GetDate('txtE ndDate');"><img id=btnToDate
src="images\Sma llCalendar.gif" BORDER=0></A>
<!-- this doesn't even called the function?!?!? -->
<BUTTON TYPE="button"
ONCLICK="javasc ript:PrintGrid( );"><b>Print</B></BUTTON>
.... more HTML and closing ...
-------------------- Code in aspx file
.....initial stuff
<HEAD>
.... title and meta stuff
<SCRIPT LANGUAGE="javas cript">
function GetDate(CtrlNam e)
{
// this method gets called??!!
....method code
}
function CheckWindow()
{
// linked into the onload body...
....method code
}
function PrintGrid()
{
alert([about to print]); // this doesn't get processed!!! Here
so i knon when it does
parent.overview .focus();
window.print();
alert([printed]);
}
</SCRIPT>
</HEAD>
<BODY onunload="Check Window();" MS_POSITIONING= "GridLayout ">
.... other HTML ...
<!-- this works and calls method above... -->
<A HREF="javascrip t:GetDate('txtE ndDate');"><img id=btnToDate
src="images\Sma llCalendar.gif" BORDER=0></A>
<!-- this doesn't even called the function?!?!? -->
<BUTTON TYPE="button"
ONCLICK="javasc ript:PrintGrid( );"><b>Print</B></BUTTON>
.... more HTML and closing ...
Comment