473,386 Members | 1,864 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Problem with .focus() in IE

samikhan83
i am using focus() function of javascript it works great in FireFox but does blunder's in IE is there any problem of focus() in IE .... OR some fix OR.. some other method for IE...

Please Reply Fast... URGENT..
Aug 13 '08 #1
6 1652
gits
5,390 Expert Mod 4TB
what do you try to focus()? show the code that makes the problem ... typically focus() works ...

kind regards
Aug 13 '08 #2
i have a form which is toooo much complex in structure .... basically i am developing an online inventory system for my company where i am using barcode reader... i am using barcode reader to scan product UPC and SNO......

warning !!!!!! its too junckyyy..... i am a beginner .....


Expand|Select|Wrap|Line Numbers
  1.  
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml">
  4. <head>
  5. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  6. <meta http-equiv="Content-Script-Type" content="text/javascript" />
  7. <script language="javascript" type="text/javascript" src="add_sr_no.js"></script>
  8.  <script type="text/javascript" src="../js/calendar.js"></script>
  9.   <script type="text/javascript" src="../js/calendar-en.js" ></script>
  10.   <script type="text/javascript" src="../js/calendar-setup.js"></script>
  11.  
  12. <link href="pur_invoice_entry.css" rel="stylesheet" type="text/css" />
  13.  <link rel="stylesheet" type="text/css" media="all" href="../js/calendar-system.css" title="win2k-cold-1" />
  14. <title><? echo $title;?></title>
  15. </head>
  16.  
  17. <body onload="document.getElementById('txt_upc_code_1').focus()">
  18. <div id="header">
  19. <h3>Purchase Order Entry</h3></div>
  20. <form id="frm_pur_in_entry" name="frm_pur_in_entry" method="post" action="#" onsubmit="return onsubmit_handle();">
  21. <input name="sn_id_counter" id="sn_id_counter" type="hidden" value="1" />
  22. <input name="sn_name_counter" id="sn_name_counter" type="hidden" value="1" />
  23. <table id="tab_1">
  24.   <tr>
  25.     <td width="105" class="lab">Invoice#</td>
  26.     <td width="81" class="field"><input name="txt_invoice_number" type="text" id="txt_invoice_number" size="12" /></td>
  27.     <td width="104" class="lab">Inv. Date</td>
  28.     <td width="125" class="field"><input name="txt_invoice_date" type="text" id="txt_invoice_date" size="8" />
  29.       <input type="button" name="btn_in_date" id="btn_in_date" value="..." /></td>
  30.     <td width="105" class="lab">Supplier Code</td>
  31.     <td width="69" class="field"><select name="sel_supplier" id="sel_supplier"></select></td>
  32.     <td width="105" class="lab">Sales Rep</td>
  33.     <td width="220" class="field"><input name="txt_sales_rep" type="text" id="txt_sales_rep" /></td>
  34.   </tr>
  35.   </table>
  36.   </table>    
  37.    <script type="text/javascript">
  38.     Calendar.setup({
  39.         inputField     :    "txt_invoice_date",      // id of the input field
  40.         ifFormat       :    "%m/%d/%Y",       // format of the input field
  41.         button         :    "btn_in_date",   // trigger for the calendar (button ID)
  42.         singleClick    :    true,           // double-click mode
  43.         step           :    1                // show all years in drop-down boxes (instead of every other year as default)
  44.     });
  45. </script>
  46.   <p></p>
  47.   <table id="tab_2">
  48.   <tr>
  49.     <td width="104" class="lab">P.O. Number</td>
  50.     <td width="76" class="field"><input name="txt_p_o_number" type="text" id="txt_p_o_number" size="12" /></td>
  51.     <td width="179" class="lab">P.O. Date</td>
  52.     <td width="167" class="field"><input name="txt_p_o_date" type="text" id="txt_p_o_date" size="8" />
  53.       <input type="button" name="btn_pur_date" id="btn_pur_date" value="..." /></td>
  54.     <td width="104" class="lab">Ordered By</td>
  55.     <td width="292" class="field"><input name="txt_order_by" type="text" id="txt_order_by" /></td> 
  56.   </tr>
  57.   <tr>
  58. </table>
  59. <script type="text/javascript">
  60.     Calendar.setup({
  61.         inputField     :    "txt_p_o_date",      // id of the input field
  62.         ifFormat       :    "%m/%d/%Y",       // format of the input field
  63.         button         :    "btn_pur_date",   // trigger for the calendar (button ID)
  64.         singleClick    :    true,           // double-click mode
  65.         step           :    1                // show all years in drop-down boxes (instead of every other year as default)
  66.     });
  67. </script>
  68. <p></p>
  69. <div style="overflow:auto; width:950px; height: 450px; margin-left:auto; margin-right:auto;">
  70.   <table id="tb_3">
  71.     <thead>
  72.     <tr>
  73.       <th>UPC Code</th>
  74.       <th>Product</th>
  75.       <th>Quantity</th>
  76.       <th>Price</th>
  77.       <th width="140">Serial Number</th>
  78.    </tr>
  79.    </thead>
  80.     <tbody id="tb">
  81.     <tr id="tr_1">
  82.       <td><input name="txt_upc_code_1" id="txt_upc_code_1" type="text" onchange="check_upc(this.value,'txt_desc_1','pro_id_1',1);" /><input name="pro_id_1" id="pro_id_1" type="hidden" value="" /></td>
  83.       <td><input name="txt_desc_1" id="txt_desc_1" type="text" /></td>
  84.       <td><input name="txt_quantity_1" id="txt_quantity_1" type="text" value="0" size="5"/></td>
  85.       <td><input name="txt_price_1" id="txt_price_1" type="text" size="5" /></td>
  86.       <td><div class="sno_1" id="sno_1" style="text-align:left;"><input name="txt_serial_1[]" id="txt_serial_1_1" type="text" value="" onchange="check_serial(this.value,document.getElementById('pro_id_1').value,1,1,'txt_quantity_1');"/></div>
  87.         <div class="sno_btn_1" id="sno_btn_1" style="text-align:left;"></div></td>
  88.     </tr>
  89.     </tbody>
  90.  
  91.     <tfoot>
  92.     <tr>
  93.     <td colspan="5"><input name="btn_sub" type="submit" value="Submit"/><input name="btn_clear" type="reset" value="Clear"/></td> 
  94.     </tr>
  95.     </tfoot>
  96.  
  97.   </table>
  98.   </div>
  99. </form>
  100. </body>
  101. </html>
  102.  
  103.  
  104.  
  105.  



