File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes HTML, CSS and JavaScript and the fly likes DOJO -calendar Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "DOJO -calendar" Watch "DOJO -calendar" New topic
Author

DOJO -calendar

yuga devi
Greenhorn

Joined: Aug 07, 2008
Posts: 22
Hi,

I am new to DOJO.

I am trying to get a Date Range from user by displaying calendar:


<html>
<head>
<script src="http://o.aolcdn.com/dojo/1.2.3/dojo/dojo.xd.js" type="text/javascript"
djConfig="parseOnLoad:true, isDebug:false">
</script>
<style type="text/css">
@import "http://o.aolcdn.com/dojo/1.2.3/dijit/themes/tundra/tundra.css";
@import "http://o.aolcdn.com/dojo/1.2.3/dojo/resources/dojo.css";
</style>
<script type="text/JavaScript">
dojo.require("dijit.form.DateTextBox");
</script>
</head>
<body class="tundra">

Enter a date below:


<input dojoType="dijit.form.DateTextBox"
constraints="{datePattern:'MM/dd/yyyy', max: new Date()}"
/>

</body>
</html>

This code displays date textbox and a calendar.

I would like to get only one calendar for two textboxes, Like: FromDate: "a textbox" To date : "a textbox". For both the textboxes it should display only one calendar.

Is this possible using dojo calendar.Please help

Thanks,
Yuga













Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
No one really who answers questions around these parts uses Dojo, You may get a faster answer if you post in their forums http://www.dojotoolkit.org/forum

Eric
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: DOJO -calendar
 
Similar Threads
access denied in firefox when loading the dojo components from https
calling pop-up JavaScript calendar from JSP page
DOJO - Support IE 6?
dojo 1.1.2 fails in firefox 3.0.5
DOJO Grid and JSON