A query about using DOJO showMessage -


when showmessage shown . have written small program please tell me why showmessage not shown , if shown shown ??

<html>   <head>      <link rel="stylesheet" type="text/css" href="http://ajax.googleapis.com/ajax/libs/dojo/1.6/dijit/themes/claro/claro.css"/>   <script src="http://ajax.googleapis.com/ajax/libs/dojo/1.6/dojo/dojo.xd.js" djconfig="parseonload: true">  </script>      <script>  dojo.require("dijit.form.datetextbox");     </script>   <script>  function callme() { if(dijit.byid("fromdate_out").isvalid()) showmessage("selected date fine."); else showmessage("not valid"); }  </script>      </head>   <body class="claro">   <div dojotype="dijit.form.datetextbox" require="true"   id="fromdate_out"   placeholder="from date" onchange="dijit.byid('fromdate').constraints.max =arguments[0];" ></div>        <input type="button" onclick="callme()"/>  </body> </html> 

make sure fix mistake require="true", it's supposed required="true".

the showmessage method called when click button. if fromdate_out not contain value, showmessage called "not valid" (assuming fixed "require" typo above).

we not know showmessage is, if need it, have post well.


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -