Link to home
Create AccountLog in
Avatar of neilxt
neilxt

asked on

JavaScript function runs but screen immediately reverts to state pre-function

I have attached an action to a DropDownControl like this...

ddlSchedType.Attributes.Add("OnChange", "setVisible(this.selectedIndex);")

The function setVisible (see code snippet) appears to run correctly. The 3 alerts all display 1 or 0 as appropriate for the drop down item selected. When selX is 1 then pnlDaySelections is replaced by pnlMonthSelections as expected.

But as soon as I click away that third alert box - all the changes I wrought become undone.

If it makes any difference all the code is inside a user control, and the user control appears within the enclosure of an AJAX <asp:updatepanel ID="UpdatePanel7" runat="server"><ContentTemplate> etc..
<script type="text/javascript" language="javascript">
	function setVisible(selX)
	{
		alert(selX);
		var pDay = document.getElementById("<%= pnlDaySelections.ClientID %>");
		var pMth = document.getElementById("<%= pnlMonthSelections.ClientID %>");
		if (selX==0) {
			pDay.style.display = "block"; 
			pMth.style.display = "none"; 
		}
		alert(selX);
		if (selX==1) {
			pDay.style.display = "none"; 
			pMth.style.display = "block"; 
		}
		alert(selX);
	}
</script>

Open in new window

Avatar of GoofyDawg
GoofyDawg
Flag of United States of America image

It would be a lot easier to get to the root of this problem if you attached the generated HTML source code so we could see the context in which this problem occurs. Thanks!
Avatar of neilxt
neilxt

ASKER

Re: It would be a lot easier to get to the root of this problem if you attached the generated HTML source code so we could see the context in which this problem occurs. Thanks!

Seriously? Well OK; but I was trying to avoid sending a huge bundle of code at the risk of overwhelming y'all.


 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!-- Java save == -->
 
<html xmlns="http://www.w3.org/1999/xhtml" >
<head><title>
	FR Warranty Reports Control Panel
</title><link href="common.css" rel="stylesheet" type="text/css" /><link href="calender.css" rel="stylesheet" type="text/css" /> <!-- Styles relating to Calendar_date_picker -->
    
<!-- I moved all the Javascripts to the bottom of the form to avoid the dreaded 'sys' is undefined error -->
 
</head>
<body>
    <!-- Required for some javascript/AJAX reason-->
    <form name="WRCockpit" method="post" action="RWrrntReportingCockpit.aspx" id="WRCockpit">
