Archive for category Code

JQuery – Example Documents for Presentation

jquery-selectors

I gave a presentation at work on JQuery.

So, I made a documentation page and a example html page with jquery calls at the bottom.

This should be able to help someone out there in internet land.

View the post to see code.

Read the rest of this entry »

PHP Gmail Imap Connection with Database Insert

gmail php mysql imap
Using PHP, We will connect to a Gmail mailbox and pull down the last message headers and to and from email addresses.
With this data, we will insert it into a MySQL Database and then delete the message from the IMAP Server.

LET ME KNOW IF THIS HELPED YOU IN THE COMMENTS! Enjoy!

Here is the code:
Read the rest of this entry »

jQuery: Check All of the Checkboxes

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.

TikiWiki – Tracker Email Subject Improvement-Modification

tikiwiki

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: , , , , , , , , , , ,

Override the window.onload javascript function

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:

Rotating Circular Periodic Table – Javascript

Circular_form_of_periodic_table_sm

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: , , , , , , , , , , , ,

DanFolkes FLVPlayer – Create your own FLVPlayer (like jw-flv-player) with no branding

DanFolkes-FLVPlayer

Using Flash CS4: Read the rest of this entry »

Tags: , , , , , , , ,

Started to work on a Simple Photo Slideshow.

It’s going to be a lot like:
http://www.evrium.com/store/fg2p_details.php
But much cheaper.

Tags: , , , ,

Hubble Image RSS Feed

hs-2009-13-a-web

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: , , , , , , , , , , , , , , , ,