I was looking for a simple way to store FormIt data, so i came up with this simple hook:
I was looking for a simple way to store FormIt data, so i came up with this simple hook:
I was looking for a easy and simple way to crawl multiple web-sites and build a search catalog.
After a few google searches I found sphider I really love it and it does exactly what I was expecting.
You define the URL’s you wish to index, set the level of how deep you wish to follow the links and it gives you a super fast and powerful search engine.
Check it out:
After making my previous post on how to simply store comments in a jSon file (and the comment from Brian) I decided to write an additional HOWTO create dynamic markers and store them in a jSon file.
It also includes an automatic geo data lockup via Google GeoCoder and generates a detail html file for-each marker created, which then will be loaded dynamic when the marker is clicked.
Check out the working example or download the code. Read the rest of this entry »
A few days ago i had to build a simple comment form. First i thought about MYSQL etc, but this all seems to be too complicated. So i came up with a simple solution based on jSon and a TXT file.
Check out the example page or download source code.
So that’s how it cooks: Read the rest of this entry »
I just migrated my old DasBlog to WordPress (really like it). After making a few changes to the default theme I was wondering if there is a simple way to have a mootools accordion effect on my sidebar.
I know there are 10 ways to install accordion menus, but somehow none of them was working for me as I believe in simple solutions.
Here a small script I added to my header and the accordion was working after 5 minutes.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | // add event listener to parse side panel window.addEvent('domready', function() { // add class name to widget element var togglerElements = $('li.widget'); for(var i=0; i < togglerElements.length; i++) { togglerElements[i].childNodes[1].className = "widget_element"; } // create Accordion instance var myAccordion = new Accordion($('accordion'), 'li.widget', '.widget_element', { opacity: false }); }); |
Make sure you include Mootools 1.2 Library.
As I could not find a way to add a class name or id to the sub <ul> element of the widget title I loop throe them and add the className.
Ok I agree a bit hacky but it does the job. If there should be a better solution please let me know.