Difference between revisions of "Html5"

From Wiki2
Line 5: Line 5:
:[https://github.com/cosm/cosm-js cosm javascript library] [http://cosm.github.com/cosm-js/ docs]
:[https://github.com/cosm/cosm-js cosm javascript library] [http://cosm.github.com/cosm-js/ docs]
====local storage====
====local storage====
:[http://www.opinionatedgeek.com/dotnet/tools/base64encode/ base64 online ecoder]
:[https://www.ibm.com/developerworks/mydeveloperworks/blogs/bobleah/entry/html5_code_example_store_images_using_localstorage57?lang=en storing images in local storage]
:[https://www.ibm.com/developerworks/mydeveloperworks/blogs/bobleah/entry/html5_code_example_store_images_using_localstorage57?lang=en storing images in local storage]



Revision as of 19:25, 3 March 2013

language features

websockets

http://code.google.com/p/phpwebsocket/
start-using-html5-websockets-today
cosm javascript library docs

local storage

base64 online ecoder
storing images in local storage

code samples

button that runs a php file

<syntaxhighlight lang="html5"> <!DOCTYPE html> <html> <head>

 <meta http-equiv="content-type" content="text/html; charset=UTF-8">

<meta name="viewport" content="width=device-width, initial-scale=1">

 <title>Contol Panel</title>
 <script src="http://code.jquery.com/jquery-latest.js"></script> 

</head> <body>

hi from pathboston

<form> <input type="button" value="Create Pathboston Web Report" id="cpr">

</form> </body> <script> $("#cpr").click(function() { console.log("clicked the cpr button"); $.get("CreaPathbost.php"); }); </script> <html> </syntaxhighlight>

HTML5 questions

How do you html redirect?

ANS:In <head> put <meta http-equiv="REFRESH" content="0;url=http://www.the-domain-you-want-to-redirect-to.com">