Tag Archives: html

Serializing and deserializing JSON with JavaScript

This example is similar to the Serializing and deserializing JSON with PHP example. JavaScript is used instead of PHP. Douglas Crockford’s JSON library has been used for serializing and deserializing JSON in JavaScript.

Posted in JavaScript | Also tagged , , , , , , | Leave a comment

Hiding and showing elements with jQuery

If you don’t know what jQuery is, I’d recommend you to visit jquery.com for clarification. Suppose you have an HTML div element which you want to hide and show. <div id=’foo’>bar</div> The next step is to use a so called selector to select the element and call the hide() function to hide the element. $(‘#foo’).hide(); The [...]

Posted in JavaScript | Also tagged , , , , , | Leave a comment