Dojo Dijit and HTML5 in Real world applications/Template: Difference between revisions

From PMISwiki
Jump to navigation Jump to search
(Created page with "==Template== ==How to use== ==Tips and tricks== <syntaxhighlight lang="html4strict"> </syntaxhighlight> <syntaxhighlight lang="html5"> </syntaxhighlight> ==References== [...")
 
No edit summary
 
(8 intermediate revisions by 2 users not shown)
Line 1: Line 1:
==Template==
__NOTOC__


==How to use==
 
=={{SUBPAGENAME}}==


==Tips and tricks==
==Tips and tricks==
 
Synntax highlight based on html5:
<syntaxhighlight lang="html4strict">
<syntaxhighlight lang="html5">
    <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>
 
</syntaxhighlight>
</syntaxhighlight>


<syntaxhighlight lang="html5">
<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>
===Verified in===
IE 8, Firefox 3.6.22, Dojo 1.6.1


==References==
==References==
* [http://www.mediawiki.org/wiki/Help:Magic_words Help:Magic_words]
==Document History==
{| class="wikitable"
|-
! Version
! Date
! Author
! Status
! Purpose of update
|-
| 1
| 14 Feb 2012
| PSA
| Draft
| Not released.
|-
|
|
|
|
|
|}


[[Category:software development]]
[[Category:software development]]
[[Category:HTML5]]
[[Category:HTML5]]
[[Category:Dojo]]
[[Category:Dojo]]
[[Category:dojo.addOnLoad]]
[[Category:Dojox]]
[[Category:Dojox]]
[[Category:Dijit]]
[[Category:Dijit]]
[[Category:dijit.form]]
[[Category:dijit.form]]

Latest revision as of 14:10, 8 May 2012


Template

Tips and tricks

Synntax highlight based on html5:

    <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>

Verified in

IE 8, Firefox 3.6.22, Dojo 1.6.1

References

Document History

Version Date Author Status Purpose of update
1 14 Feb 2012 PSA Draft Not released.