473,466 Members | 3,167 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

onchange not working? why?

5 New Member
hi..i have a problem with my code...i have using onchange event for select option..but it's doesn't work! i don't know why..hope u guys would help me!! :'(...

NEGERI = state
CAWANGAN = branch


*here is my code for detail.php

Expand|Select|Wrap|Line Numbers
  1. <?php 
  2.  session_start();
  3.  include('conn.php');
  4.  
  5. ?>
  6.  
  7.  
  8. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
  9.  
  10. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  11. <html xmlns="http://www.w3.org/1999/xhtml"><head>
  12. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  13. <title>FORM UTAMA</title>
  14. <script language="javascript" src="calendar/calendar.js"></script>
  15.  
  16. <link href="calendar/calendar.css" rel="stylesheet" type="text/css">
  17.  
  18.  
  19. <script language="javascript" src="cal2.js"></script>
  20. <script language="javascript" src="cal_conf2.js"></script>
  21. <link rel="stylesheet" href="calendar.css">
  22.  
  23. <script language="JavaScript">
  24. if (document.form1.NEGERI.value==' ')
  25. {
  26.     alert("Sila Masukkan Negeri");
  27.     return false;
  28. }
  29. else if (dokument.form1.CAWANGAN.value==' ')
  30. {
  31.     alert("Sila Masukkan Cawangan");
  32.     return false;
  33. }
  34. else if (dokument.form1.TARIKH_PERMOHONAN.value==' ')
  35. {
  36.     alert("Sila Masukkan Tarikh Permohonan");
  37.     return false;
  38. }
  39. else if (dokument.form1.TARIKH_SURATCAWANGAN.value==' ')
  40. {
  41.     alert("Sila Masukkan Tarikh Surat Cawangan");
  42.     return false;
  43. }
  44. else if (dokument.form1.TARIKH_SURAT.value==' ')
  45. {
  46.     alert("Sila Masukkan Tarikh Surat");
  47.     return false;
  48. }
  49. else if (dokument.form1.NAMA.value==' ')
  50. {
  51.     alert("Sila Masukkan Nama");
  52.     return false;
  53. }
  54. else if (dokument.form1.NO_KPT.value==' ')
  55. {    
  56.     alert("Sila Masukkan no kpt");
  57.     return false;
  58. }
  59. else if (dokument.form1.KETURUNAN.value==' ')
  60. {
  61.     alert("Sila Masukkan Keturunan");
  62.     return false;
  63. }
  64. else if (dokument.form1.DOKUMEN.value==' ')
  65. {
  66.     alert("Sila Masukkan Dokumen");
  67.     return false;
  68. }
  69. else if (dokument.form1.NO_DOKUMEN.value==' ')
  70. {
  71.     alert("Sila Masukkan No dokumen");
  72.     return false;
  73. }
  74. else if (dokument.form1.TARIKH_PERMOHONAN.value==' ')
  75. {
  76.     alert("Sila Masukkan Tarikh permohonan");
  77.     return false;
  78. }
  79. else if (dokument.form1.TARIKH_TERIMAFAIL.value==' ')
  80. {
  81.     alert("Sila Masukkan Tarikh terimafail");
  82.     return false;
  83. }
  84. else if (dokument.form1.TARIKH_TEMUDUGA.value==' ')
  85. {
  86.     alert("Sila Masukkan Tarikh temuduga");
  87.     return false;
  88. }
  89. else if (dokument.form1.STATUS_TEMUDUGA.value==' ')
  90. {
  91.     alert("Sila Masukkan Status temuduga");
  92.     return false;
  93. }
  94.  
  95. else if (dokument.form1.NO_RUJNEG.value==' ')
  96. {
  97.     alert("Sila Masukkan No rujneg");
  98.     return false;
  99. }
  100. else if (dokument.form1.NO_RUJIP.value==' ')
  101. {
  102.     alert("Sila Masukkan No rujip");
  103.     return false;
  104. }
  105. else if (dokument.form1.TAHAP_PERMOHONAN.value==' ')
  106. {
  107.     alert("Sila Masukkan Tahap permohonan");
  108.     return false;
  109. }
  110. else if (dokument.form1.TARAF_KP.value==' ')
  111. {
  112.     alert("Sila Masukkan Taraf kp");
  113.     return false;
  114. }
  115. else if (dokument.form1.NAMA_PEGAWAI.value==' ')
  116. {
  117.     alert("Sila Masukkan Nama pegawai");
  118.     return false;
  119. }
  120. else if (dokument.form1.NO_KPT.value==' ')
  121. {
  122.     alert("Sila Masukkan No kpt");
  123.     return false;
  124. }
  125. else if (dokument.form1.UNIT_PEGAWAI.value==' ')
  126. {
  127.     alert("Sila Masukkan Unit pegawai");
  128.     return false;
  129. }
  130. else if (dokument.form1.JAWATAN_PEGAWAI.value=='')
  131. {
  132.     alert("Sila Masukkan Jawatan pegawai");
  133.     return false;
  134. }
  135. else
  136. {
  137.     return true;
  138. }
  139.  
  140. }
  141.  
  142.  </script>
  143.  
  144. <script type="text/javascript">
  145.  
  146.  
  147. function getXMLHTTP() { //fuction to return the xml http object
  148.         var xmlhttp=false;    
  149.         try{
  150.             xmlhttp=new XMLHttpRequest();
  151.         }
  152.         catch(e)    {        
  153.             try{            
  154.                 xmlhttp= new ActiveXObject("Microsoft.XMLHTTP");
  155.             }
  156.             catch(e){
  157.                 try{
  158.                 xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
  159.                 }
  160.                 catch(e1){
  161.                     xmlhttp=false;
  162.                 }
  163.             }
  164.         }
  165.  
  166.         return xmlhttp;
  167.     }
  168.  
  169.  
  170.  function getCity(str)
  171.  {
  172.  //alert(str);
  173.  var xmlhttp;
  174.  if (str=="")
  175.    {
  176.    document.getElementById("citydiv").innerHTML="";
  177.    return;
  178.    }
  179.  if (window.XMLHttpRequest)
  180.    {// code for IE7+, Firefox, Chrome, Opera, Safari
  181.    xmlhttp=new XMLHttpRequest();
  182.    }
  183.  else
  184.    {// code for IE6, IE5
  185.    xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
  186.    }
  187.  xmlhttp.onreadystatechange=function()
  188.    {
  189.    if (xmlhttp.readyState==4 && xmlhttp.status==200)
  190.      {
  191.      document.getElementById("citydiv").innerHTML=xmlhttp.responseText;
  192.      }
  193.    }
  194.  xmlhttp.open("GET","wamp/www/daftar lewat/cawangan.php?id_negeri="+str,true);
  195.  xmlhttp.send();
  196.  }
  197. </script>
  198.  
  199.  
  200.  
  201. <style type="text/css">
  202. <!--
  203. .style1 {
  204.     font-weight: bold;
  205.     font-size: x-large;
  206. }
  207. .style5 {
  208.     font-family: Arial, Helvetica, sans-serif;
  209.     font-size: larger;
  210. }
  211. .style8 {font-weight: bold; font-family: "Britannic Bold"; font-size: large;}
  212. -->
  213. </style>
  214.  
  215. </head>
  216. <body>
  217. <<form id="form1" name="form1" method="post" action="prosescubaan.php" >
  218.  
  219.   <table width="673" height="694" border="5" align="center" bordercolor="#D0F0C0">
  220.     <tr>
  221.  
  222.       <td width="655" bgcolor="#D0F0C0"><table width="641" height="686" border="0" align="left" cellspacing="0">
  223.         <tr>
  224.           <td height="195" colspan="5"><img src="images/JPN2.jpg" width="641" height="195" /></td>
  225.         </tr>
  226.         <tr>
  227.  
  228.  
  229.           <td height="32" bgcolor="#D0F0C0" class="style21">&nbsp;</td>
  230.      <td colspan="4" bgcolor="#D0F0C0" class="style24"><div align="right">
  231.                   <script language="javascript" src="Calender4/cal2.js"></script>
  232.                 <script language="javascript" src="Calender4/cal_conf2.js"></script>
  233.                 <script language=JavaScript>
  234.  
  235.  
  236.  
  237.                 <!-- begin script
  238.                 function MakeArray(n) {
  239.                 this.length=n;
  240.                 for (var i=0; i <= N; I++) {
  241.                 this[i]='0' }
  242.                 return this
  243.                 }
  244.  
  245.                 function display_date() 
  246.                 {            
  247.                 date=new Date();
  248.                 var day_of_week_number=date.getDay();
  249.                 var day_of_month=date.getDate();
  250.                 var month_number=date.getMonth();
  251.                 var year=date.getFullYear();
  252.                 var day_of_week='';
  253.                 var month=''
  254.  
  255.                 if(month_number == 0){month='Januari';}
  256.                 if(month_number == 1){month='Februari';}
  257.                 if(month_number == 2){month='Mac';}
  258.                 if(month_number == 3){month='April';}
  259.                 if(month_number == 4){month='Mei';}
  260.                 if(month_number == 5){month='Jun';}
  261.                 if(month_number == 6){month='Julai';}
  262.                 if(month_number == 7){month='Ogos';}
  263.                 if(month_number == 8){month='September';}
  264.                 if(month_number == 9){month='Oktober';}
  265.                 if(month_number == 10){month='November';}
  266.                 if(month_number == 11){month='Disember';}
  267.  
  268.                 var date_to_show=day_of_month + ' ' + month + ' ' + year;
  269.                 document.write(date_to_show);
  270.                 }
  271.                 document.write
  272.                   display_date()
  273.                   //-->            
  274.                       </script>
  275.                 -      
  276.                 <script language=JavaScript>
  277.  
  278.                 <!-- begin script
  279.                 function papar_hari() {
  280.                 var day_of_week_number=date.getDay();
  281.                 var day_of_week='';
  282.                 if(day_of_week_number == 0){day_of_week='Ahad';}
  283.                 if(day_of_week_number == 1){day_of_week='Isnin';}
  284.                 if(day_of_week_number == 2){day_of_week='Selasa';}
  285.                 if(day_of_week_number == 3){day_of_week='Rabu';}
  286.                 if(day_of_week_number == 4){day_of_week='Khamis';}
  287.                 if(day_of_week_number == 5){day_of_week='Jumaat';}
  288.                 if(day_of_week_number == 6){day_of_week='Sabtu';}
  289.  
  290.                 document.write(day_of_week);
  291.                 }
  292.                 document.write
  293.                   papar_hari()
  294.                   //-->            
  295.                       </script>
  296.  
  297.  
  298.                 - <?php echo date("H : i : s A"); ?> 
  299.  
  300.      </div>    </td>
  301.     </tr>
  302.  
  303.     <tr>
  304.       <td bgcolor="#FFCCCC" class="style21">&nbsp;</td>
  305.      <td colspan="4" bgcolor="#FFCCCC"  align="left"><b>
  306.      <?php
  307.          //    $logid= $_SESSION['LOG_ID'];
  308.  
  309.             $sql4 = "SELECT * FROM login2 WHERE no_kpt = '".$_SESSION['ic']."'";
  310.             $result4 = mysql_query($sql4);
  311.             $row4 = mysql_fetch_array ($result4);
  312.  
  313.             $nama = $row4['nama'];
  314.  
  315.     ?>
  316.             NAMA PEGAWAI
  317.             ::
  318.             <?php echo $nama; ?></b></td>
  319.  
  320.  </tr>
  321.  
  322.  
  323.      <td colspan="4" bgcolor="#D0F0C0"  align="left">
  324.         <tr>
  325.           <td height="29" bgcolor="#D0F0C0" class="style21">&nbsp;</td>
  326.           <td colspan="4" bgcolor="#D0F0C0" class="style24" align="left"><b><a href="login.php">[ &lt;&lt; KEMBALI ]</a></b></td>
  327.         </tr>
  328.         <tr valign="top">
  329.           <td width="2" rowspan="30" bgcolor="#D0F0C0" ></td>
  330.           <td colspan="4" bordercolor="#D0F0C0" bgcolor="#D0F0C0"><div align="center" class="style1 style5">DAFTAR LEWAT KAD PENGENALAN</div></td>
  331.         </tr>
  332.         <tr>
  333.           <td width="5" height="21" bgcolor="#D0F0C0" class="style21">&nbsp;</td>
  334.           <td colspan="4" bgcolor="#D0F0C0" class="style24"><hr align="center" noshade="noshade" class="tiny" /></td>
  335.         </tr>
  336.         <tr>
  337.           <td height="21" bgcolor="#99E6B3" class="style21">&nbsp;</td>
  338.         <td colspan="4"  align="left" bordercolor="#999933" bgcolor="#99E6B3"><div align="center" class="style8"><u> MAKLUMAT PERMOHONAN </u></div></td>
  339.         </tr>
  340.         <tr>
  341.           <td height="21" bgcolor="#D0F0C0" class="style21"></td>
  342.           <td width="163" bgcolor="#D0F0C0" class="style21"><div align="left"><strong>Negeri</strong></div></td>
  343.           <td width="7" bgcolor="#D0F0C0" class="style21"><b>:</b></td>
  344.           <td width="456" bgcolor="#D0F0C0"><select name="negeri" onChange="getCity(str)">
  345.  
  346.         <?php 
  347.    // $Type_sql = "SELECT negeri FROM negeri ORDER by negeri_id  ASC ";
  348.     $Type_result = mysql_query( "SELECT negeri FROM negeri ORDER by negeri_id ASC" );
  349.  
  350.    if(!isset($chkvalue))
  351.                     { 
  352.                         echo "<option value=''>Sila Pilih</option>";
  353.  
  354.     while ( $Type_rows = mysql_fetch_array($Type_result) ) {
  355.         //echo '<option value="'.$Type_rows['negeri_id']. '" > '.$Type_rows['negeri'].'  </option>';
  356.  
  357.          echo "<option value= '".$Type_rows['kod_negeri']."'  >  '".$Type_rows['negeri']."'  </option>";
  358.          echo "".$Type_rows["kod_negeri"]."  &nbsp; ".$Type_rows["negeri"]."" ; 
  359.  
  360.          //  echo "<option value='".$Type_rows["kod_negeri"]."' > '".$Type_rows["negeri"]."'>";
  361.  
  362.     }
  363.     }
  364.     ?>
  365. </select>
  366.  
  367.                 </td>
  368.         </tr>
  369.         <tr>
  370.           <td height="21" bgcolor="#D0F0C0" class="style21"></td>
  371.           <td bgcolor="#D0F0C0" class="style21"><div align="left"><b>Cawangan</b></div></td>
  372.           <td bgcolor="#D0F0C0" class="style21"><b>:</b></td>
  373.           <td bgcolor="#D0F0C0" <div id="citydiv"><select name="cawangan">
  374.            </div>
  375.  
  376.         <?php 
  377.    // $Type_sql = "SELECT cawangan FROM negeri_cawangan ORDER by negeri_id  ASC ";
  378.     $Type_result = mysql_query( "SELECT cawangan FROM negeri_cawangan ORDER by negeri_id ASC" );
  379.  
  380.    if(!isset($chkvalue))
  381.                     { 
  382.                         echo "<option value=''>Sila Pilih</option>";
  383.  
  384.     while ( $Type_rows = mysql_fetch_array($Type_result) ) 
  385.     {
  386.         //echo '<option value="'.$Type_rows['negeri_id']. '" > '.$Type_rows['negeri'].'  </option>';
  387.  
  388.          echo "<option value= '".$Type_rows['kod']."'  &&   '".$Type_rows['cawangan']."'  >";
  389.          echo "".$Type_rows["kod"]."  &nbsp; ".$Type_rows["cawangan"]."" ; 
  390.  
  391.          //  echo "<option value='".$Type_rows["kod_negeri"]."' > '".$Type_rows["negeri"]."'>";
  392.  
  393.     }
  394.     echo "</option>";
  395.     }
  396.                     else 
  397.                     { 
  398.                         echo "<option value=''>---</option>";
  399.                     }
  400.  
  401.                     echo "</select>";
  402.     ?>
  403.         </tr>
  404.  
  405.  
  406.  
  407.         <tr>
  408.  
  409.           <td height="24" bgcolor="#D0F0C0" class="style21"></td>
  410.           <td bgcolor="#D0F0C0" class="style21"><div align="left"><b>Tarikh Permohonan </b></div></td>
  411.           <td bgcolor="#D0F0C0" class="style21"><strong>:</strong></td>
  412.           <td bgcolor="#D0F0C0"><input name="tarikh_permohonan1" type="text" id="tarikh_permohonan1" />
  413.               <small> <a href="javascript:showCal('Calendar4')"></a></small> format : dd-mm-yyy </td>
  414.         </tr>
  415.         <tr>
  416.           <td height="24" bgcolor="#D0F0C0" class="style21"></td>
  417.           <td bgcolor="#D0F0C0" class="style21"><div align="left"><b>Tarikh Surat Cawangan </b></div></td>
  418.           <td bgcolor="#D0F0C0" class="style21"><b>:</b></td>
  419.           <td bgcolor="#D0F0C0"><input name="tarikh_suratcawangan" type="text" id="tarikh_suratcawangan" />
  420.             <small> <a href="javascript:showCal('Calendar4')"></a></small> format : dd-mm-yyy  </td>
  421.         </tr>
  422.         <tr>
  423.           <td height="24" bgcolor="#D0F0C0" class="style21"></td>
  424.           <td bgcolor="#D0F0C0" class="style21"><div align="left"><b>Tarikh Surat </b></div></td>
  425.           <td bgcolor="#D0F0C0" class="style21"><b>:</b></td>
  426.           <td bgcolor="#D0F0C0"><input name="tarikh_surat" type="text" id="tarikh_surat" />
  427.               <small> <a href="javascript:showCal('Calendar4')"></a></small> format : dd-mm-yyy              </td>
  428.         </tr>
  429.  
  430.  
  431.  <td height="30" bgcolor="#D0F0C0" class="style21">&nbsp;</td>
  432.           <td colspan="4" bgcolor="#D0F0C0" class="style24"><hr align="center" noshade="noshade" class="tiny" /></td>
  433.         </tr>
  434.  
  435.      <tr>
  436.           <td height="21" bgcolor="#99E6B3" class="style21">&nbsp;</td>
  437.           <td colspan="4"  align="left" bordercolor="#999933" 
  438.  
  439. bgcolor="#99E6B3"><div align="center" class="style8"> <u>MAKLUMAT PEMOHON</u></div></td>
  440.         </tr>
  441.  
  442.   <tr>
  443.     <td height="24" bgcolor="#D0F0C0" class="style21"></td>
  444.     <td bgcolor="#D0F0C0" class="style21"><div align="left"><b>Nama Pemohon</b></div></td>
  445.     <td bgcolor="#D0F0C0" class="style21"><b>:</b></td>
  446.     <td bgcolor="#D0F0C0"><input name="NAMA_PEMOHON" type="text" size="40" id="NAMA_PEMOHON" /></td>
  447.   </tr>
  448.  
  449.   <tr>
  450.     <td height="24" bgcolor="#D0F0C0" class="style21"></td>
  451.     <td bgcolor="#D0F0C0" class="style21"><div align="left"><b>No. KPT Pemohon</b></div></td>
  452.     <td bgcolor="#D0F0C0" class="style21"><b>:</b></td>
  453.     <td bgcolor="#D0F0C0"><input name="IC2" type="text" size="40" id="IC2" /></td>
  454.   </tr>
  455.  
  456.  
  457.  
  458.  <td bgcolor="#D0F0C0" class="style21">&nbsp;</td>
  459.           <td colspan="4" bgcolor="#D0F0C0" class="style24"><hr align="center" noshade="noshade" class="tiny" /></td>
  460.         </tr>
  461.  
  462.  
  463.      <tr>
  464.           <td height="21" bgcolor="#99E6B3" class="style21">&nbsp;</td>
  465.           <td colspan="4"  align="left" bordercolor="#999933" bgcolor="#99E6B3"><div align="center" class="style8"> <u>MAKLUMAT PEGAWAI </u></div></td>
  466.         </tr>  
  467.  
  468.  
  469.     <td height="47" bgcolor="#D0F0C0" class="style21"></td>
  470.  
  471.     <td bgcolor="#D0F0C0" class="style21"><div align="left"><b>Nama Pegawai </b></div></td>
  472.     <td bgcolor="#D0F0C0" class="style21"><b>:</b></td>
  473.     <td bgcolor="#D0F0C0"> <?php
  474.                 echo "<select name='NAMA_PEGAWAI'>";
  475.  
  476.                     //Starts of first drop downlist
  477.                     if(!isset($chkvalue))
  478.                     { 
  479.                         echo "<option value=''>Sila Pilih</option>";
  480.  
  481.                         //Starts of first drop downlist
  482.                         $sql = mysql_query("SELECT * FROM pegawai_dlkp order by nama_pegawaidlkp") 
  483.                         or die(mysql_error()); 
  484.  
  485.                         while ($row = mysql_fetch_array($sql))
  486.                         {
  487.                             echo "<option value='".$row["nama_pegawaidlkp"]."'>";
  488.                             echo $row["nama_pegawaidlkp"]; 
  489.                         }
  490.                         echo "</option>";
  491.                     }
  492.                     else 
  493.                     { 
  494.                         echo "<option value=''>---</option>";
  495.                     }
  496.  
  497.                     echo "</select>";
  498.                     ?></td>
  499.     </tr>
  500.  
  501.   <tr>
  502.           <td height="21" bgcolor="#D0F0C0" class="style21">&nbsp;</td>
  503.           <td colspan="4"  align="left" bordercolor="#999933" bgcolor="#D0F0C0"><div align="center" class="style8">
  504.             <label></label>
  505.             <table width="614" border="1">
  506.               <tr>
  507.                 <th width="267" scope="col"><input type="reset" name="Submit2" value="PADAM" /></th>
  508.                 <th width="331" scope="col"><input type="submit" name="Submit" value="SETERUSNYA" /></th>
  509.               </tr>
  510.             </table>
  511.           </div></td>
  512.         </tr>
  513.  
  514.   <tr>
  515.     <td colspan="4" bgcolor="#29AB87"><div align="center"><span class="style21">JABATAN PENDAFTARAN NEGARA 2014</span></div></td>
  516.   </tr>
  517.       </table></td>
  518.     </tr>
  519.   </table>
  520.  
  521. </form>
  522. </body>
  523.  
  524. </html>