<div>
<input type="hidden" name="__EVENTTARGET" id="__EVENTTARGET" value="" />
<input type="hidden" name="__EVENTARGUMENT" id="__EVENTARGUMENT" value="" />
<input type="hidden" name="__LASTFOCUS" id="__LASTFOCUS" value="" />
<input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="/wEPDwULLTE1MTQwODU0MjcPZBYCAgMPZBYQAgwPZBYCZg9kFgYCAw8QDxYCHgdFbmFibGVkaGRkFgECAmQCBw8QDxYEHgdWaXNpYmxlZx8AaGRkFgECA2QCCQ8QDxYEHgdDaGVja2VkaB8AaGRkZGQCDQ8PFgIfAGhkZAIPD2QWAmYPZBYCAgEPDxYCHgRUZXh0BRZTUk9CT1xudGF5bG9yIDogQWQgSG9jZGQCEA8PFgIfAWhkZAIRDw8WAh8BZ2RkAhIPZBYCZg9kFgQCAQ8PFgIfAWhkFhYCAQ8PFgQeCENzc0NsYXNzBQZhY3RpdmUeBF8hU0ICAmRkAgMPDxYEHwRlHwUCAmRkAgUPDxYEHwRlHwUCAmRkAgcPDxYEHwRlHwUCAmRkAgkPDxYEHwRlHwUCAmRkAgsPDxYEHwRlHwUCAmRkAg0PDxYEHwRlHwUCAmRkAg8PDxYEHwRlHwUCAmRkAhEPDxYEHwRlHwUCAmRkAhMPFgIeBXN0eWxlBQ1kaXNwbGF5Om5vbmU7FggCAQ8PFgQfBGUfBQICZGQCAw8PFgQfBGUfBQICZGQCBQ8PFgQfBGUfBQICZGQCBw8PFgQfBGUfBQICZGQCFw9kFhpmD2QWDAIBDxYCHwFoZAIDD2QWAmYPZBYCAgEPZBYEAgEPEA8WAh8CaGRkZGQCAw9kFgYCAQ8PFgIfAwUJNy8yNy8yMDA4FgIeCG9uQ2hhbmdlBTZkb2N1bWVudC5XUkNvY2twaXQudFBhcm1zRC52YWx1ZT1mbkRhdGVDaGFuZ2VkKCJDRFIiKTtkAgMPDxYCHwMFCDgvNi8yMDA4FgIfBwU2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w0FHHNldENoZWNrQm94ZXMoJ1dvcmtNb250aHMnKTtkAhMPZBYCZg9kFgQCAw9kFgoCAw8PFgIfAGhkZAIFDw8WAh8AaGRkAgcPDxYCHwBoZGQCCQ8PFgIfAGhkZAILDw8WAh8AaGRkAgUPZBYCAgMPEA8WBh8IBQlVc2VyR3JvdXAfCQUJdXNlckdyb3VwHwpnZBAVAgZBZCBIb2MVQWQgSG9jIGNvcHkgNiBvdmVyZmxvFQIGQWQgSG9jFUFkIEhvYyBjb3B5IDYgb3ZlcmZsbxQrAwJnZxYBZmQCFA9kFgJmD2QWAgIBDw8WAh8AaGRkGAIFHl9fQ29udHJvbHNSZXF1aXJlUG9zdEJhY2tLZXlfXxYTBRF1Y1NjaGVkdWxlciRjaE1vbgURdWNTY2hlZHVsZXIkY2hUdWUFEXVjU2NoZWR1bGVyJGNoV2VkBRF1Y1NjaGVkdWxlciRjaFRodQURdWNTY2hlZHVsZXIkY2hGcmkFEXVjU2NoZWR1bGVyJGNoU2F0BRF1Y1NjaGVkdWxlciRjaFN1bgURdWNTY2hlZHVsZXIkY2hKYW4FEXVjU2NoZWR1bGVyJGNoRmViBRF1Y1NjaGVkdWxlciRjaE1hcgURdWNTY2hlZHVsZXIkY2hBcHIFEXVjU2NoZWR1bGVyJGNoTWF5BRF1Y1NjaGVkdWxlciRjaEp1bgURdWNTY2hlZHVsZXIkY2hKdWwFEXVjU2NoZWR1bGVyJGNoQXVnBRF1Y1NjaGVkdWxlciRjaFNlcAURdWNTY2hlZHVsZXIkY2hPY3QFEXVjU2NoZWR1bGVyJGNoTm92BRF1Y1NjaGVkdWxlciRjaERlYwUGbXZUYWJzDw9kZmQzy2R5RWQ8xSQInhQY24DxRWP6SA==" />
</div>
 
<script type="text/javascript">
//<![CDATA[
var theForm = document.forms['WRCockpit'];
if (!theForm) {
    theForm = document.WRCockpit;
}
function __doPostBack(eventTarget, eventArgument) {
    if (!theForm.onsubmit || (theForm.onsubmit() != false)) {
        theForm.__EVENTTARGET.value = eventTarget;
        theForm.__EVENTARGUMENT.value = eventArgument;
        theForm.submit();
    }
}
//]]>
</script>
 
 
<script src="/WebResource.axd?d=dqIIyxCigEEF395h08A-Mg2&amp;t=633481916364741459" type="text/javascript"></script>
 
 
<script src="/ScriptResource.axd?d=vU4GpwRVmEROBfbC3AJCaFAcqv43KDHYKgOd0aQ2IJHZjOqfuYNR9ByAtyaRiMIrT4znS5nmisavN4ijil76dbRE1KBQh961PXMo06tKQjo1&amp;t=633486874302086301" type="text/javascript"></script>
<script src="/ScriptResource.axd?d=vU4GpwRVmEROBfbC3AJCaFAcqv43KDHYKgOd0aQ2IJHZjOqfuYNR9ByAtyaRiMIrT4znS5nmisavN4ijil76dbR31yQqa2LOhi8jlkBt12IxZDmdEwztWJ5INZ48cV0i0&amp;t=633486874302086301" type="text/javascript"></script>  <!-- name="WRCockpit" -->
    <script type="text/javascript">