Expand|Select|Wrap|Line Numbers
  1. //function for handling onsumit event
  2. function onsubmit_handle()
  3. {
  4.  
  5.     //first call sajax function
  6.     return false;
  7. }
  8.  
  9.  
  10.  
  11. function check_upc(upc,desc,pro_id,upc_name_count)
  12. {
  13.  
  14.     if(upc_name_count>1)
  15.     {
  16.  
  17.         for(var i=1;i<upc_name_count;i++)
  18.         {
  19.             var val = document.getElementById('txt_upc_code_'+i).value;
  20.             if(val==upc)
  21.             {
  22.                 alert("UPC Code Already Scanned");
  23.                 document.getElementById('txt_upc_code_'+upc_name_count).value="";
  24.                 document.getElementById('txt_upc_code_'+upc_name_count).focus();
  25.                 return false;
  26.             }
  27.         }
  28.  
  29.     }
  30.  
  31.     document.getElementById('txt_serial_'+upc_name_count+'_1').focus();
  32.     if(upc.length==0)
  33.     {
  34.         alert("Please Scan The Product UPC Code");
  35.         return false;
  36.     }
  37.     else
  38.     {
  39.  
  40.         var xmlhttp=false; //Clear our fetching variable
  41.             try {
  42.                     xmlhttp = new ActiveXObject('Msxml2.XMLHTTP'); //Try the first kind of active x object… for IE
  43.             } catch (e) {
  44.                     try {
  45.                             xmlhttp = new ActiveXObject('Microsoft.XMLHTTP'); //Try the second kind of active x object for IE
  46.                 } catch (E) {
  47.                     xmlhttp = false;
  48.                             }
  49.             }
  50.             if (!xmlhttp && typeof XMLHttpRequest!='undefined') { //for Mozilla
  51.                     xmlhttp = new XMLHttpRequest();//If we were able to get a working active x object, start an XMLHttpRequest
  52.  
  53.             }
  54.             xmlhttp.open('GET','../pur_invoice_entry/check_upc.php?upc='+upc, false);
  55.             xmlhttp.send(null);
  56.             var content = xmlhttp.responseText;
  57.  
  58.             if(content!="NO")
  59.             {
  60.                 var val = content.split("-");
  61.                 document.getElementById(pro_id).value = val[0];
  62.                 document.getElementById(desc).value=val[1]+"-"+val[2];
  63.  
  64.             }
  65.             else
  66.             {
  67.                 alert("No Product With This UPC Code. You Have To First Register Your Product");
  68.             }
  69.     }        
  70.  
  71. }
  72.  
  73.  
  74.  
  75.  
  76.  
  77. //function for checking value already scanned or its UPC using AJAX
  78. function check_serial(sno,pro_id,sn_name_count,sn_id_count,quantity)
  79. {
  80.  
  81.     if(sn_name_count>=1 || sn_id_count>=1)
  82.     {
  83.  
  84.         var g_sn_n_c = document.getElementById('sn_name_counter').value;
  85.  
  86.         if(document.getElementById('txt_upc_code_'+sn_name_count).value == sno)
  87.         {
  88.             alert("This IS UPC Code Please Scan OR Enter The Serial Number");
  89.             document.getElementById("txt_serial_"+sn_name_count+"_"+sn_id_count).value="";
  90.             document.getElementById("txt_serial_"+sn_name_count+"_"+sn_id_count).focus();    
  91.             return false;
  92.  
  93.         }
  94.  
  95.  
  96.  
  97.         for(var i=1;i<=g_sn_n_c;i++)
  98.         {
  99.             var up = document.getElementById('txt_upc_code_'+i).value;
  100.             if(up==sno)
  101.             {
  102.                 var j=1;
  103.                 while(j>=1)
  104.                 {        
  105.  
  106.                 if(document.getElementById('txt_serial_'+i+'_'+j).value.length==0 )
  107.                     {
  108.                         document.getElementById("txt_serial_"+sn_name_count+"_"+sn_id_count).value="";
  109.                         document.getElementById("txt_serial_"+i+"_"+j).focus();        
  110.                     }
  111.                     j++;
  112.                 }
  113.             }
  114.         }
  115.  
  116.             for(var k=1;k<sn_id_count;k++)
  117.             {    
  118.  
  119.             var val = document.getElementById('txt_serial_'+sn_name_count+'_'+k).value;
  120.             if(val==sno)
  121.             {
  122.                 alert("Serial Number Already Scanned");
  123.                 document.getElementById('txt_serial_'+sn_name_count+'_'+sn_id_count).value="";
  124.                 document.getElementById('txt_serial_'+sn_name_count+'_'+sn_id_count).focus();
  125.                 return false;
  126.             }
  127.  
  128.       }
  129.  
  130.     }
  131.  
  132.  
  133.  
  134.     if(sno.length==0)
  135.     {
  136.     alert("Please Sacn OR Enter The Serial Number");
  137.     return false;
  138.     }
  139.     else
  140.     {
  141.     var xmlhttp=false; //Clear our fetching variable
  142.             try {
  143.                     xmlhttp = new ActiveXObject('Msxml2.XMLHTTP'); //Try the first kind of active x object… for IE
  144.             } catch (e) {
  145.                     try {
  146.                             xmlhttp = new ActiveXObject('Microsoft.XMLHTTP'); //Try the second kind of active x object for IE
  147.                 } catch (E) {
  148.                     xmlhttp = false;
  149.                             }
  150.             }
  151.             if (!xmlhttp && typeof XMLHttpRequest!='undefined') { //for Mozilla
  152.                     xmlhttp = new XMLHttpRequest();//If we were able to get a working active x object, start an XMLHttpRequest
  153.  
  154.             }
  155.             xmlhttp.open('GET','../pur_invoice_entry/check.php?pro_id='+pro_id+'&sno='+sno, false);
  156.             xmlhttp.send(null);
  157.             var val = xmlhttp.responseText;
  158.             if(val=="true")
  159.             {
  160.                 add_Sr_No(sn_name_count,sn_id_count,quantity);
  161.             }
  162.             else if(val=="upc")
  163.             {
  164.                 new_product(sno);
  165.                 document.getElementById('txt_serial_'+sn_name_count+"_"+sn_id_count).value = "";                
  166.             }
  167.             else
  168.             {
  169.                 alert(val);
  170.                 document.getElementById('txt_serial_'+sn_name_count+"_"+sn_id_count).value = "";
  171.                 document.getElementById('txt_serial_'+sn_name_count+"_"+sn_id_count).focus();
  172.                 return false;
  173.             }
  174.     }
  175. }
  176.  
  177.  
  178.  
  179.  
  180.  
  181.  
  182.  
  183.  
  184.  
  185.  
  186. //function for adding single element for serial number 
  187.  
  188. function add_Sr_No(sn_name_count,sn_id_count,quantity)
  189. {
  190.  
  191.  
  192.     //var sn_id_counter = parseInt(document.getElementById('sn_id_counter').value); 
  193.     //var sn_name_counter = parseInt(document.getElementById('sn_name_counter').value); 
  194.     var sn_id_counter = sn_id_count;
  195.     var sn_name_counter = sn_name_count; 
  196.     var quant = parseInt(document.getElementById(quantity).value);
  197.  
  198.  
  199.  
  200.  
  201.     var sn_div_id = 'sno_'+sn_name_counter;
  202.     var sn_div = document.getElementById(sn_div_id);
  203.     var sn_btn_div = document.getElementById('sno_btn_'+sn_name_counter);
  204.  
  205.     sn_id_counter=sn_id_counter+1;
  206.     var sn_inp = document.createElement('input');
  207.     var sn_inp_id = "txt_serial_"+sn_name_counter+"_"+sn_id_counter;
  208.     var sn_inp_name = "txt_serial_"+sn_name_counter+"[]";
  209.     sn_inp.setAttribute('id',sn_inp_id);
  210.     sn_inp.setAttribute('name',sn_inp_name);
  211.     sn_inp.setAttribute('type','text');
  212.     sn_inp.setAttribute('value','');
  213.     var pro_id = document.getElementById("pro_id_"+sn_name_counter).value;
  214.     sn_inp.onchange=function() {check_serial(this.value,pro_id,sn_name_counter,sn_id_counter,quantity);}
  215.  
  216.  
  217.         //create a remove button
  218.         var img=document.createElement('img');
  219.         var img_id = "img_"+sn_name_counter+"_"+sn_id_counter;
  220.         img.setAttribute('src','delete.gif');
  221.         img.setAttribute('id',img_id);
  222.         img.onclick=function(){remove(sn_inp_id,sn_div_id);remove(img_id,sn_div_id);};
  223.  
  224.     var sn_br = document.createElement('br');
  225.  
  226.     sn_div.appendChild(sn_br);
  227.     sn_div.appendChild(sn_inp);
  228.  
  229.     sn_div.appendChild(img);
  230.  
  231.     document.getElementById(sn_inp_id).focus();
  232.     document.getElementById('sn_id_counter').value=sn_id_counter;
  233.     document.getElementById(quantity).value=quant+1;
  234.  
  235.  
  236.     return false;
  237. }
  238.  
  239.  
  240. //function for flag value
  241. function flag_value()
  242. {
  243.     document.getElementById("flag").value="end";
  244.     return true;
  245. }
  246.  
  247.  
  248. function new_product(upc)
  249. {
  250.  
  251.     document.getElementById('sn_id_counter').value=1; 
  252.     var sn_name_counter = parseInt(document.getElementById('sn_name_counter').value);
  253.     var sn_id_counter = parseInt(document.getElementById('sn_id_counter').value);
  254.     sn_name_counter=sn_name_counter+1;
  255.  
  256.  
  257.  
  258.     var tb = document.getElementById('tb');
  259.     var tr = document.createElement('tr');
  260.  
  261.     var tr_id = "tr_"+sn_name_counter;
  262.     tr.setAttribute('id',tr_id);
  263.  
  264.     var td_1 = document.createElement('td');
  265.  
  266.     var pro_id=document.createElement('input');
  267.     var pro_id_1_id = "pro_id_"+sn_name_counter;
  268.     var pro_id_1_name = "pro_id_"+sn_name_counter;
  269.  
  270.     pro_id.setAttribute('id',pro_id_1_id);
  271.     pro_id.setAttribute('name',pro_id_1_name);
  272.     pro_id.setAttribute('type','hidden');
  273.  
  274.     var inp_1=document.createElement('input');
  275.     var inp_1_id = "txt_upc_code_"+sn_name_counter;
  276.     var inp_1_name = "txt_upc_code_"+sn_name_counter;
  277.  
  278.     inp_1.setAttribute('id',inp_1_id);
  279.     inp_1.setAttribute('name',inp_1_name);
  280.     inp_1.setAttribute('type','text');
  281.     inp_1.onchange=function() {check_upc(this.value,inp_2_id,pro_id_1_id,sn_name_counter);}
  282.  
  283.     var td_2 = document.createElement('td');
  284.     var inp_2=document.createElement('input');
  285.     var inp_2_id = "txt_desc_"+sn_name_counter;
  286.     var inp_2_name = "txt_desc_"+sn_name_counter;
  287.  
  288.     inp_2.setAttribute('id',inp_2_id);
  289.     inp_2.setAttribute('name',inp_2_name);
  290.     inp_2.setAttribute('type','text');
  291.  
  292.  
  293.  
  294.  
  295.     var td_3 = document.createElement('td');
  296.     var inp_3=document.createElement('input');
  297.     var inp_3_id = "txt_quantity_"+sn_name_counter;
  298.     var inp_3_name = "txt_quantity_"+sn_name_counter;
  299.  
  300.     inp_3.setAttribute('id',inp_3_id);
  301.     inp_3.setAttribute('name',inp_3_name);
  302.     inp_3.setAttribute('type','text');
  303.     inp_3.setAttribute('value','0');
  304.     inp_3.setAttribute('size','5');
  305.  
  306.  
  307.  
  308.  
  309.     var td_4 = document.createElement('td');
  310.     var inp_4=document.createElement('input');
  311.     var inp_4_id = "txt_price_"+sn_name_counter;
  312.     var inp_4_name = "txt_price_"+sn_name_counter;
  313.  
  314.     inp_4.setAttribute('id',inp_4_id);
  315.     inp_4.setAttribute('name',inp_4_name);
  316.     inp_4.setAttribute('type','text');
  317.     inp_4.setAttribute('size','5');
  318.  
  319.  
  320.     var td_5 = document.createElement('td');
  321.     var inp_5=document.createElement('input');
  322.     var inp_5_id = "txt_serial_"+sn_name_counter+"_"+sn_id_counter;
  323.     var inp_5_name = "txt_serial_"+sn_name_counter+"[]";
  324.  
  325.  
  326.     inp_5.setAttribute('id',inp_5_id);
  327.     inp_5.setAttribute('name',inp_5_name);
  328.     inp_5.setAttribute('type','text');
  329.     inp_5.setAttribute('value','');
  330.     //inp_5.onchange=function() {add_Sr_No(sn_name_counter,sn_id_counter,inp_3_id);}
  331.     inp_5.onchange=function() {check_serial(this.value,document.getElementById(pro_id_1_id).value,sn_name_counter,sn_id_counter,'txt_quantity_'+sn_name_counter);}
  332.  
  333.  
  334.     var sn_div = document.createElement('div');
  335.     var sn_btn_div_id = 'sno_'+sn_name_counter;
  336.     var sn_div_class = 'sno_'+sn_name_counter;
  337.     sn_div.setAttribute('id',sn_btn_div_id);
  338.     sn_div.setAttribute('class',sn_div_class);
  339.     //sn_div.style.text-align = 'left';
  340.     sn_div.appendChild(inp_5);
  341.  
  342.  
  343.     var sn_btn_div = document.createElement('div');
  344.     var sn_btn_div_id = 'sno_btn_'+sn_name_counter;
  345.     var sn_btn_div_class = 'sno_btn_'+sn_name_counter;
  346.     sn_btn_div.setAttribute('id',sn_btn_div_id);
  347.     sn_btn_div.setAttribute('class',sn_btn_div_class);
  348.  
  349.  
  350.  
  351.  
  352.  
  353.     td_1.appendChild(inp_1);
  354.     td_1.appendChild(pro_id);
  355.     td_2.appendChild(inp_2);
  356.     td_3.appendChild(inp_3);
  357.     td_4.appendChild(inp_4);
  358.     td_5.appendChild(sn_div);
  359.     td_5.appendChild(sn_btn_div);
  360.  
  361.  
  362.  
  363.     tr.appendChild(td_1);
  364.     tr.appendChild(td_2);
  365.     tr.appendChild(td_3);
  366.     tr.appendChild(td_4);
  367.     tr.appendChild(td_5);
  368.     tb.appendChild(tr);
  369.  
  370.     document.getElementById('txt_upc_code_'+sn_name_counter).focus();
  371.     document.getElementById('sn_name_counter').value=sn_name_counter;
  372.     document.getElementById('txt_upc_code_'+sn_name_counter).value= upc;
  373.     check_upc(upc,inp_2_id,pro_id_1_id,sn_name_counter);
  374.  
  375.  
  376.  
  377.  
  378. }
  379.  
  380. //function for removing single added element
  381. function remove(remove_id,parent_div){
  382.     //var counter = parseInt(document.getElementById('counter').value);
  383.     //var quantity = parseInt(document.getElementById('txt_quant_s').value);
  384.     //if(counter>1)
  385.     //{
  386.  
  387.     var parent_div = document.getElementById(parent_div);
  388.  
  389.     var remove_id = document.getElementById(remove_id);
  390.  
  391.     parent_div.removeChild(remove_id);
  392.  
  393.     //var num=counter-1;
  394.     //document.getElementById('counter').value=num;
  395.     //document.getElementById('txt_quant_s').value=--quantity;
  396.     //if(counter==2)
  397.     /*{    
  398.         var quan=document.getElementById('1');
  399.         quan.removeAttribute('readonly',true);
  400.         quan.removeAttribute('readOnly','readonly');//for internet explorer there should be capital 'O' in readonly
  401.     }
  402.  
  403.     }
  404.     else
  405.     {
  406.         alert("If You Want To Clear All Click Discard");    
  407.     }*/
  408. }
  409.  
  410.  
