Text feilds in child window can't be editable


I have 2 jsp file,a.jsp and b.jsp.   In a.jsp, I create window which url is b.jsp.for example:
 function editb(id){
    //加载 URL
    if(!dhxWins.window(“modify_b”)){                 



      var w1 = dhxWins.createWindow(“modify_b”,10, 10, 600, 500);
      w1.attachURL(“b.jsp?id=”+id);
        } 
}
In b.jsp,This are some text feilds and a close button. I use button to close this window.
   function b_ok(){
      parent.dhxWins.window(“modify_b”).close();  
  }
now The question is happen.
   when I use button to close window and open the window again(use editb), all the text fields can’t be editable.



Problem can’t be reconstructed locally - please check attached sample, it uses the same code and works correctly.


If issue still occurs for you - please provide any kind of sample where issue can be reconstructed.


1218186590.zip (60.4 KB)

I search by Google, And i see ,some pepole have Encountered the same problem.
jsp_window.rar (2.13 KB)

please test it
html_win.rar (175 KB)

if this statement is not exist, the problem must be happen.it’s a bug.

Problem confirmed, there is some strange behavior in IE, when window closed by clicking button inside the window.
We will investigate and fix issue.

As fast solution, you can replace
parent.dhxWins.window(“modify_standard”).close();
with
window.setTimeout(function(){
parent.dhxWins.window(“modify_standard”).close();
},1)

It will resolve issue.


thank you very much.



 


sorry!



when I use the  



window.setTimeout(function(){
       parent.dhxWins.window(“modify_standard”).close();
  },1)




the window can’t be closed. my statement is below:



function save(){
    // dwr save
     itemService.saveOrUpdate(itemMap,{
        callback:function(data){
           returnId = data;
          alert(‘成功’);
     //parent.mygrid.insertNewItem($(“ref_id”).value,returnId,$(“dwmc”).value,0,0,0,0,“SELECT”);       
     },
     verb:“POST”,
     timeout:5000,
     errorHandler:function(message){ alert(message); },
        async:false
      });
   window.setTimeout(function(){ 
       parent.dhxWins.window(“modify_subitem”).close();
    },1);  



}

The code with only
window.setTimeout(function(){
parent.dhxWins.window(“modify_subitem”).close();
},1);
works correctly in local sample.
Please try the next, which may be a bit more stable solution
parent.setTimeout(function(){
dhxWins.window(“modify_subitem”).close();
},1);

Here are some possible solutions:

1. Use the focus() metod in “onContentLoaded” event to set focus on any inner element in iframe (see the demo#1)
2. Not close window globally - just show/hide it (see demo#2)

demo_1.zip (118 KB)
demo_2.zip (117 KB)

thank you