//<![CDATA[
Sys.WebForms.PageRequestManager._initialize('ScriptManager1', document.getElementById('WRCockpit'));
Sys.WebForms.PageRequestManager.getInstance()._updateControls(['tUpdatePanel7','tctl05','tctl07','tupFilterControls','tUpdatePanel6'], [], [], 90);
//]]>
</script>
 
        <!-- The hidden values below are to save the scroll position and control ID object.ClieentID) of the "selection list" control on each tab -->
        <input type="hidden" name="Dealers" id="Dealers" value="0" />            
        <input type="hidden" name="Serial_Prefixes" id="Serial_Prefixes" value="0" />    
        <input type="hidden" name="Makes" id="Makes" value="0" />              
        <input type="hidden" name="Models" id="Models" value="0" />             
        <input type="hidden" name="Fails" id="Fails" value="0" />              
        <input type="hidden" name="Books" id="Books" value="0" />              
        <input type="hidden" name="Operations" id="Operations" value="0" />         
        <input type="hidden" name="Groups" id="Groups" value="0" />             
        <input type="hidden" name="Sections" id="Sections" value="0" />           
        <input type="hidden" name="Types" id="Types" value="0" />              
        <input type="hidden" name="Processors" id="Processors" value="0" />              
    <div id="header"><img src="images/logo.gif" alt="Warranty Reporting Control Center" /></div>
    <div id="subheader">
        <div id="UpdatePanel7">
	
            <div>
            <label for="ddlReports" id="lblddlReports" class="rptselectionlbl">Select a report:</label>
            <select name="ddlReports" onchange="javascript:setTimeout('__doPostBack(\'ddlReports\',\'\')', 0)" id="ddlReports" disabled="disabled" class="rptselection">
		<option value="rptChassisTrackExtdWarranty">Extended Warranty Report</option>
		<option value="rptClaimsByCodeDealer">Claims by Type/Dealer</option>
		<option selected="selected" value="rptTop10FailuresSum">Top 10 Report</option>
		<option value="rptNewRetReg">Retail Registration Report</option>
 
	</select>
                
 
            
                <select name="ddlSeq" id="ddlSeq" disabled="disabled" class="rptselection">
		<option value="">Summary</option>
		<option value="_TSF">Type/Serial/Failure code</option>
		<option value="_TFS">Type/Failure Code/Serial</option>
		<option selected="selected" value="_FTS">Failure code/Type/Serial</option>
		<option value="_FST">Failure code/Serial/Type</option>
 
	</select>
            <!-- Moved off the "Type" tab because it relates to forms, not selection criteria.
                Visibility will be determined by report selection -->
                
            </div>
        
</div>
        
        <input type="submit" name="bGo" value="" id="bGo" disabled="disabled" class="btnRunReport" />  
		<input type="submit" name="bSched" value="" onclick="javascript:WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions(&quot;bSched&quot;, &quot;&quot;, true, &quot;&quot;, &quot;&quot;, false, false))" id="bSched" class="btnSchedReport" />      
    </div>
    
	<div id="ctl05">
	
		<div style="float:right;">
			Current User : Filter Set    
			<input name="tUserID" type="text" value="SROBO\ntaylor : Ad Hoc" readonly="readonly" id="tUserID" title="The User ID under which all your parameter sets are stored." style="color:Black;border-style:None;font-size:9px;width:205px;" />
		</div>
	
</div>
    
    <div id="divHeadSched">
	<h2>Schedule</h2>
</div>
    
    <table id="contentTable">
    <tr>
    <td><!-- This innocuous looking little TD is actually the whole lower left quadrant including the tabs,
         all the selection user controls and the multiview control that contains them -->
         
    <!-- Filter -->
	<div id="ctl07">
	
    
    
    <div id="pnlScheduleReport">
		
		<!--==========================================================-->
		<!-- ========== Alternate control for scheduling ======= -->
		<!--==========================================================-->
        
