473,809 Members | 2,699 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Runtime-fout Microsoft JScript: 'document.Overu renDecl.txtMede werker' is empty or not

72 New Member
Hey Guys,

i have a question about that error is there a specfick thing were the error on focus becase i have a DOTNET project and it shows on almost evry page that error if i whanne add something only the name of the document and txtbox is diferent on the other pages

Pleas help me

this is the compleet error Runtime-fout Microsoft JScript: 'document.Overu renDecl.txtMede werker' is empty or not an object
Oct 14 '08 #1
26 3752
acoder
16,027 Recognized Expert Moderator MVP
It's difficult to say without seeing some code. Post your code.
Oct 14 '08 #2
asmx126453
72 New Member
okey i have 2 pages were i am working from both aspx and he problery whants to take a value from a javascript

well okey here is some of the code were i think the error is being caused

OverurenDecl.as px this is the page were i whanne go to by the press of a button

Expand|Select|Wrap|Line Numbers
  1. <%@ Page language="c#" Inherits="DotNet.OverurenDecl" CodeFile="OverurenDecl.aspx.cs" %>
  2. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
  3. <HTML>
  4.     <HEAD>
  5.         <title>OverurenDecl</title>
  6.         <meta content="Microsoft Visual Studio 7.0" name="GENERATOR">
  7.         <meta content="C#" name="CODE_LANGUAGE">
  8.         <meta content="JavaScript" name="vs_defaultClientScript">
  9.         <meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
  10.         <script language="javascript" src="AlgemeneFuncties.js"></script>
  11.         <script language="javascript">
  12.         function UpdateTotal()
  13.         {
  14.             var Total = 0;
  15.             var i;
  16.             for(i=0; document.getElementById('UpdateTijd' + i); i++)
  17.             {
  18.                 Total = Total + document.getElementById('UpdateTijd' + i).value.replace(",",".") * 1;
  19.             }
  20.             Total = Total + document.OverurenDecl.NewTijd0.value.replace(",",".") * 1;
  21.             Total = Total + document.OverurenDecl.NewTijd1.value.replace(",",".") * 1;
  22.             Total = Total + document.OverurenDecl.NewTijd2.value.replace(",",".") * 1;
  23.             Total = Total + document.OverurenDecl.NewTijd3.value.replace(",",".") * 1;
  24.             Total = Total + document.OverurenDecl.NewTijd4.value.replace(",",".") * 1;
  25.  
  26.             document.OverurenDecl.txtTotaalTijd.value = Total;
  27.         }
  28.  
  29.         function CalcUren(TijdVan, TijdTot, Pauze, Tijd)
  30.         {
  31.             Tijd.readOnly = !Pauze;
  32.             if (Pauze)
  33.                 return;
  34.             var Tijd1 = GetMin(TijdVan.value) * 1;
  35.             Tijd1 += GetUur(TijdVan.value) * 60;
  36.             var Tijd2 = GetMin(TijdTot.value) * 1;
  37.             Tijd2 += GetUur(TijdTot.value) * 60;
  38.             if (Tijd1 < 0 || Tijd2 < 0)
  39.                 return;
  40.             Tijd.value = (Tijd2 - Tijd1) / 60;
  41.             TijdVan.value = Math.floor(Tijd1 / 60) + ":" + FixZero(Tijd1 % 60);
  42.             TijdTot.value = Math.floor(Tijd2 / 60) + ":" + FixZero(Tijd2 % 60);
  43.             UpdateTotal();
  44.         }
  45.         </script>
  46.         <LINK href="style.css" type="text/css" rel="stylesheet">
  47.     </HEAD>
  48.     <body onload="InitCombobox(document.OverurenDecl.txtMedewerker, document.OverurenDecl.ddlMedewerker);UpdateTotal();">
  49.         <form method="post" runat="server">
  50.             <h1>Overuren Declaratie</h1>
  51.             <asp:dropdownlist id="ddlMedewerker" style="Z-INDEX: 101; LEFT: 177px; POSITION: absolute; TOP: 86px" runat="server" AutoPostBack="True" Width="300px" onselectedindexchanged="ddlMedewerker_SelectedIndexChanged"></asp:dropdownlist>
  52.             <table width="728">
  53.                 <tr>
  54.                     <td style="WIDTH: 334px" align="right"><asp:imagebutton id="imgVerwijder" onfocus="this.blur()" tabIndex="23" runat="server" Visible="False" ImageUrl="images\verwijderen.gif"></asp:imagebutton></td>
  55.                     <td style="WIDTH: 196px" align="right" width="196"><asp:imagebutton id="imgBtnEdit" tabIndex="24" runat="server" ImageUrl="images\opslaan.gif"></asp:imagebutton></td>
  56.                     <td align="right" width="200"><asp:imagebutton id="imgAfdruk" tabIndex="25" runat="server" ImageUrl="images\VZprintenopslaan.gif"></asp:imagebutton></td>
  57.                 </tr>
  58.             </table>
  59.             <br>
  60.             <table width="100%">
  61.                 <tr>
  62.                     <td>Medewerker</td>
  63.                     <td colSpan="3"><asp:textbox id="txtMedewerker" onkeyup="javascript:KlantlijstChange(document.OverurenDecl.txtMedewerker, document.OverurenDecl.ddlMedewerker);" runat="server" Width="300px"></asp:textbox></td>
  64.                 </tr>
  65.                 <tr>
  66.                     <td>Woonplaats</td>
  67.                     <td colSpan="3"><asp:textbox id="txtWoonplaats" runat="server" Width="300px"></asp:textbox></td>
  68.                 </tr>
  69.                 <tr>
  70.                     <td>BankNR</td>
  71.                     <td><asp:textbox id="txtBankNR" runat="server"></asp:textbox></td>
  72.                     <td align="right" rowSpan="2">Verrekenen:</td>
  73.                     <td rowSpan="2"><asp:radiobuttonlist id="optVerreken" runat="server">
  74.                             <asp:ListItem Value="0" Selected="True">Uitbetalen</asp:ListItem>
  75.                             <asp:ListItem Value="1">Compenseren</asp:ListItem>
  76.                         </asp:radiobuttonlist></td>
  77.                 </tr>
  78.                 <tr>
  79.                     <td>GiroNR</td>
  80.                     <td><asp:textbox id="txtGiroNR" runat="server"></asp:textbox></td>
  81.                 </tr>
  82.                 <tr>
  83.                     <td>Datum Ingeleverd</td>
  84.                     <td><asp:textbox id="txtDatum" runat="server"></asp:textbox></td>
  85.                     <td align="right">Verwerkt:</td>
  86.                     <td><asp:checkbox id="chkVerwerkt" runat="server"></asp:checkbox></td>
  87.                 </tr>
  88.             </table>
  89.             <br>
  90.             <table cellSpacing="0" cellPadding="0">
  91.                 <tr>
  92.                     <th>
  93.                         Datum</th>
  94.                     <th>
  95.                         Van</th>
  96.                     <th>
  97.                         Tot</th>
  98.                     <th>
  99.                         Relatie</th>
  100.                     <th>
  101.                         Pauze</th>
  102.                     <th>
  103.                         Tijd Totaal</th></tr>
  104.                 <span id="TableSpan" runat="server"></span>
  105.                 <tr>
  106.                     <td><input type="text" size="10" name="NewDatum0"></td>
  107.                     <td><input onblur="CalcUren(NewTijdVan0, NewTijdTot0, NewPauze0.checked, NewTijd0)" type="text" size="5" name="NewTijdVan0"></td>
  108.                     <td><input onblur="CalcUren(NewTijdVan0, NewTijdTot0, NewPauze0.checked, NewTijd0)" type="text" size="5" name="NewTijdTot0"></td>
  109.                     <td><input type="text" size="30" name="NewRelatie0"></td>
  110.                     <td align="middle"><input onclick="CalcUren(NewTijdVan0, NewTijdTot0, NewPauze0.checked, NewTijd0)" type="checkbox" name="NewPauze0"></td>
  111.                     <td><input onblur="UpdateTotal();" readOnly type="text" size="10" name="NewTijd0"></td>
  112.                 </tr>
  113.                 <tr>
  114.                     <td><input type="text" size="10" name="NewDatum1"></td>
  115.                     <td><input onblur="CalcUren(NewTijdVan1, NewTijdTot1, NewPauze1.checked, NewTijd1)" type="text" size="5" name="NewTijdVan1"></td>
  116.                     <td><input onblur="CalcUren(NewTijdVan1, NewTijdTot1, NewPauze1.checked, NewTijd1)" type="text" size="5" name="NewTijdTot1"></td>
  117.                     <td><input type="text" size="30" name="NewRelatie1"></td>
  118.                     <td align="middle"><input onclick="CalcUren(NewTijdVan1, NewTijdTot1, NewPauze1.checked, NewTijd1)" type="checkbox" name="NewPauze1"></td>
  119.                     <td><input onblur="UpdateTotal();" readOnly type="text" size="10" name="NewTijd1"></td>
  120.                 </tr>
  121.                 <tr>
  122.                     <td><input type="text" size="10" name="NewDatum2"></td>
  123.                     <td><input onblur="CalcUren(NewTijdVan2, NewTijdTot2, NewPauze2.checked, NewTijd2)" type="text" size="5" name="NewTijdVan2"></td>
  124.                     <td><input onblur="CalcUren(NewTijdVan2, NewTijdTot2, NewPauze2.checked, NewTijd2)" type="text" size="5" name="NewTijdTot2"></td>
  125.                     <td><input type="text" size="30" name="NewRelatie2"></td>
  126.                     <td align="middle"><input onclick="CalcUren(NewTijdVan2, NewTijdTot2, NewPauze2.checked, NewTijd2)" type="checkbox" name="NewPauze2"></td>
  127.                     <td><input onblur="UpdateTotal();" readOnly type="text" size="10" name="NewTijd2"></td>
  128.                 </tr>
  129.                 <tr>
  130.                     <td><input type="text" size="10" name="NewDatum3"></td>
  131.                     <td><input onblur="CalcUren(NewTijdVan3, NewTijdTot3, NewPauze3.checked, NewTijd3)" type="text" size="5" name="NewTijdVan3"></td>
  132.                     <td><input onblur="CalcUren(NewTijdVan3, NewTijdTot3, NewPauze3.checked, NewTijd3)" type="text" size="5" name="NewTijdTot3"></td>
  133.                     <td><input type="text" size="30" name="NewRelatie3"></td>
  134.                     <td align="middle"><input onclick="CalcUren(NewTijdVan3, NewTijdTot3, NewPauze3.checked, NewTijd3)" type="checkbox" name="NewPauze3"></td>
  135.                     <td><input onblur="UpdateTotal();" readOnly type="text" size="10" name="NewTijd3"></td>
  136.                 </tr>
  137.                 <tr>
  138.                     <td><input type="text" size="10" name="NewDatum4"></td>
  139.                     <td><input onblur="CalcUren(NewTijdVan4, NewTijdTot4, NewPauze4.checked, NewTijd4)" type="text" size="5" name="NewTijdVan4"></td>
  140.                     <td><input onblur="CalcUren(NewTijdVan4, NewTijdTot4, NewPauze4.checked, NewTijd4)" type="text" size="5" name="NewTijdTot4"></td>
  141.                     <td><input type="text" size="30" name="NewRelatie4"></td>
  142.                     <td align="middle"><input onclick="CalcUren(NewTijdVan4, NewTijdTot4, NewPauze4.checked, NewTijd4)" type="checkbox" name="NewPauze4"></td>
  143.                     <td><input onblur="UpdateTotal();" readOnly type="text" size="10" name="NewTijd4"></td>
  144.                 </tr>
  145.                 <tr>
  146.                     <td align="right" colSpan="5">Totaal Tijd:
  147.                     </td>
  148.                     <td><asp:textbox id="txtTotaalTijd" runat="server" size="10" ReadOnly="True">0</asp:textbox></td>
  149.                 </tr>
  150.             </table>
  151.             <br>
  152.             <table width="728">
  153.                 <tr>
  154.                     <td style="WIDTH: 334px" align="right"><asp:imagebutton id="imgDelete" onfocus="this.blur()" tabIndex="23" runat="server" Visible="False" ImageUrl="images\verwijderen.gif"></asp:imagebutton></td>
  155.                     <td align="right"><asp:imagebutton id="btnSave" tabIndex="24" runat="server" ImageUrl="images\opslaan.gif"></asp:imagebutton></td>
  156.                     <td align="right"><asp:imagebutton id="btnSavePrint" tabIndex="25" runat="server" ImageUrl="images\VZprintenopslaan.gif"></asp:imagebutton></td>
  157.                 </tr>
  158.             </table>
  159.         </form>
  160.     </body>
  161. </HTML>
  162.  