Aug 13 '08 #3
gits
5,390 Expert Mod 4TB
which focus doesn't work? the one from the onload or those that should be set later on?

kind regards
Aug 14 '08 #4
which focus doesn't work? the one from the onload or those that should be set later on?

kind regards
those one's that i set later on....
Aug 14 '08 #5
gits
5,390 Expert Mod 4TB
it seems that you assign the same id and name to the textboxes that should be focused later on?
Expand|Select|Wrap|Line Numbers
  1. var pro_id=document.createElement('input');
  2.  
  3. var pro_id_1_id = "pro_id_"+sn_name_counter;
  4. var pro_id_1_name = "pro_id_"+sn_name_counter;
i think i remember that IE has problems with that - try to make them different.

kind regards
Aug 16 '08 #6
gits
5,390 Expert Mod 4TB
it seems that you always assign the same id and name to the textboxes that should be focused later on (for example)?
Expand|Select|Wrap|Line Numbers
  1. var pro_id=document.createElement('input');
  2.  
  3. var pro_id_1_id = "pro_id_"+sn_name_counter;
  4. var pro_id_1_name = "pro_id_"+sn_name_counter;
i think i remember that IE has problems with that - try to make them different.

kind regards
Aug 16 '08 #7

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

Similar topics

0
by: Dave | last post by:
Hi all, I have a problem with a query. (well, I actually have a few problems...) Here is my query. select FOCUS.SiteName, FOCUS.URL, OTWAdCars.* , REGION.SiteName as RegionSite, REGION.URL...
4
by: Nitin | last post by:
Hi I have created function to check date and time. at the time of execution, if date is left empty the function returns the error message but then the focus goes to next field. Next filed is for...
1
by: Ricardo Garcia | last post by:
hi, i have the next situation: an index.html that has 2 frames (the main and the navigation bar) and the next problem (in IE, in Mozilla it works properly): when i start to scroll in the main...
2
by: Peter Wright | last post by:
Hi all. Hopefully this should demonstrate the problem I'm having: http://flooble.net/~pete/focus-problem-demo/ (I'm testing it in Mozilla only, but I'm not sure if it's actually a...
6
by: nizar.jouini | last post by:
I have web page that contains two links. link "a" and link "b". When I click on "a" a small window should pop up. when I click on "b" another small window should pop up. So what you should see now...
1
by: avnrao | last post by:
Hi, I am facing a problem with control.focus (javascript). Here is the description of the issue. 1. I have 2 aspx files. on Aspx1 I have button named NewRow. Clicking on this, will redirect...
1
by: clickon | last post by:
For testing purposes i have got a 2 step WizardControl. Eqach step contains a text box, TextBox1 and TextBox2 respectively. If i put the following code in the respective activate event handlers for...
3
by: ngkuhlmann | last post by:
I have a strange problem. I have a tab control with 5 tabs. When I click one of the tabs the tab show its information just fine, however when I test the focus, without moving and within a timer...
3
by: jan.loucka | last post by:
Hi, I looked around for this specific problem but could not find any answer - there's few things in VB but still nothing exactly like this so I'd appreciate any help. We're writing C# WinForm...
1
by: Drelus | last post by:
I'm using an Ajax call to open a search box in the page and I want the focus to go to the box automatically. So, in the httpObject.responseText, I tried sending the following in addition to the...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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,...

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.