<link href="common.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" language="javascript">
	function setVisible(selX)
	{
		alert(selX);
		var pDay = document.getElementById("ucScheduler_pnlDaySelections");
		var pMth = document.getElementById("ucScheduler_pnlMonthSelections");
		if (selX==0) {
			pDay.style.display = "block"; 
			pMth.style.display = "none"; 
		}
		alert(selX);
		if (selX==1) {
			pDay.style.display = "none"; 
			pMth.style.display = "block"; 
		}
		alert(selX);
	}
	function setCheckBoxes(selX)
	{
		alert(selX);
		switch (selX)
		{
		case "AllDays":	
			document.getElementById("ucScheduler_chMon").checked = true;
			document.getElementById("ucScheduler_chTue").checked = true;
			document.getElementById("ucScheduler_chWed").checked = true;
			document.getElementById("ucScheduler_chThu").checked = true;
			document.getElementById("ucScheduler_chFri").checked = true;
			document.getElementById("ucScheduler_chSat").checked = true;
			document.getElementById("ucScheduler_chSun").checked = true;
			break;
		case "WorkDays" :
			document.getElementById("ucScheduler_chMon").checked = true;
			document.getElementById("ucScheduler_chTue").checked = true;
			document.getElementById("ucScheduler_chWed").checked = true;
			document.getElementById("ucScheduler_chThu").checked = true;
			document.getElementById("ucScheduler_chFri").checked = true;
			document.getElementById("ucScheduler_chSat").checked = false;
			document.getElementById("ucScheduler_chSun").checked = false;
			break;
		case "ClearDays":
			document.getElementById("ucScheduler_chMon").checked = false;
			document.getElementById("ucScheduler_chTue").checked = false;
			document.getElementById("ucScheduler_chWed").checked = false;
			document.getElementById("ucScheduler_chThu").checked = false;
			document.getElementById("ucScheduler_chFri").checked = false;
			document.getElementById("ucScheduler_chSat").checked = false;
			document.getElementById("ucScheduler_chSun").checked = false;
			break;
		case "AllMonths":
			document.getElementById("ucScheduler_chJan").checked = true;
			document.getElementById("ucScheduler_chFeb").checked = true;
			document.getElementById("ucScheduler_chMar").checked = true;
			document.getElementById("ucScheduler_chApr").checked = true;
			document.getElementById("ucScheduler_chMay").checked = true;
			document.getElementById("ucScheduler_chJun").checked = true;
			document.getElementById("ucScheduler_chJul").checked = true;
			document.getElementById("ucScheduler_chAug").checked = true;
			document.getElementById("ucScheduler_chSep").checked = true;
			document.getElementById("ucScheduler_chOct").checked = true;
			document.getElementById("ucScheduler_chNov").checked = true;
			document.getElementById("ucScheduler_chDec").checked = true;
			break;
		case "ClearMonths":
			document.getElementById("ucScheduler_chJan").checked = false;
			document.getElementById("ucScheduler_chFeb").checked = false;
			document.getElementById("ucScheduler_chMar").checked = false;
			document.getElementById("ucScheduler_chApr").checked = false;
			document.getElementById("ucScheduler_chMay").checked = false;
			document.getElementById("ucScheduler_chJun").checked = false;
			document.getElementById("ucScheduler_chJul").checked = false;
			document.getElementById("ucScheduler_chAug").checked = false;
			document.getElementById("ucScheduler_chSep").checked = false;
			document.getElementById("ucScheduler_chOct").checked = false;
			document.getElementById("ucScheduler_chNov").checked = false;
			document.getElementById("ucScheduler_chDec").checked = false;
			break;
		default:
		alert ("What the heck is " + selX);
		break;
		}
		alert(selX);
	}
</script>
 
<style type="text/css">
    .style1 {width: 79px;}
</style>
 
<script type="text/javascript">
 
