Just replace $(“.header”) with your selector.
function toggle() {
$(“.header”).unbind(“click”);
var next = $(this).next();
if (next.css(“display”) != “none”)
next.hide(“slow”, bind);
else
next.show(“slow”, bind);
}
function bind() {
$(“.header”).click(toggle);
}
bind();
Filed under: Uncategorized on June 24th, 2010 | No Comments »
After hours of searching… Here is a dirty solution I found.
1. Add this function to the prototype.
$.fn.serializeObject = function()
{
var o = {};
var a = this.serializeArray();
$.each(a, function() {
if (o[this.name]) {
if (!o[this.name].push) {
o[this.name] = [o[this.name]];
}
o[this.name].push(this.value || ”);
} else {
o[this.name] = this.value || ”;
}
});
return o;
};
Then use this conversion when posting.
JSON.stringify($(“form”).serializeObject())
JSON.stringify comes from json2.js. You can get [...]
Filed under: Uncategorized on June 18th, 2010 | No Comments »
Introduction
One of the newer terms coined in today’s business world is “multi factor” security. With all of the new security threats appearing daily, having the ability to authenticate a user of a networked system is essential to the success of any business. With multi factor security we can close the gap of doubt when determining [...]
Filed under: Uncategorized on April 26th, 2009 | 12 Comments »
Compiling a Maven project was pretty darn easy. You simply run the command mvn compile. This command tells maven to compile the source code into classes. The classes end up in the target/classes dir and target/test-classes dir.
Running mvn package will build a jar of the project. The version used in the jar name is contained [...]
Filed under: Java on April 4th, 2009 | No Comments »
Well, I am finally taking the plunge into Apache Maven. I have found that managing dependencies is becoming unbearable and Maven is being used by several open source project that I use so… Here I go, one step at a time.
My first question was obvious: How do I create a new Maven project?
After a few [...]
Filed under: Java on April 4th, 2009 | No Comments »
Just figured I would say hi to the world. I haven’t posted in a while and a friend of mine is always saying that they get way more hits than me. Oh well, I guess I will have to be second best
Filed under: Uncategorized on May 2nd, 2008 | 3 Comments »
Go to Molly’s site @ http://www.mollysevertson.com
Filed under: Cool Sites on April 1st, 2008 | 1 Comment »
A friend of mine finds things like this all the time. Watch this silent movie. Very witty!
http://users.telenet.be/kixx/
Filed under: Dinking Around on March 10th, 2008 | 1 Comment »
I am going to start creating videos for little things that I setup on Ubuntu. Maybe it will help someone. If not I wasted time, but I got another post
Ubuntu SSH Install
Filed under: Linux on February 27th, 2008 | No Comments »
I found a good document for regular grammars and thought I would post it so I wouldn’t lose it.
Have fun!
http://www.cset.oit.edu/~yangs/CST229/Lecture/6_grammarforms.pdf
Regular Grammar
Filed under: Deterministic Finite Automata on January 29th, 2008 | No Comments »