next is my code for cawangan.php :

Expand|Select|Wrap|Line Numbers
  1. <? 
  2. $link = mysql_connect("localhost", "root", "1234"); //changet the configuration in required
  3. if (!$link) {
  4.     die('Could not connect: ' . mysql_error());
  5. }
  6. mysql_select_db("smile");
  7.  
  8.  
  9. isset($_REQUEST['negeri_id']) ? $negeri_id = $_REQUEST['negeri_id'] : $negeri_id = '2';
  10.  
  11. $query = "SELECT * FROM negeri_cawangan WHERE negeri_id = $negeri_id ";
  12. $result=mysql_query($query);
  13.  
  14. ?>
  15.  
  16.  
  17.  
  18. <select name="negeri" onchange='getSeksyen(this.value)'>
  19. <option> Negeri</option>
  20. <? while($row=mysql_fetch_array($result)) { ?>
  21. <option  value="<?=$row['negeri_id']?>"><?=$row['negeri']?></option>
  22. <? } ?>
  23. </select>
  24.  


my question:
1) i want to select a state then next the branch will auto appear if related? based on the code, it's not working.. why?
2)the state and branch have own code.
for state:
eg: PENANG - 07

for branch:
eg: GEORGETOWN - 07041011
Aug 31 '14 #1

