Search Amazon.com:
Register a SA Forums Account here!
JOINING THE SA FORUMS WILL REMOVE THIS BIG AD, THE ANNOYING UNDERLINED ADS, AND STUPID INTERSTITIAL ADS!!!

You can: log in, read the tech support FAQ, or request your lost password. This dumb message (and those ads) will appear on every screen until you register! Get rid of this crap by registering your own SA Forums Account and joining roughly 150,000 Goons, for the one-time price of $9.95! We charge money because it costs us $3,400 per month for bandwidth bills alone, and since we don't believe in shoving popup ads to our registered users, we try to make the money back through forum registrations.
  • Post
  • Reply
Pardot
Jul 25, 2001



http://lsrc2008.confreaks.com/10-ye...frameworks.html

That's a good (once he gets past the first bit of live coding failure) presentation on doing BDD with screw unit and jquery.

Adbot
ADBOT LOVES YOU

Pardot
Jul 25, 2001



This is pretty cool, it does the whole default text that disappears when you click it. It also has it in the background that text will never get submitted to you: http://github.com/hpoydar/jquery-fo...mpt/tree/master

Pardot
Jul 25, 2001



What is more popular, return false or event.preventDefault()?

Pardot
Jul 25, 2001



The Merkinman posted:

OH, there's .delay() I think I could use that. Thanks.

No, he meant try something like this

code:
$("#go1").click(function(){
  $("#box1").animate( { left: "39px", top: "-200px" }, 500, function() {
    $("#box2").animate( { width: "38px", height: "38px", left: "29px", top: "-180px" }, 500, function() {
      $("#box3").animate( { width: "58px", height: "58px", left: "19px", top: "-140px" }, 500, function() {
        $("#box4").animate( { width: "78px", height: "78px", left: "9px", top: "-80px" }, 500, function() {
          $("#box5").animate( { width: "98px", height: "98px", left: "0px", top: "0px" }, 500 );
        });
      });
    });
  });
});
I haven't checked to see if this does what you want or even works

Pardot
Jul 25, 2001



fletcher posted:

1. Wait for at least 2 characters
2. Wait for them to stop typing for a couple hundred milliseconds

Go ahead and fire every key, but use _.debounce

underscore.js

  • 1
  • 2
  • 3
  • 4
  • 5
  • Post
  • Reply