this is the page were the button is to get 2 the page abbouve
OverurenDecl_Ov erzicht.aspx

Expand|Select|Wrap|Line Numbers
  1. <%@ Reference Page="~/OverurenDecl.aspx" %>
  2. <%@ Page language="c#" Inherits="DotNet.OverurenDecl_Overzicht" CodeFile="OverurenDecl_Overzicht.aspx.cs" %>
  3. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
  4. <HTML>
  5.     <HEAD>
  6.         <title>OverurenDecl_Overzicht</title>
  7.         <meta name="GENERATOR" Content="Microsoft Visual Studio 7.0">
  8.         <meta name="CODE_LANGUAGE" Content="C#">
  9.         <meta name="vs_defaultClientScript" content="JavaScript">
  10.         <meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
  11.         <script language="javascript" src="AlgemeneFuncties.js"></script>
  12.         <LINK href="style.css" type="text/css" rel="stylesheet">
  13.     </HEAD>
  14.     <body>
  15.         <form method="post" runat="server">
  16.             <h1>Overuren Declaratie</h1>
  17.             <table width="80%">
  18.                 <tr>
  19.                     <td><asp:ImageButton id="imgbtnToevoegen" onfocus="this.blur()" runat="server" ImageUrl="images\toevoegen.gif"></asp:ImageButton>
  20.                     </td>
  21.                     <td align="right">Jaar:<asp:DropDownList id="DDLJaar" runat="server" AutoPostBack="True"></asp:DropDownList></td>
  22.                 </tr>
  23.             </table>
  24.             <span id="TableSpan" runat="server"></span>
  25.         </form>
  26.     </body>
  27. </HTML>
  28.  

i dont now if you need more code like the javascript but i whont post i yet becase otherwise there will be a hole lot af code if you need more code from a other document just let me know
Oct 14 '08 #3
asmx126453
72 New Member
maybe you whanne look true this code to the javascript it contains the function InitCombobox

algemenefunctie s.js

Expand|Select|Wrap|Line Numbers
  1. //the text in textbox search in dropdownlist and adding the name if you whant from dropdownlist
  2. function KlantlijstChange(TextBox, DropDownBox)
  3. {
  4.     if (!TextBox || !DropDownBox)
  5.         return;
  6.  
  7.     if (( event.keyCode < 48  ||  event.keyCode > 57 ) && ( event.keyCode < 65 || event.keyCode > 90 ))
  8.         return;
  9.  
  10.     var Text = TextBox.value.toUpperCase();
  11.     var iLen = DropDownBox.options.length;
  12.     var iIndex;
  13.     var sCurrentText;
  14.     var bFound;
  15.  
  16.     for (iIndex=0; iIndex<iLen; iIndex++)
  17.     {
  18.         sCurrentText = DropDownBox.options[ iIndex ].text;
  19.         sCurrentText = sCurrentText.toUpperCase();
  20.  
  21.         bFound = (sCurrentText.indexOf(Text) == 0);
  22.  
  23.         if ( bFound )
  24.         {
  25.             TextBox.value = DropDownBox.options[ iIndex ].text;
  26.  
  27.             TextBox.focus();
  28.             TextBox.select();
  29.  
  30.             var oTextRange = TextBox.createTextRange();
  31.             oTextRange.moveStart("character", Text.length);
  32.             oTextRange.select();
  33.  
  34.             DropDownBox.selectedIndex = iIndex;
  35.             return;
  36.         }
  37.     }
  38.  
  39. }
  40.  
  41. //making sure the dropdownlist fals over the textbox
  42. //wich will make some kind of combobox
  43. function InitCombobox(Textbox, Dropdownlist)
  44. {
  45.     if (!Textbox || !Dropdownlist)
  46.         return;
  47.     Dropdownlist.style.position    = "absolute";
  48.     Dropdownlist.style.setExpression("pixelLeft", "absolute_X(" + Textbox.id + ")");
  49.     Dropdownlist.style.setExpression("pixelTop", "absolute_Y(" + Textbox.id + ")");
  50.     Dropdownlist.style.setExpression("clip","'rect(auto auto auto ' + (offsetWidth - 18) + ')'");
  51. }
  52.  
  53. function absolute_X( theElement )
  54. {
  55.     var xPosition = 0;
  56.  
  57.     while ( ( theElement != null ))// && (theElement.tagName != "TABLE"))
  58.     {
  59.         xPosition += theElement.offsetLeft;
  60.         theElement = theElement.offsetParent;
  61.     }
  62.  
  63.     return xPosition;
  64. }
  65.  
  66. function absolute_Y( theElement )
  67. {
  68.     var yPosition = 0;
  69.  
  70.     while ( ( theElement != null ))// && (theElement.tagName != "TABLE"))
  71.     {
  72.         yPosition += theElement.offsetTop;
  73.         theElement = theElement.offsetParent;
  74.     }
  75.  
  76.     return yPosition;
  77. }