</script>
<div id="ucScheduler_Panel1">
			
	<table style="width: 100%; height: 100px" class="topfiltersearch">
				<tr>
					<td align="right"><span id="ucScheduler_lblReport" style="display:inline-block;width:100px;">Schedule Report: </span></td>
					<td><input name="ucScheduler$tReport" type="text" value="Top 10 Report" id="ucScheduler_tReport" disabled="disabled" style="width:250px;" /></td>
					<td><input type="submit" name="ucScheduler$bCancel" value="Cancel" onclick="javascript:WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions(&quot;ucScheduler$bCancel&quot;, &quot;&quot;, true, &quot;&quot;, &quot;&quot;, false, false))" id="ucScheduler_bCancel" title="Cancel the schedule parameters frame" class="stdBtn" /></td>
				</tr>
				<tr>
					<td align="right"><span id="ucScheduler_lblFor" style="display:inline-block;width:100px;">For User: </span></td>
					<td><input name="ucScheduler$tFor" type="text" value="someone@somewhere.com" id="ucScheduler_tFor" disabled="disabled" style="width:300px;" /></td>
					<td></td>
				</tr>
				<tr>
					<td align="right"><span id="ucScheduler_lblFilter" style="display:inline-block;width:100px;">Using Filter Set: </span></td>
					<td><input name="ucScheduler$tFilter" type="text" value="Ad Hoc" id="ucScheduler_tFilter" disabled="disabled" style="width:250px;" /></td>
					<td><input type="submit" name="ucScheduler$bSchedule" value="Schedule" onclick="javascript:WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions(&quot;ucScheduler$bSchedule&quot;, &quot;&quot;, true, &quot;&quot;, &quot;&quot;, false, false))" id="ucScheduler_bSchedule" title="Create a schedule with these parameters" class="stdBtn" /></td>
				</tr>
			</table>
			
	<table style="width: 100%;" class="topfiltersearch">
				<tr>
					<td>Type of Schedule :</td>
					<td>
				<!--    OnSelectedIndexChanged="ddlSchedType_SelectedIndexChanged" -->
			<select name="ucScheduler$ddlSchedType" onchange="setVisible(this.selectedIndex);setTimeout('__doPostBack(\'ucScheduler$ddlSchedType\',\'\')', 0)" id="ucScheduler_ddlSchedType" class="ddlMedium" style="width:120px;">
						<option selected="selected" value="Weekly">Day/Week</option>
						<option value="Monthly">Month/Year</option>
 
					</select>
		</td>
					<td></td>
				</tr>
				<tr>
					<td colspan="2">
			<div id="ucScheduler_pnlDaySelections" style="display:block">
						
			<table><tr>
				<td valign="top">
					<input type="submit" name="ucScheduler$bAllDays" value="Every Day" onclick="setCheckBoxes('AllDays');WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions(&quot;ucScheduler$bAllDays&quot;, &quot;&quot;, true, &quot;&quot;, &quot;&quot;, false, false))" id="ucScheduler_bAllDays" class="stdBtn" AutoPostBack="true" /><br/>
					<input type="submit" name="ucScheduler$bAllWorkDays" value="Every Weekday" onclick="setCheckBoxes('WorkDays');WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions(&quot;ucScheduler$bAllWorkDays&quot;, &quot;&quot;, true, &quot;&quot;, &quot;&quot;, false, false))" id="ucScheduler_bAllWorkDays" class="stdBtn" AutoPostBack="true" />
					<input type="submit" name="ucScheduler$bClearDays" value="Clear" onclick="setCheckBoxes('ClearDays');WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions(&quot;ucScheduler$bClearDays&quot;, &quot;&quot;, true, &quot;&quot;, &quot;&quot;, false, false))" id="ucScheduler_bClearDays" class="stdBtn" AutoPostBack="true" />
				</td>
				<td>
					<table>
						<tr>
							<td valign="top">
								<input id="ucScheduler_chMon" type="checkbox" name="ucScheduler$chMon" /><label for="ucScheduler_chMon">Monday</label><br/>
								<input id="ucScheduler_chTue" type="checkbox" name="ucScheduler$chTue" /><label for="ucScheduler_chTue">Tuesday</label><br/>
								<input id="ucScheduler_chWed" type="checkbox" name="ucScheduler$chWed" /><label for="ucScheduler_chWed">Wednesday</label><br/>
								<input id="ucScheduler_chThu" type="checkbox" name="ucScheduler$chThu" /><label for="ucScheduler_chThu">Thursday</label><br/>
								<input id="ucScheduler_chFri" type="checkbox" name="ucScheduler$chFri" /><label for="ucScheduler_chFri">Friday</label><br/>
							</td>
							<td valign="top">
								<input id="ucScheduler_chSat" type="checkbox" name="ucScheduler$chSat" /><label for="ucScheduler_chSat">Saturday</label><br/>
								<input id="ucScheduler_chSun" type="checkbox" name="ucScheduler$chSun" /><label for="ucScheduler_chSun">Sunday</label><br/>
							</td>
					</tr></table>
				</td>
			</tr></table>
			
					</div>
			
			<div id="ucScheduler_pnlMonthSelections" style="display:none">
						
			<table><tr>
				<td valign="top">
					<input type="submit" name="ucScheduler$bAllMonths" value="Every Month" onclick="setCheckBoxes('AllMonths');WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions(&quot;ucScheduler$bAllMonths&quot;, &quot;&quot;, true, &quot;&quot;, &quot;&quot;, false, false))" id="ucScheduler_bAllMonths" class="stdBtn" AutoPostBack="true" style="font-size:10pt;" /><br/>
					<input type="submit" name="ucScheduler$bClearMonths" value="Clear" onclick="setCheckBoxes('WorkMonths');WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions(&quot;ucScheduler$bClearMonths&quot;, &quot;&quot;, true, &quot;&quot;, &quot;&quot;, false, false))" id="ucScheduler_bClearMonths" class="stdBtn" AutoPostBack="true" style="font-size:10pt;" /><br/>
				</td>
				<td>
					<table>
						<tr>
							<td valign="top">
								<input id="ucScheduler_chJan" type="checkbox" name="ucScheduler$chJan" /><label for="ucScheduler_chJan">January</label><br/>
								<input id="ucScheduler_chFeb" type="checkbox" name="ucScheduler$chFeb" /><label for="ucScheduler_chFeb">February</label><br/>
								<input id="ucScheduler_chMar" type="checkbox" name="ucScheduler$chMar" /><label for="ucScheduler_chMar">March</label><br/>
							</td>
							<td valign="top">
								<input id="ucScheduler_chApr" type="checkbox" name="ucScheduler$chApr" /><label for="ucScheduler_chApr">April</label><br/>
								<input id="ucScheduler_chMay" type="checkbox" name="ucScheduler$chMay" /><label for="ucScheduler_chMay">May</label><br/>
								<input id="ucScheduler_chJun" type="checkbox" name="ucScheduler$chJun" /><label for="ucScheduler_chJun">Jun</label><br/>
							</td>
							<td valign="top">
								<input id="ucScheduler_chJul" type="checkbox" name="ucScheduler$chJul" /><label for="ucScheduler_chJul">July</label><br/>
								<input id="ucScheduler_chAug" type="checkbox" name="ucScheduler$chAug" /><label for="ucScheduler_chAug">August</label><br/>
								<input id="ucScheduler_chSep" type="checkbox" name="ucScheduler$chSep" /><label for="ucScheduler_chSep">September</label><br/>
							</td>
							<td valign="top">
								<input id="ucScheduler_chOct" type="checkbox" name="ucScheduler$chOct" /><label for="ucScheduler_chOct">Oct</label><br/>
								<input id="ucScheduler_chNov" type="checkbox" name="ucScheduler$chNov" /><label for="ucScheduler_chNov">November</label><br/>
								<input id="ucScheduler_chDec" type="checkbox" name="ucScheduler$chDec" /><label for="ucScheduler_chDec">December</label><br/>
							</td>
					</tr></table>
				</td>
			</tr></table>
			
					</div>
		</td>
					<td></td>
				</tr>
				<tr>
					<td></td>
					<td></td>
					<td></td>
				</tr>
			</table>
			
 
		</div>
 
 
    
	</div>
    
</div>
    
    </td>
    <td class="spacercol_blank">&nbsp;</td>
    <!-- COLUMN 3 OF THE BODY ... ADD/DELETE SETS AND SHOW SUMMARY -->
    <td><!-- Controls to create a new user filter group. -->
        <div id="upFilterControls">
	
        <input type="hidden" name="hfUserGroup" id="hfUserGroup" value="Ad Hoc" />
        <!-- only one of the next 5 panels should be visible. Normally the first otherwise whichever one of the others was selected from this one -->
        <div id="pnlFilterActions">
		
			<span id="lblFilterActions">Filter Set : </span>
            <input type="submit" name="bFltrSaveNew" value="New" id="bFltrSaveNew" disabled="disabled" title="Create a new empty parameer set with the new name" class="stdBtn" />
            <input type="submit" name="bFltrSaveAs" value="Copy" id="bFltrSaveAs" disabled="disabled" title="Save the current Parameter set with a new name" class="stdBtn" />
            <input type="submit" name="bFltrDel" value="Del" id="bFltrDel" disabled="disabled" title="Delete the current filter set" class="stdBtn" />
            <input type="submit" name="bFltrRes" value="Reset" id="bFltrRes" disabled="disabled" title="Reset the current filter set to defaults" class="stdBtn" />
            <input type="submit" name="bFltrSel" value="Select" id="bFltrSel" disabled="disabled" title="Select a new filter set" class="stdBtn" />
        
	</div>
        
        
        
        
        
        
        
        
        
        
        
