This will check all of the checkboxes inside of an element (div,span,table) with a class of outerClassName
$(".outerClassName :checkbox").attr('checked', true);
Tip: you must have the jQuery library referenced before using this line of code.
Dec 15
Posted by Daniel in Code, Javascript, jQuery | No Comments
This will check all of the checkboxes inside of an element (div,span,table) with a class of outerClassName
$(".outerClassName :checkbox").attr('checked', true);
Tip: you must have the jQuery library referenced before using this line of code.
Nov 18
Posted by Daniel in Code, PHP, Software | No Comments
The template for the Tracker email is here:
\tikiwiki\templates\mail\tracker_changed_notification_subject.tpl
I changed it to this so that it would improve the way it looks in emails:
{$mail_trackerName}{tr} - #{/tr}{$mail_itemId}{tr} modified.{/tr}
Tags: email, name, notification, subject, template, tiki, tikiwiki, Tracker, tracker name, tracker_changed_notification_subject, tracker_changed_notification_subject.tpl, wiki
1. Creates a blank function
2. Checks onload for a function.
2a. Sets the originial onload function as temp
3. calls the new function initMap() before the originial temp onload function.
Pretty cool!
Code:
1 2 3 4 5 6 7 | var temp=function(){ return 1;}; if( window.onload ) { //override "placeholder" with whatever already exists in onload temp = window.onload; } window.onload=function(){ TheFunctionYouWantToCall(); temp();}; |
Tags: javascript

I just saw an article on this site about the merits of a circular periodic table by Mohd Abubakr Design
I thought it would be nice to have one that rotates. So I used the jQuery and jQuery-Rotate library on it to make it spin.
I hope this will be help someone and I hope to make additions to it in the future.
[[View Rotating Circular Periodic Table]]
Tags: Abubakr, alternative, circle, Circular, hydrogen, jQuery, Mendeleev, middle, Mohd Abubakr, Periodic Table, rotate, Rotating, Rotating Circular Periodic Table
Oct 2
Posted by Daniel in Code, Software | No Comments
Using Flash CS4: Read the rest of this entry »
Tags: Create your own, download, fla, flv, FLVPlayback, FLVPlayer, no branding, swf, Video
Sep 1
Posted by Daniel in Code, Software, Thoughts | No Comments
It’s going to be a lot like:
http://www.evrium.com/store/fg2p_details.php
But much cheaper.
Tags: alternatives, evrium, fluid, gallery, replacement
I have used Google Reader to mash two image rss feeds together for Hubble.
Here is the HTML page for it:
https://www.google.com/reader/shared/user%2F15478232717259537591%2Flabel%2FHubble
Here is the RSS Feed:
http://www.google.com/reader/public/atom/user%2F15478232717259537591%2Flabel%2FHubble
Based off of:
http://hubblesite.org/newscenter/newscenter_rss.php
and
http://www.spacetelescope.org/rss/feed.xml
Enjoy space nerds.
Tags: atom, feed, Google, hubble, images, jpeg, just-in, new, newest, news, png, Reader, recent, RSS, space, telescope, updated
May 6
Posted by Daniel in Code, PHP, Python, Software | No Comments
This is similar to my Python script here:
http://danfolkes.com/index.php/2009/04/29/ipmapcom-python/
It uses this sites service to pull the location of each user:
http://www.ipmap.com/
It outputs in XML, Plain Text, and HTML.
Fields:
HERE IS THE LINK TO THE WEB SERVICE SITE:
http://www.danfolkes.com/ipmaps/
Apr 29
Posted by Daniel in Code, Python, Software | 3 Comments
This program uses this site IpMap to get peoples location based off of their IP address.
It’s written in python. Enjoy.
Download Source – GPLv3 Code. Give back.
Usage:
python ipmap.py 74.125.45.100 all
python ipmap.py 74.125.45.100
python ipmap.py (This will get you the help screen)
Args:
all = Prints all details
nomap = Gets All, no map
loc = Gets: Country, Region, City
Read the rest of this entry »
Tags: address, Code, geocode, Geolocation, ip, ip address, ipmap, locator, Python
I am creating a web service for musicians that will allow them to reference an abundance of musical references on the fly using AJAX.
Firstly, it will deliver chords and fingerings of chords for guitars to the users websites (think Google Maps).
My goal is to enhance the web.
Here is the site: http://cws.danfolkes.com
It’s still in development, but it’s getting close to launch.
Let me know what you think (only if it’s nice)
Tags: AJAX, Chord, Chords, CWS, deliver, development, guitars, musical, Service, Web, Web Service
You are currently browsing the archives for the Code category.

Theme by digitalnature | powered by WordPress | Entries (RSS) and Comments (RSS)