✓ answered by Claus Mygind

Not sure if this helps

1. I don't think you can use "dokument" instead of "document"
2. I am not familiar with sessions but you cannot execute php on the client computer. Once you have served up the page, then you have to use javaScript. You could of course send a JSON request to the server for the new information, but generally it is easier to just load the data you need with the page and then do all your on screen data manipulation with javaScript.

Just my two cents worth.

1 1332
Claus Mygind
571 Contributor
Not sure if this helps

1. I don't think you can use "dokument" instead of "document"
2. I am not familiar with sessions but you cannot execute php on the client computer. Once you have served up the page, then you have to use javaScript. You could of course send a JSON request to the server for the new information, but generally it is easier to just load the data you need with the page and then do all your on screen data manipulation with javaScript.

Just my two cents worth.
Sep 2 '14 #2

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

Similar topics

2
by: Jeff | last post by:
Hi Everyone, I'm having a problem with onChange. The tag looks like: <input:text bean = "" name="X" label="Y" attributesText="onChange=\"clear()\""> </input:text> if i replace, onChange...
1
by: MonkeyBoy | last post by:
I am doing some some HTML manipulation in client-side script (IE5.x and IE6.x browsers only). Something like.. var tmpHTML = oTable.outerHTML // do something to the HTML her oTable.outerHTML =...
2
by: Asit | last post by:
In JavaScripts checks for an onChange event against the value of the textbox at the time of the last onChange event. Since an onChange Event never fired after you changed the text first time ,...
1
by: Christoph | last post by:
I'm trying to validate some HTML form elements when the user tabs out of each element. However, I'm having some problems. It appears that the order of events is onChange followed some time...
4
by: Bart van Deenen | last post by:
Hi all I have a script where I dynamically create multiple inputs and selects from a script. The inputs and selects must have an associated onchange handler. I have the script working fine on...
5
by: Pascal Batzli Jr | last post by:
Hello, I have a strange situation happening on the code below. When I first load the page, as I change any of the three combo boxes I have created, the onchange event is fired and the form should...
3
by: jab3 | last post by:
Hello. I"m new to this group, and to JavaScript in general, so please forgive me if I breach local etiquette. I'm trying to implement some client-side 'dynamic' validation on a form. I'm having...
7
by: Peter | last post by:
Does anyone know how to trap SelectedIndexChanged event on the client side for the following control? http://www.metabuilders.com/Tools/ComboBox.aspx I have tried...
18
by: tarunkhatri | last post by:
HI can anyone help me with a function of javascript ... that calculates the sum of all colums at the very last row and also sum of all rows at the very last coloum.... It wiuld be like a 2-d array...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
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...
0
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...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.