How-To: jQuery Expanding and Collapsing
Posted by Nigel Dunn | Filed under jQuery, slideUp, slideDown, tutorial, web, design
A simple problem I encountered today was how to make divs expand and collapse when a user clicks on something on the page. I thought I'd throw a quick article together to cover how to do this effect with jQuery.
Lets start with the HTML:
<div id="example-parent">
<hr />
<h4 id="example1">Heading 1 (show/hide)</h4>
<div id="block_example1" class="collapsed">
Some text 1<br>Some text 1<br>Some text 1<br>Some text 1
</div>
<hr />
<h4 id="example2">Heading 2 (show/hide)</h4>
<div id="block_example2" class="collapsed">
Some text 2<br>Some text 2<br>Some text 2<br>Some text 2
</div>
<hr />
<h4 id="example3">Heading 3 (show/hide)</h4>
<div id="block_example3" class="collapsed">
Some text 3<br>Some text 3<br>Some text 3<br>Some text 3
</div>
<hr />
</div>
Pretty simple stuff. The things to note here are that the divs that are going to expand and collapse have the same ID as the heading above them except that its prefixed with block_.
I'm only going to add one CSS class (because I'm lazy) but this simply hides all the contents of the sections when the ...
Meta Keywords Redundant
Posted by Nigel Dunn | Filed under wordpress, google, gae, blogging, podcast
Matt Cutts talks Google, Wordpress, blogging in general and SEO. Some brilliant tips and advice in this podcast including dispelling some myths about SEO, one of which is meta keywords matter.
While I'm heading down the blogging on Google App Engine path, Matt's podcast is about Wordpress however all of the principles are important to all blogs.
Cudos to Nick Johnson
Posted by Nigel Dunn | Filed under blog, python, gae
Well I now have a default install of Bloggart running on Google App Engine. The hardest part of getting this running was finding a appspot.com sub-domain.
I'm reading through the tutorial on how this application was built. I've never used Python before so this is a brand new road to walk. I've always worked in PHP with MySQL so I'm well outside my comfort zone! Fortunately everyone knows HTML so restyling this Blog software should be straight forward... even for me.