Ask a Question related to ASP.NET General, Design and Development.
-
Daniel Bass #1
simple javascript not working?!?!?
why doesn't PrintGrid() get called at Print Button OnClick???!??!!
-------------------- Code in aspx file
.....initial stuff
<HEAD>
.... title and meta stuff
<SCRIPT LANGUAGE="javascript">
function GetDate(CtrlName)
{
// 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="CheckWindow();" MS_POSITIONING="GridLayout">
.... other HTML ...
<!-- this works and calls method above... -->
<A HREF="javascript:GetDate('txtEndDate');"><img id=btnToDate
src="images\SmallCalendar.gif" BORDER=0></A>
<!-- this doesn't even called the function?!?!? -->
<BUTTON TYPE="button"
ONCLICK="javascript:PrintGrid();"><b>Print</B></BUTTON>
.... more HTML and closing ...
Daniel Bass Guest
-
Output a query into simple Javascript
Hi I have a query the results of which I'd like to use in Javascript to form the items in a dynamic menu.... eg i run query with results..... -
Simple Javascript question
Hi This works the first time I click the button but wont work after that - not sure why, aim is to make it a toggle really function... -
concatenate in Javascript? simple field validation funciton notworking
function validatePhoneNumber(v) { with(v.form){ stripped=v.value.replace(//g, ''); ........ v.focus(); } } <input type="text"... -
Simple menu in javascript
I have a list on my page. E.G Users : Applications When the user clicks on 1 of them for example "users" I want this to appear : Users :... -
Simple JavaScript question...
What's the command to make something happen as soon as a page is loaded? Thanks! CS -
Daniel Bass #2
Re: simple javascript not working?!?!?
worked, thanks James! I thought alert syntax was : (?)
alert([message]);
new to javascript and nots me favourite.
Daniel Bass Guest



Reply With Quote

