[Dojo-interest] Re: Curious
Gerwood Stewart
gerwood at siranos.com
Thu Jan 18 15:53:43 MST 2007
Put the isDebug statement BEFORE the script line that imports dojo.js
like this:
This works for me.
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<script type="text/javascript">
var djConfig = {isDebug: true };
</script>
<script type="text/javascript" src="./dojo/dojo.js"></script>
<title>Date Picker Test</title>
<script>
dojo.require("dojo.widget.DatePicker");
dojo.require("dojo.widget.DropdownDatePicker");
dojo.require("dojo.widget.*");
dojo.addOnLoad(init);
function init() {
dojo.event.connect(dojo.widget.byId("lastDate"),
"onValueChanged" , setLastVisit);
}
function setLastVisit() {
var d = dojo.widget.byId("lastDate").getDate();
}
</script>
</head>
<body>
Last Visited Date: <div id="lastDate"
dojoType="dropdowndatepicker">Date:</div>
</body>
</html>
or this.
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<script type="text/javascript" src="./dojo/dojo.js"></script>
<title>Date Picker Test</title>
<script>
dojo.require("dojo.widget.DatePicker");
dojo.require("dojo.widget.DropdownDatePicker");
dojo.require("dojo.widget.*");
dojo.addOnLoad(init);
function init() {
dojo.event.connect(dojo.widget.byId("lastDate"),
"onValueChanged" , setLastVisit);
}
function setLastVisit() {
var d = dojo.widget.byId("lastDate").getDate();
}
</script>
</head>
<body>
Last Visited Date: <div id="lastDate"
dojoType="dropdowndatepicker">Date:</div>
</body>
</html>
On 19/01/2007, at 9:31 AM, Jayaram wrote:
> Here are the details:
> ---------------------
> Effect:
> Take out the highlighed from source code, the widget disappears.
> ----------------------
> Behaves the same as a file as well as on a url
> ----------------------
> I am hosting on IIS5.1
> The version is 4.0
> -----------------------
> Tested Browser versions:
> IE 7.0
> Opera 9.01
> same way on both browsers.
> ------------------------------------
> source:
>
> <html>
> <head>
> <meta http-equiv="Content-Type" content="text/html;
> charset=ISO-8859-1">
> <script type="text/javascript" src="http://localhost/DoAjax/
> dojo.js"</script>
> <title>Date Picker Test</title>
> <script type="text/javascript">
> var djConfig = {isDebug: true };
> </script>
> <script>
> dojo.require("dojo.widget.DatePicker");
> dojo.require("dojo.widget.DropdownDatePicker");
> dojo.require("dojo.widget.*");
> dojo.addOnLoad(init);
>
> function init() {
> dojo.event.connect(dojo.widget.byId("lastDate"),
> "onValueChanged" , setLastVisit);
> }
>
> function setLastVisit() {
> var d = dojo.widget.byId("lastDate").getDate();
>
> }
> </script>
> </head>
> <body>
> Last Visited Date: <div id="lastDate"
> dojoType="dropdowndatepicker">Date:</div>
>
> </body>
> </html>
> ----- Original Message -----
> From: Karl Tiedt
> To: dojo-interest at dojotoolkit.org
> Sent: Thursday, January 18, 2007 5:07 PM
> Subject: Re: [Dojo-interest] Re: Curious
>
> Works fine in IE7 and FF here.... gonna have to provide your src to
> get more help than that.
>
> On 1/18/07, Jayaram < jkrishnaswamy at comcast.net> wrote:
> Removing this declaration in a page with DropdownDatePicker makes
> the wideget to disappear, Why?
>
> <script type="text/javascript">
> var djConfig = {isDebug: true };
> </script>
>
>
> _______________________________________________
> Dojo FAQ: http://dojo.jot.com/FAQ
> Dojo Book: http://manual.dojotoolkit.org/DojoDotBook
> Dojo-interest at dojotoolkit.org
> http://dojotoolkit.org/mailman/listinfo/dojo-interest
>
>
>
>
>
> --
> -Karl Tiedt
>
>
> _______________________________________________
> Dojo FAQ: http://dojo.jot.com/FAQ
> Dojo Book: http://manual.dojotoolkit.org/DojoDotBook
> Dojo-interest at dojotoolkit.org
> http://dojotoolkit.org/mailman/listinfo/dojo-interest
>
>
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.1.410 / Virus Database: 268.16.14/637 - Release Date:
> 1/18/2007
> _______________________________________________
> Dojo FAQ: http://dojo.jot.com/FAQ
> Dojo Book: http://manual.dojotoolkit.org/DojoDotBook
> Dojo-interest at dojotoolkit.org
> http://dojotoolkit.org/mailman/listinfo/dojo-interest
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://dojotoolkit.org/pipermail/dojo-interest/attachments/20070118/1f26a645/attachment.html
More information about the Dojo-interest
mailing list