Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Mag on Dec 10, 2008 13:13
open dhtmlx forum
dhtmlX popup Window Issue

hi,

I am calling a DHTMLX window and in it I am att. JSP page as URL

dhxWins = new dhtmlXWindows();
        dhxWins.enableAutoViewport(false);
        dhxWins.setViewport(0, 0, 500, 500);
        dhxWins.vp.style.border = "#909090 0px solid";
        w1 = dhxWins.createWindow("w1", 100, 100, 90, 250);
        dhxWins.window("w1").bringToTop();
        w1.setText("Choose the Parameters for the Report");
        w1.button("minmax1").disable();
        w1.attachURL(popURL);        

I can able to pick the value from Popup and closing the window.

parent.document.forms[0].elements[4].value=finalval
parent.dhxWins.window("w1").close();

later in the parent window i am unable to access any of the controls....is there any thing you can help me.

I have to close the parent DHTMLX window with out fail and i dont want to hide it.

regards
Mag
Answer posted by Support on Dec 11, 2008 03:20
Hello,

Could you please more source code/demo?
Answer posted by Mag on Dec 11, 2008 06:20

Hi,

i am designing a web application which is a JSP page in which user select a hyperlink for popup, when user click on popup a dhtmlX window will be called with a url(another JSP). after searching he is going to pick the values from the dhtmlX window once they close the window the values are showing back to the parent window.

My question is after first selection, i cant able to access (every thing disable) in the parent window and its not allowing me to enter any thing in the parent window.

 

The code which i send is pretty much same.

 

 

 

Answer posted by Support on Dec 15, 2008 02:57
Answer posted by Mag on Dec 15, 2008 05:47

Thanks for wonderful example, but my question is

 

In my parent window i have hyperlink(s) with text box(s) . When ever user select any hyperlink i need to create a new window and show its related options, Once user select i need to bring the value back to parent window. Which i am doing fine. But when user try to enter some value in the parent textbox, the textbox is non editable. every thing in the parent window freezed.

In the popup dhtmlx window i am calling a JSP in that i am writing the followng code, to close the parent window.

parent.document.forms[0].elements[4].value=finalval
parent.dhxWins.window("w1").close();

Is there any way dhtmlx can unfreeze the parent window.

Answer posted by Support on Dec 16, 2008 05:51
Here is a demo and fixed dhtmlxwindows edition (dhtmlxwindows.css and dhtmlxwindows.js files).
Attachments (1)
demo.zip53.59 Kb
Answer posted by Mag on Dec 16, 2008 06:36

Nevermind, i findout the solution.

 

Appreciate for your wonderful help as always.

 

regards

Mag