Oct 14 '08 #4
acoder
16,027 Recognized Expert Moderator MVP
Post the client-side version of your ASP.NET code. Is your form named "OverurenDe cl"?
Oct 14 '08 #5
asmx126453
72 New Member
uhm i know that the forms name is ctl00 but if i use that i still get the error dont realy know what you mean with client side but here is the aspx code from my OverurenDecl.as px how you look at the code in IE

Expand|Select|Wrap|Line Numbers
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
  2. <HTML>
  3.     <HEAD>
  4.         <title>OverurenDecl_Overzicht</title>
  5.         <meta name="GENERATOR" Content="Microsoft Visual Studio 7.0">
  6.         <meta name="CODE_LANGUAGE" Content="C#">
  7.         <meta name="vs_defaultClientScript" content="JavaScript">
  8.         <meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
  9.         <script language="javascript" src="AlgemeneFuncties.js"></script>
  10.         <LINK href="style.css" type="text/css" rel="stylesheet">
  11.     </HEAD>
  12.     <body>
  13.         <form name="ctl00" method="post" action="OverurenDecl_Overzicht.aspx" id="ctl00">
  14. <div>
  15. <input type="hidden" name="__EVENTTARGET" id="__EVENTTARGET" value="" />
  16. <input type="hidden" name="__EVENTARGUMENT" id="__EVENTARGUMENT" value="" />
  17. <input type="hidden" name="__LASTFOCUS" id="__LASTFOCUS" value="" />
  18. <input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="/wEPDwUJNDQzODY0MjQwD2QWAgIBD2QWBAIDDxBkEBUHBDIwMDgEMjAwNwQyMDA2BDIwMDUEMjAwNAQyMDAzBEFsbGUVBwQyMDA4BDIwMDcEMjAwNgQyMDA1BDIwMDQEMjAwMwRBbGxlFCsDB2dnZ2dnZ2dkZAIFDxYCHglpbm5lcmh0bWwFpAI8dHI+PHRkIHZhbGlnbj10b3A+PGEgaHJlZj0iT3ZlcnVyZW5EZWNsLmFzcHg/SUQ9MTIiPjEyPC9hPjwvdGQ+PHRkIHZhbGlnbj10b3A+Jm5ic3A7PC90ZD48dGQgdmFsaWduPXRvcD4mbmJzcDs8L3RkPjx0ZCB2YWxpZ249dG9wPk5lZTwvdGQ+PC90cj48dHI+PHRoIGNsYXNzPSJCb3R0b20iPiZuYnNwOzwvdGg+PHRoIGFsaWduPSJyaWdodCIgY2xhc3M9IkJvdHRvbSI+VG90YWFsOiZuYnNwOzwvdGg+PHRoIGNvbHNwYW49IjIiIGFsaWduPSJsZWZ0IiBjbGFzcz0iQm90dG9tIj4wPC90aD48L3RyPjwvdGFibGU+ZBgBBR5fX0NvbnRyb2xzUmVxdWlyZVBvc3RCYWNrS2V5X18WAQUPaW1nYnRuVG9ldm9lZ2Vuo+LLEindwkPB5ULdV4e73jpK3ls=" />
  19. </div>
  20.  
  21. <script type="text/javascript">
  22. //<![CDATA[
  23. var theForm = document.forms['ctl00'];
  24. if (!theForm) {
  25.     theForm = document.ctl00;
  26. }
  27. function __doPostBack(eventTarget, eventArgument) {
  28.     if (!theForm.onsubmit || (theForm.onsubmit() != false)) {
  29.         theForm.__EVENTTARGET.value = eventTarget;
  30.         theForm.__EVENTARGUMENT.value = eventArgument;
  31.         theForm.submit();
  32.     }
  33. }
  34. //]]>
  35. </script>
  36.  
  37.  
  38. <div>
  39.  
  40.     <input type="hidden" name="__EVENTVALIDATION" id="__EVENTVALIDATION" value="/wEWCgKDsdTtDAKMxcehAQL3rMbpBwLfgquJAgLfgofgBALfgpONDALfgq/WAwLfgrvzCgLfgtefAgKK46zhAQ/BbCqSPUSuSJ49qC+NCmxmOC40" />
  41. </div>
  42.             <h1>Overuren Declaratie</h1>
  43.             <table width="80%">
  44.                 <tr>
  45.                     <td><input type="image" name="imgbtnToevoegen" id="imgbtnToevoegen" onfocus="this.blur()" src="images\toevoegen.gif" style="border-width:0px;" />
  46.                     </td>
  47.                     <td align="right">Jaar:<select name="DDLJaar" onchange="javascript:setTimeout('__doPostBack(\'DDLJaar\',\'\')', 0)" id="DDLJaar">
  48.     <option selected="selected" value="2008">2008</option>
  49.     <option value="2007">2007</option>
  50.     <option value="2006">2006</option>
  51.     <option value="2005">2005</option>
  52.     <option value="2004">2004</option>
  53.     <option value="2003">2003</option>
  54.     <option value="Alle">Alle</option>
  55.  
  56. </select></td>
  57.                 </tr>
  58.             </table>
  59.             <span id="TableSpan"><tr><td valign=top><a href="OverurenDecl.aspx?ID=12">12</a></td><td valign=top>&nbsp;</td><td valign=top>&nbsp;</td><td valign=top>Nee</td></tr><tr><th class="Bottom">&nbsp;</th><th align="right" class="Bottom">Totaal:&nbsp;</th><th colspan="2" align="left" class="Bottom">0</th></tr></table></span>
  60.         </form>
  61.     </body>
  62. </HTML>
  63.  