</div>
        
        <!-- Paramerter list summary -->            
        <div id="UpdatePanel6">
	
        <div id="currentcontentbox">
                 <input type="submit" name="bDesc" value="Summarize Filters" id="bDesc" disabled="disabled" class="stdBtn" /><br />
                 <textarea name="tParmsD" rows="25" cols="20" id="tParmsD" style="width:300px;">Claim Range, Sold Date, Serial Range, VIN Last7, Dealers, Prefix, Makes, Models, Book, Type Codes, Fail, Process:  
 
Where (V4) --- 
- Claim Date - Last Week to Date
- Sold date - Last Full Year
- Processed date - Week To Date
- Serial# - ALL
- Vin last 7 - ALL
- Dealers - In List (0000003)
- Prefix In List (OD , OD1, OD2, OD3, OD5, OD6, OD7, OD8, OD9, ODA, ODC, ODE, ODJ, ODL, ODM, ODN, ODP, ODR, ODS, ODT)
- Models In List (S-21RGS)
- Makes In List (Test Make; THOROUGHBRED062906)
- - Book In List (00, 30)
- - Section In List (Bus LP Sec, Bus Electr)
- - Operation In List (ADJUST/REP)
- - Group In List (Air Horns)
- Type codes In List (10-001)
- Fail codes  in List (005)
- Processors In List ()
</textarea>
        </div>
        
</div>
    </td>
    </tr>
    </table>
 
<!-- I moved all the Javascripts to the bottom of the form to avoid the dreaded 'sys' is undefined error -->
	<script src="calender_date_picker.js" type="text/javascript"></script> 
    <script type="text/javascript"> 
    // I think this is required so that we can get events from AJAX
    var prm = Sys.WebForms.PageRequestManager.getInstance();
    prm.add_pageLoaded(pageLoaded);
    prm.add_beginRequest(beginRequest);
    var postbackElement;
    //The following pieces
    function beginRequest(sender, args) {
        //save the name(s) of the part(s) of the page being posted back
        postbackElement = args.get_postBackElement();
    }
 
    function pageLoaded(sender, args) {
        var updatedPanels = args.get_panelsUpdated();
        if (typeof(postbackElement) == "undefined") {
            return;
        }
        //find the scrollable control using the client ID saved for it and set its scrolltop value to the saved value
        // Takes the general form ...
        //  If one of the scrollable fields is on the page then
        //      $get(ClientID for the control passed in session variable).scrolltop = $get("invisible field for this control").value
            var x;
            // if the control exists, set its scrolltop to the saved value for that control .
            x= $get('SelDealers2_pnlSourceList');          if (x){x.scrollTop = $get("Dealers").value;} 
            x= $get('ucSelSerPfx2_pnlSourceList');  if (x){x.scrollTop = $get("Serial_Prefixes").value;} 
            x= $get('uSelMake2_pnlSourceList');            if (x){x.scrollTop = $get("Makes").value;} 
            x= $get('ucSelModel2_pnlSourceList');           if (x){x.scrollTop = $get("Models").value;} 
            x= $get('ucWRPFail2_pnlSourceList');            if (x){x.scrollTop = $get("Fails").value;} 
            x= $get('ucWRPBook2_pnlSourceList');            if (x){x.scrollTop = $get("Books").value;} 
            x= $get('ucBookOperation2_pnlSourceList');       if (x){x.scrollTop = $get("Operations").value;} 
            x= $get('ucBookGroup2_pnlSourceList');           if (x){x.scrollTop = $get("Groups").value;} 
            x= $get('ucBookSection2_pnlSourceList');         if (x){x.scrollTop = $get("Sections").value;} 
            x= $get('ucWRPType2_pnlSourceList');            if (x){x.scrollTop = $get("Types").value;} 
            x= $get('ucProcessor2_pnlSourceList');       if (x){x.scrollTop = $get("Processors").value;} 
     }
    //--END of routines to save and restore scroll positions -------------------//
    
        function fnChanged(){
            return "Changed... \r\nClick 'View Current Filters' to apply changes and refresh summary";
        }
        function fnDateChanged(Choice){
            if (Choice == "CDR") {document.getElementById('ddlSDClaim').selectedIndex = 0;}
            if (Choice == "SDR") {document.getElementById('ddlSDSold').selectedIndex = 0;}
            if (Choice == "PDR") {document.getElementById('ddlSDProcessed').selectedIndex = 0;}
            return fnChanged();
        }
             </script>
