wood burning stoves 2.0*
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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
Author

ajax call -unable to dispaly calendar icon

sdeep anand
Greenhorn

Joined: Jul 16, 2006
Posts: 7
Hi,

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


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?

Thanks
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60810
    
  65

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


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: ajax call -unable to dispaly calendar icon
 
Similar Threads
refresh an HTML table using AJAX and JSP
Trying to use AJAX to call a servlet
Tooltip issue (Struts, Ajax, YUI/Yahoo User Interface, Javascript)
Simple Ajax example doesn't work
Encoding javascript object to JSON