Oct 14 '08 #6
acoder
16,027 Recognized Expert Moderator MVP
If that's the case, then wherever you have document.Overur enDecl replace with document.ct100 or document.forms['ct100']
Oct 14 '08 #7
asmx126453
72 New Member
Nop srry dident work i still get the same error and the weird thing is that it looks like the error is show after </HTML>OverurenDe cl_Overzicht have any other idee's i can try
Oct 15 '08 #8
acoder
16,027 Recognized Expert Moderator MVP
I think you've showed the client-side code for OverurenDecl_Ov erzicht.aspx. Show me the code for OverurenDecl.as px (what you posted in post #3, but the client-side version).
Oct 15 '08 #9
asmx126453
72 New Member
okey your right is see but the problem is that i cant look the code from my dotnet application thats offline there also is a online version of it that is working so i will post that code now but then there can be minor differences becase that is the code that is made in Visual Studio 7 and now i am changing it in 2005 hope you can use it

Expand|Select|Wrap|Line Numbers
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
  2. <HTML>
  3.     <HEAD>
  4.         <title>OverurenDecl</title>
  5.         <meta content="Microsoft Visual Studio 7.0" name="GENERATOR">
  6.         <meta content="C#" name="CODE_LANGUAGE">
  7.         <meta content="JavaScript" name="vs_defaultClientScript">
  8.         <meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
  9.         <script language="javascript" src="AlgemeneFuncties.js"></script>
  10.         <script language="javascript">
  11.         function UpdateTotal()
  12.         {
  13.             var Total = 0;
  14.             var i;
  15.             for(i=0; document.getElementById('UpdateTijd' + i); i++)
  16.             {
  17.                 Total = Total + document.getElementById('UpdateTijd' + i).value.replace(",",".") * 1;
  18.             }
  19.             Total = Total + document.OverurenDecl.NewTijd0.value.replace(",",".") * 1;
  20.             Total = Total + document.OverurenDecl.NewTijd1.value.replace(",",".") * 1;
  21.             Total = Total + document.OverurenDecl.NewTijd2.value.replace(",",".") * 1;
  22.             Total = Total + document.OverurenDecl.NewTijd3.value.replace(",",".") * 1;
  23.             Total = Total + document.OverurenDecl.NewTijd4.value.replace(",",".") * 1;
  24.  
  25.             document.OverurenDecl.txtTotaalTijd.value = Total;
  26.         }
  27.  
  28.         function CalcUren(TijdVan, TijdTot, Pauze, Tijd)
  29.         {
  30.             Tijd.readOnly = !Pauze;
  31.             if (Pauze)
  32.                 return;
  33.             var Tijd1 = GetMin(TijdVan.value) * 1;
  34.             Tijd1 += GetUur(TijdVan.value) * 60;
  35.             var Tijd2 = GetMin(TijdTot.value) * 1;
  36.             Tijd2 += GetUur(TijdTot.value) * 60;
  37.             if (Tijd1 < 0 || Tijd2 < 0)
  38.                 return;
  39.             Tijd.value = (Tijd2 - Tijd1) / 60;
  40.             TijdVan.value = Math.floor(Tijd1 / 60) + ":" + FixZero(Tijd1 % 60);
  41.             TijdTot.value = Math.floor(Tijd2 / 60) + ":" + FixZero(Tijd2 % 60);
  42.             UpdateTotal();
  43.         }
  44.         </script>
  45.         <LINK href="style.css" type="text/css" rel="stylesheet">
  46.     </HEAD>
  47.     <body onload="InitCombobox(document.OverurenDecl.txtMedewerker, document.OverurenDecl.ddlMedewerker);UpdateTotal();" MS_POSITIONING="GridLayout">
  48.         <form name="OverurenDecl" method="post" action="OverurenDecl.aspx" id="OverurenDecl">
  49. <input type="hidden" name="__EVENTTARGET" value="" />
  50. <input type="hidden" name="__EVENTARGUMENT" value="" />
  51. <input type="hidden" name="__VIEWSTATE" value="dDw1NzQ0ODkzMjI7dDw7bDxpPDE+Oz47bDx0PDtsPGk8MT47PjtsPHQ8dDw7dDxpPDExPjtAPEFsbGVydCBWaXNzZXI7QW5nZWxhIFBvbDtBbml0YSBkZSBCb295O0VkaXRoIFZpc3NlcjtFcmljIHZhbiBIZWlqbnNiZXJnZW47RnJhbmsgdmFuIGRlbiBCZXJnO0hhbiBCcmVucztIZW5yeSBDaGFybGVzO0xvdWsgTGFhZ2xhbmQ7TWljaGllbCBXb3J0bWFuO3N1cHBvcnQ7PjtAPEFsbGVydCBWaXNzZXI7QW5nZWxhIFBvbDtBbml0YSBkZSBCb295O0VkaXRoIFZpc3NlcjtFcmljIHZhbiBIZWlqbnNiZXJnZW47RnJhbmsgdmFuIGRlbiBCZXJnO0hhbiBCcmVucztIZW5yeSBDaGFybGVzO0xvdWsgTGFhZ2xhbmQ7TWljaGllbCBXb3J0bWFuO3N1cHBvcnQ7Pj47Pjs7Pjs+Pjs+PjtsPGltZ0J0bkVkaXQ7aW1nQWZkcnVrO2Noa1Zlcndlcmt0O2J0blNhdmU7YnRuU2F2ZVByaW50Oz4+3/RzWmltkeq6bg3xRMmW61haTKw=" />
  52.  
  53. <script language="javascript" type="text/javascript">
  54. <!--
  55.     function __doPostBack(eventTarget, eventArgument) {
  56.         var theform;
  57.         if (window.navigator.appName.toLowerCase().indexOf("microsoft") > -1) {
  58.             theform = document.OverurenDecl;
  59.         }
  60.         else {
  61.             theform = document.forms["OverurenDecl"];
  62.         }
  63.         theform.__EVENTTARGET.value = eventTarget.split("$").join(":");
  64.         theform.__EVENTARGUMENT.value = eventArgument;
  65.         theform.submit();
  66.     }
  67. // -->
  68. </script>
  69.  
  70.             <h1>Overuren Declaratie</h1>
  71.             <select name="ddlMedewerker" onchange="__doPostBack('ddlMedewerker','')" language="javascript" id="ddlMedewerker" style="width:300px;Z-INDEX: 101; LEFT: 177px; POSITION: absolute; TOP: 86px">
  72.     <option value="***">***</option>
  73.     <option value="***">***</option>
  74.     <option value="***">***</option>
  75.     <option value="***">***</option>
  76.     <option value="***">****</option>
  77.     <option value="****">****</option>
  78.     <option value="***">***</option>
  79.     <option value="***">***</option>
  80.     <option value="****">****</option>
  81.     <option value="***">****</option>
  82.     <option value="support">support</option>
  83.  
  84. </select>
  85.             <table width="728">
  86.                 <tr>
  87.                     <td style="WIDTH: 334px" align="right"></td>
  88.                     <td style="WIDTH: 196px" align="right" width="196"><input type="image" name="imgBtnEdit" id="imgBtnEdit" tabindex="24" src="images\opslaan.gif" alt="" border="0" /></td>
  89.                     <td align="right" width="200"><input type="image" name="imgAfdruk" id="imgAfdruk" tabindex="25" src="images\VZprintenopslaan.gif" alt="" border="0" /></td>
  90.                 </tr>
  91.             </table>
  92.             <br>
  93.             <table width="100%">
  94.                 <tr>
  95.                     <td>Medewerker</td>
  96.                     <td colSpan="3"><input name="txtMedewerker" type="text" id="txtMedewerker" onkeyup="javascript:KlantlijstChange(document.OverurenDecl.txtMedewerker, document.OverurenDecl.ddlMedewerker);" style="width:300px;" /></td>
  97.                 </tr>
  98.                 <tr>
  99.                     <td>Woonplaats</td>
  100.                     <td colSpan="3"><input name="txtWoonplaats" type="text" id="txtWoonplaats" style="width:300px;" /></td>
  101.                 </tr>
  102.                 <tr>
  103.                     <td>BankNR</td>
  104.                     <td><input name="txtBankNR" type="text" id="txtBankNR" /></td>
  105.                     <td align="right" rowSpan="2">Verrekenen:</td>
  106.                     <td rowSpan="2"><table id="optVerreken" border="0">
  107.     <tr>
  108.         <td><input id="optVerreken_0" type="radio" name="optVerreken" value="0" checked="checked" /><label for="optVerreken_0">Uitbetalen</label></td>
  109.     </tr><tr>
  110.         <td><input id="optVerreken_1" type="radio" name="optVerreken" value="1" /><label for="optVerreken_1">Compenseren</label></td>
  111.     </tr>
  112. </table></td>
  113.                 </tr>
  114.                 <tr>
  115.                     <td>GiroNR</td>
  116.                     <td><input name="txtGiroNR" type="text" id="txtGiroNR" /></td>
  117.                 </tr>
  118.                 <tr>
  119.                     <td>Datum Ingeleverd</td>
  120.                     <td><input name="txtDatum" type="text" id="txtDatum" /></td>
  121.                     <td align="right">Verwerkt:</td>
  122.                     <td><input id="chkVerwerkt" type="checkbox" name="chkVerwerkt" /></td>
  123.                 </tr>
  124.             </table>
  125.             <br>
  126.             <table cellSpacing="0" cellPadding="0">
  127.                 <tr>
  128.                     <th>
  129.                         Datum</th>
  130.                     <th>
  131.                         Van</th>
  132.                     <th>
  133.                         Tot</th>
  134.                     <th>
  135.                         Relatie</th>
  136.                     <th>
  137.                         Pauze</th>
  138.                     <th>
  139.                         Tijd Totaal</th></tr>
  140.                 <span id="TableSpan"></span>
  141.                 <tr>
  142.                     <td><input type="text" size="10" name="NewDatum0"></td>
  143.                     <td><input onblur="CalcUren(NewTijdVan0, NewTijdTot0, NewPauze0.checked, NewTijd0)" type="text" size="5" name="NewTijdVan0"></td>
  144.                     <td><input onblur="CalcUren(NewTijdVan0, NewTijdTot0, NewPauze0.checked, NewTijd0)" type="text" size="5" name="NewTijdTot0"></td>
  145.                     <td><input type="text" size="30" name="NewRelatie0"></td>
  146.                     <td align="middle"><input onclick="CalcUren(NewTijdVan0, NewTijdTot0, NewPauze0.checked, NewTijd0)" type="checkbox" name="NewPauze0"></td>
  147.                     <td><input onblur="UpdateTotal();" readOnly type="text" size="10" name="NewTijd0"></td>
  148.                 </tr>
  149.                 <tr>
  150.                     <td><input type="text" size="10" name="NewDatum1"></td>
  151.                     <td><input onblur="CalcUren(NewTijdVan1, NewTijdTot1, NewPauze1.checked, NewTijd1)" type="text" size="5" name="NewTijdVan1"></td>
  152.                     <td><input onblur="CalcUren(NewTijdVan1, NewTijdTot1, NewPauze1.checked, NewTijd1)" type="text" size="5" name="NewTijdTot1"></td>
  153.                     <td><input type="text" size="30" name="NewRelatie1"></td>
  154.                     <td align="middle"><input onclick="CalcUren(NewTijdVan1, NewTijdTot1, NewPauze1.checked, NewTijd1)" type="checkbox" name="NewPauze1"></td>
  155.                     <td><input onblur="UpdateTotal();" readOnly type="text" size="10" name="NewTijd1"></td>
  156.                 </tr>
  157.                 <tr>
  158.                     <td><input type="text" size="10" name="NewDatum2"></td>
  159.                     <td><input onblur="CalcUren(NewTijdVan2, NewTijdTot2, NewPauze2.checked, NewTijd2)" type="text" size="5" name="NewTijdVan2"></td>
  160.                     <td><input onblur="CalcUren(NewTijdVan2, NewTijdTot2, NewPauze2.checked, NewTijd2)" type="text" size="5" name="NewTijdTot2"></td>
  161.                     <td><input type="text" size="30" name="NewRelatie2"></td>
  162.                     <td align="middle"><input onclick="CalcUren(NewTijdVan2, NewTijdTot2, NewPauze2.checked, NewTijd2)" type="checkbox" name="NewPauze2"></td>
  163.                     <td><input onblur="UpdateTotal();" readOnly type="text" size="10" name="NewTijd2"></td>
  164.                 </tr>
  165.                 <tr>
  166.                     <td><input type="text" size="10" name="NewDatum3"></td>
  167.                     <td><input onblur="CalcUren(NewTijdVan3, NewTijdTot3, NewPauze3.checked, NewTijd3)" type="text" size="5" name="NewTijdVan3"></td>
  168.                     <td><input onblur="CalcUren(NewTijdVan3, NewTijdTot3, NewPauze3.checked, NewTijd3)" type="text" size="5" name="NewTijdTot3"></td>
  169.                     <td><input type="text" size="30" name="NewRelatie3"></td>
  170.                     <td align="middle"><input onclick="CalcUren(NewTijdVan3, NewTijdTot3, NewPauze3.checked, NewTijd3)" type="checkbox" name="NewPauze3"></td>
  171.                     <td><input onblur="UpdateTotal();" readOnly type="text" size="10" name="NewTijd3"></td>
  172.                 </tr>
  173.                 <tr>
  174.                     <td><input type="text" size="10" name="NewDatum4"></td>
  175.                     <td><input onblur="CalcUren(NewTijdVan4, NewTijdTot4, NewPauze4.checked, NewTijd4)" type="text" size="5" name="NewTijdVan4"></td>
  176.                     <td><input onblur="CalcUren(NewTijdVan4, NewTijdTot4, NewPauze4.checked, NewTijd4)" type="text" size="5" name="NewTijdTot4"></td>
  177.                     <td><input type="text" size="30" name="NewRelatie4"></td>
  178.                     <td align="middle"><input onclick="CalcUren(NewTijdVan4, NewTijdTot4, NewPauze4.checked, NewTijd4)" type="checkbox" name="NewPauze4"></td>
  179.                     <td><input onblur="UpdateTotal();" readOnly type="text" size="10" name="NewTijd4"></td>
  180.                 </tr>
  181.                 <tr>
  182.                     <td align="right" colSpan="5">Totaal Tijd:
  183.                     </td>
  184.                     <td><input name="txtTotaalTijd" type="text" value="0" readonly="readonly" id="txtTotaalTijd" size="10" /></td>
  185.                 </tr>
  186.             </table>
  187.             <br>
  188.             <table width="728">
  189.                 <tr>
  190.                     <td style="WIDTH: 334px" align="right"></td>
  191.                     <td align="right"><input type="image" name="btnSave" id="btnSave" tabindex="24" src="images\opslaan.gif" alt="" border="0" /></td>
  192.                     <td align="right"><input type="image" name="btnSavePrint" id="btnSavePrint" tabindex="25" src="images\VZprintenopslaan.gif" alt="" border="0" /></td>
  193.                 </tr>
  194.             </table>
  195.         </form>
  196.     </body>
  197. </HTML>
  198.  
Oct 15 '08 #10

Sign in to post your reply or Sign up for a free account.

Similar topics

14
4195
by: wolftor | last post by:
1) Is there a free runtime version of Access available that is more recent than the one for Access 2000? 2) If I create an application (MDE) in A2K, will it run on all later versions of Access? 3) If I create a CD using A2K Developer that includes the runtime version of Access 2K and an installation package, and if someone tries to install the application from the CD, what happens if someone already has Access 2000 or a later version...
2
2226
by: RWC | last post by:
Hello, I have a problem. I recently uninstalled office 97 and re-installed it. When I went to open Access up, it would only open in RUntime mode. I uninstalled all runtime software from my computer, still only opened in runtime mode. So, I uninstalled office again, and re-installed it and STILL it's only opening in runtime mode. I checked the command line and there is no runtime switch in the command line. I looked through the...
1
6367
by: B&C | last post by:
Hello, I'm searching a runtime to read access databases on computers which doesn't have access installed. I found this runtime for access 2000, but I would prefer to use the access 97 "reader". Do you know where to download it ? Thanks and sorry for this bad english.
2
2220
by: Deano | last post by:
I use the Access 2000 MSI Wizard from Sagekey and they don't know if the bug documented on page 32 of the Access 2000 Developer`s Handbook Volume 2: Enterprise Edition still affects the runtime. Apparently page locking is invoked when using the Access run-time record than record-level locking. This also affects Access 2000 but if you patch Access the bug is fixed. I really don't know about the runtime though. Does anyone know if...
17
2075
by: Owen Jenkins | last post by:
I have an Access application that is being used by 150+ clients. I develop in 97, convert to 2000 and distribute as a 97 or 2000 mde, or 97 runtime. This limits me to 97 functions. My clients may use any one of Access 97, 2000, 2002, 2003 or 97 runtime. So that I'm not lingering too far behind, I'm thinking of developing in 2003, using 2000 file format and distributing a 2000 mde for users of Access 2000+. (I understand I'll need to use...
10
2158
by: MLH | last post by:
My A97 runtime installations are sometimes paused during the install process prompting user with messages saying the files are in use. Generally, I tell them to click IGNORE. Although I haven't had any noticeable related impact in past installations, I cannot help but wonder what is going on and if my installations are jeopardized because of something important I'm overlooking.
16
6276
by: MLH | last post by:
If I give someone a runtime app, they can open the database window by pressing the F-11 key. How to prevent???
3
2519
by: =?Utf-8?B?R3JhaGFt?= | last post by:
I've added 2 tracking services to the wf runtime; one is the standard SqlTrackingService: trackingService = new SqlTrackingService(<trackingConnectionString>); <workflow Runtime>.AddService(trackingService); trackingService.IsTransactional = false; trackingService.UseDefaultProfile = true; This works just fine.
6
4234
by: SMcK | last post by:
I have a PDA-based (Syware Visual CE) database which I need to sync to an Access database. The Access database contains three tables: 1 is the data itself, 2 is a linked table that prefills several fields in the main data table based on the value of one of it's fields, and 3 is table the PDA database creates to sync cases. I've been using Access 2003 until now. I need to be able to distribute the Access database and PDA database to...
2
2256
by: mohi | last post by:
hello every one , this may be very basic question and may be a bit out of topic ,, can anyone please tell me what are the functions of runtime library and are they the one which create the program stack, manages heap??? and how can i find out that does my compiler (or linker) produces dynamically linked runtime libraries (if so how can i make it to do it statically on gnu g++ on fedora c8)
0
10640
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10387
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10120
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9200
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7662
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6881
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5550
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5689
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3861
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.