File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes HTML, CSS and JavaScript and the fly likes ajax call -unable to dispaly calendar icon Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "ajax call -unable to dispaly calendar icon" Watch "ajax call -unable to dispaly calendar icon" New topic

ajax call -unable to dispaly calendar icon

sdeep anand

Joined: Jul 16, 2006
Posts: 7

I have a opp.jsp which has javascript to load a calendar icon and display it next to a text box.
<script language= "javascript">
var cxCalObj = new cxCal('cxCalObj', 'endDateFrom', '');
cxCalObj.onClose = function() {
var cxCalObj1 = new cxCal('cxCalObj1', 'endDateTo', '');
cxCalObj1.onClose = function() {

I call ajax fuction to refresh part of the opp.jsp. So I use another subF.jsp for this.(this jsp contains part of opp.jsp that has to be refreshed). I get all the data but only problem is I dont see the calendar icon next to the text boxes when i call the ajax function.
I heard that ajax does not support javascript. i tried including the same script in subF.jsp, but it does not work.

Is there any way that i can show the calendar icon when I use the ajax call?

Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63867

The fact these files are JSP files is irrelevant to what is happening on the client. Moved to the HTML forum.

[Asking smart questions] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: ajax call -unable to dispaly calendar icon
It's not a secret anymore!