Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Love Hebe on Sep 26, 2008 02:21
open dhtmlx forum
dhtmlxWindows problem in jsp

Hello ,I'm a Chinese software engineer.I use the dhtmlsWindows have a problem.
I use this in a form.jsp.When I click a button that can pop the window.But when I use a jsp which use iframe and contain my form.jsp this function could not use.It can pop the dhtmlsWindows but disappeared very soon.I think the dhtmlsWindows conflict whit iframe.I don't konw how to resolute.

We packaged this dhtmlsWindows and call popupMagnify function.

++++index.jsp++++ use iframe
<body>
<fieldset style="height:100%">
<legend><s:text name="querymodel.title" /></legend>
    
    <iframe frameborder="0" height="100%" width="25%"
            style="BORDER:#B8D8F9 1px solid;"
            scrolling="auto" src="createTree.do"
            id="left"
            name="leftFrame" >
    </iframe>
    
    <iframe frameborder="0" height="100%" width="75%"
            style="BORDER:#B8D8F9 1px solid;"
            scrolling="auto" src="queryModel.do" //this action produced form.jsp
            id="main"
            name="mainFrame" >
    </iframe>
    
</fieldset>
</body>

++++form.jsp++++
<s:form namespace="/system/query" theme="simple">
<table width="99%">
    <tr height="20">
     <td width="15%" height="30" align="right">
        <s:submit value="create" cssClass="button" onclick="javascript:dic('%{create}')"/>
        
        <s:submit value="query" cssClass="button" onclick="popupMagnify('','','','')"/> //use this function


     </td>
</tr>
</table>
</s:form>    

so when I clicked query button the windows can pop but disappered very soon.I don't konw why!
I think maybe conflict with iframe.
I hope your help.
Answer posted by Support on Oct 01, 2008 07:00
As far as I can see you are using "submit" button , so after rendering dhtmlxWindow, the code cause form submiting and frame reloading as result, which reset all content, including newly opened window. 
Just use normal button instead of submit one.