<!-- end of Javascripts moved down here to avoid the dreaded 'sys' is not defined error -->
    
<!-- ====================================================== end of form  =========================================== -->
 
<div>
 
	<input type="hidden" name="__EVENTVALIDATION" id="__EVENTVALIDATION" value="/wEWQQKpxoi2CALHhqzsCgLM6ue2AQLP4ZO6BwK7lNz5AgLKi4zEAQLwg9ugBwL4/66sDgKOg9PUCwKnrpqnBQKN3qvpBwKln7iXAQLDhLKXCwKP8PyQAgLW2qzaDgK50YLwDAKni4HiDAKTwdGaBQKvt/63BgKuhLOeDwLEntCcBgKvt56PBQKti/yrCQKSoc63CgLh/8T1BALT/IzSCgLx3uaYCQLz2oDKAwL06c2xCgKOpKubCgKVtd6GAwKBy8+aBwLTzIrvBAKG8c+rCQK06NufCgKW0+6SBAL0v8H8AQLI+Z+UBAKYtbmGDgLY+eNnArrf9KMFAryQkp4IAraQgv8JAo36374LAr6+gukOAqOEwIYCArPf+MQGAoDAmUYCvNGH8AMCh8CZRgKjhLDnAwKhhLDnAwKp0aOoCALAkMKxBQKwkq26AwKXqd+RDAL+jL2aAgLj5PLdDAKp4JvuBQLD+ooRAv3/wJoIAv3/9N0NAv3//JkIAsLzmZUKAtyo9bgFy3RHDuK7lYVaa4av+x+N2aED0Hc=" />
</div>
 
<script type="text/javascript">
//<![CDATA[
Sys.Application.initialize();
//]]>
</script>
</form>
<!-- ====================================================== end of form  =========================================== -->
 
<!-- Table for CALENDar DEFINITION; i GUESS -->
<table id="calenderTable">
<tbody id="calenderTableHead">
<tr>
 
 <td colspan="4" align="left">
	<select onchange="showCalenderBody(createCalender(document.getElementById('selectYear').value, this.selectedIndex, false));" 
	        id="selectMonth">
	 <option value="0">January</option>
	 <option value="1">February</option>
	 <option value="2">March</option>
	 <option value="3">April</option>
	 <option value="4">May</option>
 
	 <option value="5">June</option>
	 <option value="6">July</option>
	 <option value="7">August</option>
	 <option value="8">September</option>
	 <option value="9">October</option>
	 <option value="10">November</option>
	 <option value="11">December</option>
	</select>
 </td>
 <td colspan="2" align="center"><select onchange="showCalenderBody(createCalender(this.value, document.getElementById('selectMonth').selectedIndex, false));" id="selectYear"></select></td>
 <td align="right"><a href="#" onclick="closeCalender();">X</a></td>
</tr>
</tbody>
<tbody id="calenderTableDays">
<tr style="">
 <td>Su</td><td>Mo</td><td>Tu</td><td>We</td><td>Thu</td><td>Fr</td><td>Sa</td>
 
</tr>
</tbody>
<tbody id="calender"></tbody>
</table>
<!-- End of the Calender //-->
</body>
</html>

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of Lolly-Ink
Lolly-Ink
Flag of Australia image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
Avatar of neilxt

ASKER

The onchange of the select element calls the setVisible function, and then calls the __doPostBack function which submits the form. Submitting the form must be restoring the original form settings.
It does?
...
Oh, my; it DOES! I forgot to set the autopostback off.
Gongratulations and thank you.
Avatar of neilxt

ASKER

Very good job, and thank you so much for your help.