Hi,

I am trying to use ajax div and file control in same form. But div is not
loading properly instead it shows [object HTMLDocument] on firefox and
[object] on IE. But if I try to use them separately then both are working
fine. Anyone has has any idea what is happening ??? Here is the code
/***************************************************************************
**********************************


<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
 <%@ taglib prefix="s" uri="/struts-tags" %>
 <html>
 <head>
 <s:head theme="ajax" />
 <link href="<s:url value="/css/campaign.css"/>" rel="stylesheet"
   type="text/css"/> 
     <title>upload and ajax test</title>
 </head>
 <script>
  function changeApplication()
  {
        dojo.event.topic.publish("change_Application");
  }
  </script>
 <body>
 <s:url id="updateSecondList" action="updateSecondList" />
   
    <s:actionerror />
    <s:fielderror />
     <s:form id="test_form" name="test_form" action="FileAction"
method="POST" theme="ajax" enctype="multipart/form-data">
     
         <s:select
             label="First List"
            list="firstList"
            name="selectedItem"
            onchange="javascript:changeApplication();return false;">
        </s:select>
       
        <tr>
        <td class="tdLabel"><label class="label">Second List</label></td>
        <td>
        <s:div showLoadingText="false"
             id="details" href="%{updateSecondList}" theme="ajax"
             listenTopics="change_Application" formId="test_form">
         </s:div>                           
        </td>
        </tr>
       
        <s:file name="upload" label="File"/>
        <s:submit />
     </s:form>
 </body>
 </html>
/***************************************************************************
******************************/
Regards


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to