aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes ajax dojo problem with struts2 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "ajax dojo problem with struts2" Watch "ajax dojo problem with struts2" New topic
Author

ajax dojo problem with struts2

geeta kumari gonchala
Greenhorn

Joined: Jan 07, 2009
Posts: 9
Hi friends ,

I am using ajax for displaying values in drop down list in jsp in struuts2.Its working fine in internet explorer .but not working in mozilla.
this is the error i'm getting in error console of mozilla

Error: no element found
Source File: http://192.168.1.170:9090/lms/struts/dojo/src/i18n/calendar/nls/en-us/gregorian.js
Line: 1

can any body help me please.
thanks in avance.

Thanks in advance
Marc Peabody
pie sneak
Sheriff

Joined: Feb 05, 2003
Posts: 4727

"geeta java developer", welcome to the Ranch.

Please check out the Naming Policy and update your display name to one that is not obviously fictitious.

It might be more helpful if you post a couple lines of the javascript code, particularly at the line number the error is complaining about.

I'm going to move this over to our JavaScript forum, as the one you've posted to is reserved for talk about certification exams.


A good workman is known by his tools.
geeta kumari gonchala
Greenhorn

Joined: Jan 07, 2009
Posts: 9
thanks for your reply,
this is the code i'm using

this code is in one page

<lms:head theme="ajax" />
<td>
<lms:url id="fetchTopics_url" action="fetchTopicsBySubject" />
<lms:div showLoadingText="true" loadingText="<FONT color=MAROON>Loading Topics .... </FONT>" id="concepts" href="% {fetchTopics_url}" theme="ajax" listenTopics="fetchTopicsBySubject" formId="createConceptShow_frm">
</lms:div>
</td>
<script>
function fetchTopicsBySubject() {

var cn = document.getElementById("ConceptName");
if(cn != null)
{
cn.value = "";
}
dojo.event.topic.publish("fetchTopicsBySubject");
}
</script>

for this i have another jsp to merge.that page code is like this

<%@ taglib prefix="lms" uri="/struts-tags"%>

<lms:head theme="ajax" />

<lms:if test="topics != null">

<lms:select name="topicId" cssClass="size"
list="topics"
listKey="topicId"
listValue="topicName" headerKey="0" headerValue=" "
onchange="javascript:updateTopicNameToTextField(this.form);return false;"
/>
</lms:if>

this is working fine in IE but not in mozilla .

thanks in advance.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: ajax dojo problem with struts2