-2
<html>
<head>
    <script src="http://ajax.googleapis.com/ajax/libs/dojo/1.6/dojo/dojo.xd.js" djConfig="parseOnLoad: true"/>
    <link rel="stylesheet" type="text/css" href="http://ajax.googleapis.com/ajax/libs/dojo/1.6/dijit/themes/claro/claro.css" />
    <script type="text/javascript">
        dojo.require("dijit.form.DateTextBox");
    </script>
</head>
<body>
    <label for="fromDate">Fromfd:</label>
    <input id="fromDate" type="text" name="fromDate" dojoType="dijit.form.DateTextBox" required="true" onChange="dijit.byId('toDate').constraints.min = arguments[0];"/>
</body>
</html>
Chris Eberle
  • 47,994
  • 12
  • 82
  • 119
Kiran
  • 115
  • 1
  • 3
  • 8
  • 2
    As a general rule, if others are going to be reading your code it's common courtesy to put some effort into formatting it nicely. – Chris Eberle Jun 02 '11 at 15:10
  • 1
    For future reference, write a bit more text in your question about the problem. Writing a 7-word question in the title and dumping only code in the question body will lead to closed questions. – Lasse V. Karlsen Jun 02 '11 at 15:29

1 Answers1

4

You have to properly close the script tag. Correct usage:

<script src="http://ajax.googleapis.com/ajax/libs/dojo/1.6/dojo/dojo.xd.js"
    djConfig="parseOnLoad: true">
</script>

The script tag doesn't work when closed using normal XHTML empty tag style. Why? Check here:

Why don't self-closing script tags work?

Community
  • 1
  • 1
faken
  • 6,572
  • 4
  • 27
  • 28