File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

ajax dojo problem with struts2

 
geeta kumari gonchala
Greenhorn
Posts: 9
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Marc Peabody
pie sneak
Sheriff
Posts: 4727
Mac Ruby VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"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.
 
geeta kumari gonchala
Greenhorn
Posts: 9
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic