jQuery 1.4 is released

In: web resources

15 Jan 2010

The incredibly popular jQuery library has released jQuery 1.4 on a new website that will celebrate 14 days of jQuery.

There are a lot of new features, and as usual performance gains are showcased.

  • Easy Setter Functions: For a while now, you’ve been able to pass a function into .attr() and the return value of that function is set into the appropriate attribute. This functionalilty has now been extended into all setter methods
  • Ajax: A lot of enhancements to the various remoting functions including support for native JSON parsing, etags, request context, and more
  • .css and .attr have been improved
  • Per property easing on effects
  • If you want to ensure that “this” inside a function will be permanently bound to a particular value, you can use jQuery.proxy to return a new function with that scope
  • New events: focusin and focusout

And Joe Walker will be really excited to see that dojo.create has made it in! :)

JAVASCRIPT:

  1.  
  2. jQuery(“<div />”, {
  3.     id: “foo”,
  4.     css: {
  5.         height: “50px”,
  6.         width: “50px”,
  7.         color: “blue”,
  8.         backgroundColor: “#ccc”
  9.     },
  10.     click: function() {
  11.        $(this).css(“backgroundColor”, “red”);
  12.     }
  13. }).appendTo(“body”);
  14.  

Congrats to the jQuery team. I look forward to seeing posts over the next 2 weeks that go into more detail on the new coolness.

Go to Source

5 Responses to jQuery 1.4 is released

Avatar

plavacek

February 13th, 2010 at 8:34 am

That's not how JSON most commonly works. JSON is JavaScript Object Notation – it's designed to be read by JavaScript as a return of an asynchronous request. Like, browser-side, not server-side.

If you insist on parsing JSON in PHP, here you go:

http://www.php.net/json

Avatar

Howard L

March 17th, 2010 at 4:59 am

Horsepower is related to torque X RPM. Take note of the RPM for the stated horsepower. Auto engine are usually measured above 5,000 RPM, motorcycles about 10,000 RPM, aero engines at about 2,500 to achieve high propeller efficiency. There have been many conversions of auto engines to airplane use, mostly homebuilts. This is usually done to save money because car engines cost less due to high production volume. Auto engines need a transmission or belts and pullets to drop the propeller RPM down into the 2,500 RPM range. The weight and reliability issues of the transmission or belts and pulleys are the main reasons this is not widely done. Power to weight is extremely important in aircraft, not power per CID so aero engines are designed for minimum weight per horsepower not maximum power per CID. Aero engines are not designed for high RPM but if they were their horsepower would be similar.

Avatar

KoAussie

March 21st, 2010 at 1:05 am

Contact this gentleman for information:

Avatar

richarduie

March 27th, 2010 at 6:35 pm

well, if you want a textbox to just display that every 2 seconds, use this:

<body>
<script language="javascript">
textnumber = 1;
messages() = new Array();
messages[0] = "Flight lessons-$85 per hour";
messages[1] = "Ground school classes-$50 per course:;
messages[2] = "Sight seeing-$75 per hour (max 3 persons)"
time = 0
function GetMessage()
{
time += 1;
if (time==2){dispbox.value=messages[0];}
if (time==4){dispbox.value=messages[1];}
if (time==6){
dispbox.value=messages[2];
time=0;
}
window.setTimeOut("GetMessage();",1000);
}
</script>
<input type="text" value=" " name="dispbox">
</body>

Avatar

nhawkl1

March 29th, 2010 at 9:40 am

It means "non-breaking space". It is a code used in HTML (the code that makes up web pages) to represent a space, especially when you need multiple spaces together. This is because HTML will normally condense all "white space" (spaces and line breaks) into a single space on the page when it is displayed. If you want multiple spaces together on the page, you have to use the nbsp code.

It also is used in other instances where you do not want a line-break at the point where the space appears.

Comment Form

About this blog

This blog delivers stylish and dynamic news for designers and web-developers on all subjects of design, ranging from: CSS, Ajax, Javascript, web design, graphics, typography, advertising & much more. Our goal is to help you communicate effectively on the web with an engaging website or functional interface.