When i m using struts2.1.6 dojo plugin.
It gives error here.
<script>
function show_details() {
dojo.event.topic.publish("show_detail"); /*...The function publish(
String) is undefined.*/
}
</script>
Code where i m using this function.
<s:if test="conn!=null">
<td><s:url id="d_url" action="DetailAction.action" /></td>
<table width="600" align="Center">
<s:form name="DBLabelAction" id="DBLabelAction" action="UpdateRemoteDBLable">
<tr>
<td>System is connected to remote database.</td>
</tr>
<tr>
<s:select name="attributeName" list="dbLabelList"
label="Select Attribute" headerKey="0"
headerValue="--Please Select--" cssClass="textfield" required="true" />
</tr>
<tr>
<td> </td>
</tr>
<s:select name="remoteDbTable" list="remoteDbtableList"
label="Select Table" headerKey="0" headerValue="--Please Select--"
cssClass="textfield" required="true"
onchange= "show_details()"/>
<sx:div
showLoadingText="false" id="details" href="DetailAction" theme="ajax"
listenTopics="show_detail" formId="DBLabelAction">
</sx:div>
<s:submit value=" submit " align="center"></s:submit>
</s:form>
<tr>
<td> </td>
</tr>
</table>
</s:if>
Please help what to do, in order to run ajax successfully. i have tried all sources to run this, but not successful.