Dojo Dijit and HTML5 in Real world applications/Template: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 17: | Line 17: | ||
<syntaxhighlight lang="html5"> | <syntaxhighlight lang="html5"> | ||
<form id="myForm" action="myServerFile.php" method="post" name="myForm" | <form id="myForm" action="myServerFile.php" method="post" name="myForm" style="font:56px; background:red" | ||
data-dojo-type="dijit.form.Form" | data-dojo-type="dijit.form.Form" | ||
data-dojo-props=" name: 'myForm', | data-dojo-props=" name: 'myForm', | ||
action:'myServerFile.php', | action:'myServerFile.php', | ||
method:'post'"> | method:'post' | ||
style:'font:56px; background:red', | |||
onClick:function(val){a = b}", | |||
validator:testval.ddd() | |||
data-dojo-id="myForm"> | |||
<!-- form elements --> | <!-- form elements --> | ||
</form> | </form> | ||
</syntaxhighlight> | |||
<syntaxhighlight lang="JavaScript"> | |||
<script type="text/javascript"> | |||
// a globally-scoped variable | |||
var a=1; | |||
// local scope | |||
function one(){ | |||
var a = 2; | |||
alert(a); | |||
} | |||
var obj = { | |||
par1: 'Name and number', | |||
par2: function (){ a = b; | |||
} | |||
} | |||
</script> | |||
</syntaxhighlight> | </syntaxhighlight> | ||
==References== | ==References== | ||
[http://pmis.biz/mediawiki/extensions/SyntaxHighlight_GeSHi/geshi/geshi/html5.php] | |||
[http://qbnz.com/highlighter/geshi-doc.html#language-file-example] | |||
[[Category:software development]] | [[Category:software development]] |
Revision as of 03:42, 17 September 2011
Template
How to use
Tips and tricks
<form id="myForm" action="myServerFile.php" method="post" name="myForm"
data-dojo-type="dijit.form.Form"
data-dojo-props=" name: 'myForm',
action:'myServerFile.php',
method:'post'">
<!-- form elements -->
</form>
<form id="myForm" action="myServerFile.php" method="post" name="myForm" style="font:56px; background:red"
data-dojo-type="dijit.form.Form"
data-dojo-props=" name: 'myForm',
action:'myServerFile.php',
method:'post'
style:'font:56px; background:red',
onClick:function(val){a = b}",
validator:testval.ddd()
data-dojo-id="myForm">
<!-- form elements -->
</form>
<script type="text/javascript">
// a globally-scoped variable
var a=1;
// local scope
function one(){
var a = 2;
alert(a);
}
var obj = {
par1: 'Name and number',
par2: function (){ a = b;
}
}
</script>