Related networks

Mobile-phone Web

Tag cloud

ajax apache javascript mysql xhtml

les concepteurs web LAMP / MAMP / WAMP

Le groupe des concepteurs, développeurs Linux Apache Mysql Php / Mac Apache Mysql Php / Windows Apache Mysql Php.

Vous désirez discuter des solutions existentes, obtenir de l'aide, être tenu informé des évolutions du secteur ? Ce réseau est fait pour vous.

 

(php4, php5, php6 [ mais aussi perl, python ], xhtml, xml, ajax, xajax, javascript, jquery, prototype...)

Statements

+/-
No statement posted

Medias

+/-
2012/02/02
PHP.net news & announcements
  • show-hide   PHP 5.3.10 Released!

    The PHP development team would like to announce the immediate
    availability of PHP 5.3.10. This release delivers a critical security
    fix.



    Security Fixes in PHP 5.3.10:




    • Fixed arbitrary remote code execution vulnerability reported by Stefan
      Esser, CVE-2012-0830.



    All users are strongly encouraged to upgrade to PHP 5.3.10.



    For source downloads please visit
    our downloads page, Windows binaries can be found
    on windows.php.net/download/.

2012/02/01
Official jQuery Blog
  • show-hide   jQuery 1.7.2 Beta 1 Released

    Hey there Internets, it’s the jQuery Core team! We haven’t talked in a while, but over the holidays we were busy fixing the bugs you reported. The result of that hard work is jQuery 1.7.2 Beta 1. We decided to get a beta out by Groundhog Day so you wouldn’t be in the shadow of six more weeks of unfixed bugs.


    You can get the code from the jQuery CDN:



    Oh, we know what you’re thinking: “Cool, a new version of jQuery; I’ll wait until the final release has been out a few weeks and then I’ll give it a try.” Right, and then you’ll find some bug that keeps you from upgrading. Nothing makes us sadder than finishing up a release and only then seeing a report of a serious bug that could have been fixed earlier.


    So please, come out of your burrow and try this beta with your code. Did we miss an old bug' Did we create a new bug that makes you feel like Bill Murray waking up to “I Got You Babe'” We want to know. You can use the bug tracker to report bugs; be sure to create a test case on jsFiddle so we can figure it out easily. If you’re not sure it’s a bug, ask on our forum or on StackOverflow.


    jQuery 1.7.2b1 Change Log


    The current change log of the 1.7.2b1 release.


    Ajax



    • #10978: jQuery.param() should allow non-native constructed objects as property values


    Attributes



    • #5571: Allow chaining when passing undefined to any setter in jQuery


    Build



    • #10692: Configure the jshint options to more accurately match the style guide

    • #10902: ability to test a built version of jQuery in unit tests

    • #10931: Unit tests shouldn’t require internet access


    Core



    • #10466: jQuery.param() mistakes wrapped primitives for deep objects


    Css



    • #10639: outerWidth(true) and css(‘margin’) returning % instead of px in Webkit

    • #10754: have jQuery.swap return the return of the callback instead of just executing it

    • #10782: Incorrect calculating width

    • #10796: Bug in IE7 with $(‘#el’).css.(‘background-position’)

    • #10858: css.js regular expressions are incomplete

    • #11119: The curCSS function only need 2 arguments


    Effects



    • #8498: Animate Hooks

    • #10006: method show is not working as expected in all browsers when called for document fragment

    • #10848: Animation toggling loses state tracking in certain atomic edge cases


    Event



    • #8165: .live(‘click’, handler) fires on disabled buttons with child elements in Chrome

    • #10819: Eliminate “this.on.call(this, “

    • #10878: $(“select”).live(“change”, function(){ …broken in IE8 in jQuery 1.7

    • #10961: Error in XRegExp using jQuery 1.7.1 in IE6-9

    • #10970: The .on() selector parameter doesn’t work with :not(:first) selector

    • #10984: Cannot off() custom events ($.event.special)

    • #11021: Hover hack mangles a namespace named “hover”

    • #11076: .clone(true) loses delegation filters

    • #11130: jQuery.fn.on: binding map with null selector ignores data

    • #11145: $(document).on() not working with name=”disabled”


    Manipulation



    • #9427: Passing undefined to .text() does not trigger setter

    • #10753: inline the evalScript function in manipulation.js as it’s only used once

    • #10864: text() method on a document fragment always returns the empty string

    • #11055: Update HTML5 Shim elements list to support latest html5shiv


    Misc



    • #10952: .fired() doesn’t work on Callbacks object when it is flagged with “once”

    • #11257: Wrong path to source files in test suite if PHP missing


    Support



    • #11048: Support Tests affect layout for positioned elements in IE6-9


2012/01/30
Latest Updates from MySQL AB
2012/01/24
PHP.net news & announcements
  • show-hide   PHP 5.4.0 RC6 released


    The PHP development team announces the 6th
    release candidate of PHP 5.4.
    PHP 5.4 includes new language features and removes several legacy
    (deprecated) behaviours. Windows binaries can be downloaded from the
    Windows QA site.



    THIS IS A RELEASE CANDIDATE - DO NOT USE IT IN PRODUCTION!.



    This is the 6th release candidate. The release candidate phase is intended as
    a period of bug fixing prior to the stable release. No new features should
    be included before the final version of PHP 5.4.0.



    The 6th release candidate focused on improving traits. Please test
    them carefully and help us to identify bugs in
    order to ensure that the release is solid and all things behave
    as expected. Please take the time to test this release candidate
    against your code base and report any problems that you encounter
    to the QA mailing list and/or
    the PHP bug tracker.



    A complete list of changes since the last release candidate can be
    found at NEWS



    The next candidate will be released on Feb 2.

2012/01/20
PHP.net news & announcements
  • show-hide   ConFoo 2012


    ConFoo 2012 in Montreal, Canada on Feb 29 - Mar 02



    ConFoo is the unique web conference in Canada gathering different
    tech communities in one place.



    • find working solutions for your day to day challenges;

    • discover new tools that increase your productivity;

    • network with people from some of the world?s biggest companies;

    • 160 presentations focusing on core competencies improvement;



    Don't miss this great opportunity and register today!
    Also check out our two training days
    around PHP, HTML5, Symfony2 and security topics right before the
    conference.

2012/01/10
PHP.net news & announcements
  • show-hide   PHP 5.3.9 Released!

    The PHP development team would like to announce the immediate
    availability of PHP 5.3.9. This release focuses on improving the
    stability of the PHP 5.3.x branch with over 90 bug fixes, some of
    which are security related.



    Security Enhancements and Fixes in PHP 5.3.9:




    • Added max_input_vars directive to prevent attacks based on hash collisions. (CVE-2011-4885)

    • Fixed bug #60150 (Integer overflow during the parsing of invalid exif
      header). (CVE-2011-4566)



    Key enhancements in PHP 5.3.9 include:




    • Fixed bug #55475 (is_a() triggers autoloader, new optional 3rd argument to
      is_a and is_subclass_of).

    • Fixed bug #55609 (mysqlnd cannot be built shared)

    • Many changes to the FPM SAPI module



    For a full list of changes in PHP 5.3.9, see the ChangeLog. For source downloads please visit
    our downloads page, Windows binaries can be found
    on windows.php.net/download/.



    All users are strongly encouraged to upgrade to PHP 5.3.9.

2012/01/09
Latest Updates from MySQL AB
2012/01/07
PHP.net news & announcements
  • show-hide   PHP 5.4.0 RC5 released


    The PHP development team announces the 5th
    release candidate of PHP 5.4.
    PHP 5.4 includes new language features and removes several legacy
    (deprecated) behaviours. Windows binaries can be downloaded from the
    Windows QA site.



    THIS IS A RELEASE CANDIDATE - DO NOT USE IT IN PRODUCTION!.



    This is the 5th release candidate. The release candidate phase is intended as
    a period of bug fixing prior to the stable release. No new features should
    be included before the final version of PHP 5.4.0.



    We got a lot of feedback that helped us to improve the upcoming
    PHP version. Please continue to help us to identify bugs in
    order to ensure that the release is solid and all things behave
    as expected. Please take the time to test this release candidate
    against your code base and report any problems that you encounter
    to the QA mailing list and/or
    the PHP bug tracker.



    A complete list of changes since the last release candidate can be
    found at NEWS



    The next and probably last release candidate will be released in 14 days.

2011/12/13
Official jQuery Blog
  • show-hide   Plugins Site Update: The Old Is New Again

    We’ve gotten a lot of feedback since last week’s announcement about the plugins site’s unfortunate tumble into oblivion, and I’d like to address a few of the most important concerns that have surfaced since.


    “Could you make the old backup available for posterity'”


    Yes. We can ? and have. Over the weekend, we restored the most recent backup we had, and the original site is now living at archive.plugins.jquery.com; you should be able to browse through everything that’s there to your heart’s content. We also applied the most recent user information we had, so if you had an account on the old site at any point in the last year, it should still work. However, the site is closed to new user registrations. If you really need a new account, please get in touch with me personally and I can get that straightened out for you. We’ve also set up a redirect, so that if you should encounter any links to plugins.jquery.com in your browsing, you’ll (hopefully) end up at the corresponding page in the archive.


    Just get a backup from the Wayback Machine!


    While the Internet Archive has cached versions of content that was updated more recently than last October, we just don’t have the people-power to re-create the lost posts manually in the new archive site. If you have an account, you can feel free to add “new” or old plugins, or update existing ones, should you desire to. However, this archive will not be indexed by search engines.


    If you hate CMS-es so much, what’s with WordPress'


    We’re in the middle of a network-wide redesign, and WordPress offers us a valuable set of tools when it comes to theming, searching, and serving a group of sites. Our new motto, however, is pull requests, not passwords; we’re implementing theming, documentation, plugins, and more in such a way that contribution will not actually require an account on our CMS at all. As I outlined in the initial post, the plugin submission process will only involve adding a post-receive hook to your repository. In the event of a similar catastrophe, we’re made sure we’ll be able to replay the entire plugin contribution history and get the site back up to speed right away. Our goal is to leverage the WordPress features we find useful without it serving as a barrier to entry or as the canonical warehouse of content. If you are of the mind that WordPress is always a bad idea, no matter what, no matter how, you’re certainly entitled to that opinion, but at this point, it’s not particularly beneficial to the conversation.


    Git(Hub) is hard


    The new plugins site will serve as an index of plugins, with a simple “download” button right on each plugin’s page. You will not have to just browse around GitHub looking for jQuery plugins. If you don’t know git and only ever want to download jQuery plugins, you don’t have to learn it. However, if you want to submit plugins, you’ll have to be using some sort of source control that you can at least mirror in git. This is by design: it can be really easy to build a jQuery plugin, but that doesn’t mean it’s necessarily fit for public consumption. Requiring the use of source control and package.json are passive mechanisms that will help ensure that plugins which proliferate are authored by developers who have met a reasonable baseline (and aren’t selling batteries). We’re only targeting GitHub support for launch, but we’d like to add support for other services as well. We are actively avoiding the use of GitHub-specific features that would force us to limit the site to GithHub users permanently.


    It’s A Conspiracy!


    Some have called into question the veracity of my account, and that’s understandable, given the timing and circumstances. But believe me, the last thing I wanted to do after spending a day manually pruning spam from the directory was turn around and cause a gigantic headache for thousands of people, including myself and my colleagues. I hope the re-launching of the last backup at least partially allays these concerns. Additionally, we’re starting off with GitHub simply because it has a very broad user base already, and it has been incredibly positive for us since we shifted to it for development of jQuery Core, UI, and Mobile.


    Thanks again for bearing with us during this transition.


2011/12/08
Official jQuery Blog
  • show-hide   What Is Happening To The jQuery Plugins Site?

    For about a week, instead of hosting several hundred jQuery plugins and several thousand advertisements for laptop batteries, our plugins repository has been serving up a pretty pathetic message about spam and an allusion to some “new submission process.” This happened very suddenly, and we’re sorry to everyone who’s been inconvenienced. Please allow me a few minutes to explain what happened, where we’re headed, and how it impacts you. If you’re in a rush, here’s the short version.


    The Backstory


    A White Elephant Though the plugins site you’ve known and loved was a valuable tool when it was first set up, it gradually became something of a white elephant for the project. While powerful distribution tools like GitHub and npm have come to the fore, we’ve been stuck in an aging, CMS-oriented paradigm that frustrated developers and consumers of plugins alike. Many people moved onto alternative sources for finding and vetting plugins. Furthermore, the sites’s original implementors and maintainers had since moved on from active involvement within the jQuery project. While the team faced a steady stream of complaints about usability and a general lack of features, the site itself faced a veritable barrage of (several flavors of) spam. There was your standard, keyword-rich SEO garbage, but there was also something slightly more insidious: the batch posting of under-documented, demo-free plugins with links to paid download sites by third parties trawling for affiliate cash. While this wasn’t explcitly disallowed, it led to a terrible, confusing experience for users and gave the site the distinct sense that all was not on the up and up.


    The Best Laid Plans…


    Sensitive to all these problems, the team began drawing up requirements for a complete overhaul. We knew we wanted to get out of the business of accepting uploads, serving downloads, and generally legislating the plugin “release” process on our own servers. With our official projects already on GitHub, we knew we wanted to leverage the many wheels they’d already invented for distribution, versioning, and facilitating open, collaborative development. Another requirement was to create a standard schema for authors to clearly delineate dependencies, like which version(s) of jQuery a plugin supports, as well as other plugins and CSS assets it requires to be functional. We also wanted to introduce some quality control, with both passive mechanisms like requiring GitHub and a manifest file for distribution, as well as active ones like user ratings. Finally, we wanted a clean slate; with stricter requirements for submission, there could be no mass import of all the old plugins. We made a lot of progress preparing specifications, but hampered by a lack of resources and a number of other projects, we never were able to get too deep into the implementation phase. After all, the old site “worked!”


    …Often Go Awry


    Throwing the baby out with the bathwater


    As the glut of spam grew worse and multiple reports started showing up on the jQuery Core bug tracker, I wanted to at least take some steps to wipe a bit of the spam and egg off our face. With newly provisioned access to the administrative tools on the site, I teamed up with the Drupal Views Bulk Operations module and set out to identify and delete spammers and their posts. Within a day or two, nearly 90% of the alleged “content” was gone from the site. I continued to monitor the situation over the ensuing days, and deleted spam as it came in. Unfortunately, I likely cast too wide of a net, and threw out several perfectly good babies with the bathwater. Even more unfortunately, I didn’t back up the database before I began this process. At this point, you can probably see where this story is headed. Later in the week, while I was attempting to delete four spam items, I was left completely horrified when the results of the operation reported that the remaining 10% — every single plugin remaining in the database — had been purged. All that remained was a year-old backup. Of course, I realize that this is a dreadful outcome, and I take full responsibility for it. If it helps, I am very receptive to hate mail and tweets reprimanding me for being irresponsible, unprofessional, or just stupid.


    At this juncture, we were left with two choices.



    • Keep on kicking the can down the road: Restore from the old backup, losing a lot of data anyway, and have authors go through the painstaking process of re-uploading their plugins, even though the site was slated to be deprecated entirely anyway.

    • Use this glaring mistake as the impetus to hunker down, cleave from the past, and finally implement the site we’ve talked about for so long.


    We’ve chosen the latter.


    Nuts And Bolts


    Over the past few days, we’ve started converting our plans into action, building out an infrastructure that’s backed by GitHub. There are two requirements for listing a plugin on the new site:

    Success Kid is helping out as well



    • A valid package.json file

      We’ve followed the lead of CommonJS and npm and created a schema for specifying dependencies, delivery, and other metadata of jQuery plugins. While the format is largely similar to those other projects, we’ve had to make some minor tweaks to account for some plugin-specific details.

    • At least one versioned release

      This means having tagged your release point(s) with a valid semantic version number (semver) string.


    We’ve pared down the submission and maintenance process to a single, one-time step: adding a post-receive hook to your plugin’s GitHub repository. Assuming your plugin meets the guidelines, a page will be created on the plugins site to present your usage and download information. We’ll keep track of new releases as you push them.


    In The Interim


    We recognize that the old site was still serving as an regular resource for a lot of people, especially newer jQuery users, who simply valued the existence of a central browsing location, despite its flaws. Though many experienced users had moved on to other sites, or relied on relationships with trusted authors and word of mouth, these can take time to develop. Until we’re able to launch the new system, we’re happy to direct you to several other directories and people who can help pick up the slack:



    If, in the process of searching these or any other directories, you are directed back to the current site at plugins.jquery.com, typically a quick search for the author’s name and the plugin name will yield an alternative site where it was hosted. In addition, DailyJS just did a useful roundup of alternatives that goes into more detail.


    Next Steps For Plugin Authors


    If you’re a plugin developer who wants to make sure your plugins will be ready to go on day one (or even beforehand), you’ll want to make sure your plugins are up on GitHub, and then you’ll want to get started on creating your package.json files and making sure your versions are appropriately tagged. If you aren’t already familiar with Git and GitHub, then this is probably a very good time for you to take the plunge and get started. If you prefer another SCM system, you can look into setting up a mirror to git from svn or hg, or other project hosting sites, like bitbucket or gitorious. If you don’t develop your plugins as open source, or you don’t use any source control at all, we will not be able to accomodate you at this time.


    How Can I Help'


    Though the site is still a work in progress, you can track progress and even set up your own local development right now at github.com/jquery/plugins.jquery.com/. We’re still working on getting a public staging environment together.


    Though the site is essentially “powered by” GitHub, there are obviously a number of moving parts in play. The site will actually be served from inside of WordPress, which is populated with the contents of the indexed plugins using a node.js tool. There are still many kinks to be ironed out, so if that sounds like a stack you want to jump on, please join us over at the repo. We’ll be using GitHub Issues for all feature requests, bugs, and discussion.


    While we’ve put a great deal of thought into putting together our package.json schema, it’s still a living document, and if you have questions or comments on why it is the way that it is, head on over to this issue.


    Errata


    In an ideal world, this certainly wouldn’t have happened exactly as it did. Sadly, it did. We hope you’ll accept our apologies for the many ways this transition might make your job harder, give you some extra work you weren’t expecting, or just plain leave a bad taste in your mouth. If you are able to forgive us, bear with us, and maybe even lend a hand, we’re confident we’ll be able to deliver the modern, useful plugins site the community deserves.



    TL;DR


    So that was a lot of words, here’s the takeaway.



    • We’d been planning on replacing the original, spam-ridden plugin site for quite some time

    • In the process of deleting on the spam, all the plugins were deleted and we didn’t have a recent backup

    • Instead of burning cycles keeping the old site on life support, we decided to make a clean break and kick development on the new site into high gear.

    • The new site is powered by GitHub and a package manifest for plugins

    • Plugins from the old site were never going to be automatically imported into the new one.

    • The repo is at github.com/jquery/plugins.jquery.com

    • We are very sorry, but also very excited!


2011/11/29
Official jQuery Blog
  • show-hide   jQuery Conference 2012: UK ? Training Workshops Announced

    We are very happy to announce two training workshops for this years United Kingdom conference. The trainings will be given by Doug Neiner, Ralph Whitbeck and Mike Hostetler of appendTo. The general admission tickets for the conference are now sold out but you can buy conference/training bundles and still attend the conference.


    appendTo


    appendTo will be giving Introduction to jQuery and jQuery Mobile workshops. The workshops will be held on Thursday, 9 February, 2012 at the Lady Margaret Hall in Oxford, UK.


    Introduction to jQuery


    jQuery has become the most popular JavaScript library for developers because of it’s easy to learn and write. This course takes students through the basics of jQuery focused front-end development. This material is meant to establish a core foundation for developers. With a solid basis of jQuery and JavaScript understanding a developer will feel confident that they can add richness to their web applications.


    jQuery Topics Covered*



    • Introduction

    • Find Something, Do Something

    • The jQuery Function

    • The jQuery Object

    • Events/Ajax/more…


    * Topics subject to change

    Price for the Introduction to jQuery workshop is £320 + VAT which includes a conference pass, £160 + VAT for just the training.


    jQuery Mobile


    jQuery mobile has gained undeniable press as a possible great solution to mobile web development. With a progressive enhancement approach jQuery mobile aims to allow a mobile web experience for all, while rewarding those with mobile devices capable of a rich experience.


    This training will cover a comprehensive review of the jQuery Mobile Framework, walking through all of its new features and functionalities available to build robust and cross-platform mobile sites. The entire API will covered along with examples of how to use each component to its fullest potential.


    The training concludes with a walk through of the construction of a jQuery Mobile application from scratch, all the way through to compiling a native version of the application with PhoneGap.


    Topics Covered*



    • The state of the mobile web

    • jQuery Mobile Feature Overview

    • Building a jQuery Mobile application from scratch

    • Go native with jQuery Mobile + PhoneGap


    * Topics subject to change


    Price for the jQuery Mobile workshop is £420 + VAT which includes a conference pass, £270 + VAT for just the training.


    The training workshops will be held on 9 February, 2012 at the Lady Margaret Hall and not at the Saïd Business School where the conference will be held.


2011/11/22
Official jQuery Blog
  • show-hide   Call for jQuery 1.8 Ideas

    We’re ready for our next round of community input, this time for version 1.8! This is your chance to suggest things we can fix, add, change, or remove in jQuery to make it better.


    You can add a suggestion using this form; whenever possible provide links to a bug report, a page with a detailed description, or implementations that represent your idea. We’d like to have all your input by December 5 so we can read and discuss them before setting the 1.8 roadmap.


    Many thanks for the suggestions left on our earlier blog post about how we can improve jQuery by trimming it down. We’ve gone through those comments and have a few thoughts about how we can address some of them in future versions.


    Create a configurable download builder


    Several people wondered why we don’t have a way to build a file with just the parts of jQuery you need, since jQuery UI, for example, has that option. It’s not quite the same situation. You know if you are using, say UI Accordion because you call it directly. You often do not know if you or some plugin you include on your page is using $.fn.prepend() or $.fn.animate(). Whether you are using them may even depend on parameters you pass to plugins at runtime.


    To keep jQuery development manageable and ensure that CDNs can offer a single file that everyone on the Internet can share and cache effectively, the team wants to stay with a single file as its primary offering. Creating a configurable download may improve file size marginally, but it also complicates documentation, plugin use, and debugging. That is a lot more work for both you and us.


    We’re already beginning the efforts to improve modularity by eliminating unwanted dependencies inside jQuery; many of the deprecated features we announce will be directed towards removing those dependencies. By laying that groundwork, others who want to create their own smaller subsets of jQuery or modular versions should have a much easier job.


    However, we believe we can do even better than that, and would like to offer automated ways for any user to create an optimally minimized file that includes both application code and just the needed parts of jQuery. In particular, we are working with the Google Closure Compiler team to see if we could use its ADVANCED_OPTIMIZATIONS option. We’ll have more information on our progress as it develops.


    Wait until version 2.0 before removing things


    We’re sensitive to breaking all the existing jQuery code out there. That is why we are deprecating things as early as possible, so that people have plenty of time to change their code. Just because we deprecate something today, it does not necessarily mean we’ll remove it in the next version. We believe the list of things actually being removed in 1.8 are minor and unlikely to affect most users.


    If our experiments with Closure Compiler pan out, we may even be able to leave in many deprecated features but they will be automatically removed if you don’t use them and build a custom application file that includes jQuery. That would be the best of both worlds.


    Remove IE 6, 7, and/or 8 support


    This topic comes up constantly, so let’s try to put it to bed once and for all. People tend to greatly overestimate the amount of code in jQuery that is specifically related to IE. Most of the problems in IE 6 and IE 7 are also present in IE 8, so there is no real size or complexity benefit to dropping support for the first two as long as that last one still has appreciable desktop market share and must be supported. Nobody (including Microsoft itself) likes these Jurassic Park browsers, but stripping out support for them right now would break web sites for many users.


    That said, we know that older-IE support is not required in some scenarios such as mobile browsers. We are looking into ways to put as much of that code as possible into a single clearly marked block so that it can be easily removed by someone who is willing to create their own custom jQuery version. It may also be possible to get Closure Compiler’s help with this issue as well. However, we are not sure that will even provide a significant space savings in gzipped file size, and it won’t offer a performance boost since those code paths aren’t taken in other browsers.


    Remove jQuery.browser


    We have documented for nearly two years that we intend to move jQuery.browser into a plugin, and several people suggested it in the comments as well. Browser sniffing is not a reliable way to look for features, we recommend something like Modernizr instead. The regular expressions used for browser sniffing are large and don’t compress well; moving it to a plugin will ensure that only the people who use it must pay that size penalty.


    What about your ideas'


    Please do take this opportunity to give us your input. The team is looking forward to reviewing your suggestions. Oh, and don’t forget to try jQuery 1.7.1 soon!


2011/09/06
Latest Updates from MySQL AB
2011/07/25
Latest Updates from MySQL AB
2011/06/27
Latest Updates from MySQL AB
2010/11/22
Prototype JavaScript framework - blog
  • show-hide   Prototype 1.7

    Last week, we tagged the first stable release of 1.7, marking the end of a far-too-long release cycle. We've made more than 50 improvements since the last stable version and are already working on 1.7.0.1.


    What's new'



    To learn about new features in version 1.7, refer to the blog post about the 1.7 RC1 release.



    As always, this release includes an assortment of bug fixes. Consult the CHANGELOG for further details, or see the full diff between this release and RC3.



    What's next'



    As I said when we released RC3, I'm eager to resume work on script.aculo.us 2.0, which had its first beta release two months ago. But we've also got plenty planned for the next few versions of Prototype:




    • The next bugfix version (1.7.0.1) will feature a rewrite of the DOM code to be easier to read and faster at the same time. We'll be consulting the TaskSpeed benchmarks throughout to measure our progress toward speeding up common DOM tasks.

    • The next minor release (1.7.1) will feature better compatibility with ECMAScript5 for all the stuff we share: Function#bind, Array#map, and so on. We'll make sure these methods are up to spec so that we can implement them as proper polyfills when they don't exist in the browser — and use the native versions where they do exist.

    • The next major release (1.8) will feature an overhaul of the Ajax code. We'll add a bunch of new features: JSONP, timeouts, guaranteed firing of callbacks for non-guaranteed readyStates, and a lot more.



    In addition, there are exciting things in the future for Evidence (the eventual replacement for our unit testing library) and Sprockets (our JavaScript concatenator and dependency manager).



    Download, report bugs, and get help





    Thanks to the many contributors who made this release possible!




2010/10/12
Prototype JavaScript framework - blog
  • show-hide   Prototype 1.7 RC3: Support for IE9

    Release Candidate 3 of Prototype 1.7 is now out. This long-delayed version includes full support for Internet Explorer 9.


    It was five months ago that we released RC2, and it was true that we were planning to release 1.7 final soon after. Two problems intervened:



    Element.getDimensions



    To minimize code duplication, we had redefined Element#getDimensions (and the related methods getWidth and getHeight) to use the new and preferred Element.Layout methods for measuring dimensions. This logic, while more robust, produced slightly different results in a few cases, so we decided to revert to the previous implementation of Element#getDimensions.



    If you're writing new code, we encourage you to use Element.Layout ? e.g., someNode.measure('border-box-width') instead of someNode.getWidth(). You'll get more accurate results in general. But we're leaving Element#getDimensions the way it is to ensure that people don't have to rewrite existing code.



    Internet Explorer 9



    The far more important reason for putting the brakes on 1.7 was the impending release of Internet Explorer 9. In short, we didn't want to put out something that would break in large ways when IE9 was released. That meant waiting for a preview release of IE9 that was stable enough (and representative enough of the final product) to test against.



    The IE9 beta passes all but one of our unit tests. The one minor failure is the result of an issue on Microsoft's end; we hear it will be fixed before the final release of IE9.



    Other changes



    To learn about new features in version 1.7, refer to the blog post about the 1.7 RC1 release.



    As always, this release includes an assortment of bug fixes. Consult the CHANGELOG for further details, or see the full diff between this release and the previous release candidate (RC2 to RC3).



    What now'



    Now that we've got these two issues solved, we're eager to get the final release out the door. It'll free me up to lend more time to script.aculo.us 2.0 (which just saw a beta release) and its nascent UI components.



    Download, report bugs, and get help





    Thanks to the many contributors who made this release possible!




2010/05/13
Prototype JavaScript framework - blog
  • show-hide   Prototype 1.7 RC2

    We?ve just tagged Release Candidate 2 of Prototype 1.7, with the intent of putting out a final 1.7 release very soon.


    In addition to the usual bug fixes, RC2 includes a late addition: the Element#purge method, used to dispose of an element (remove its event handlers and storage keys) before removing it from the page.



    In addition, Element#update now performs a similar cleanup process on content that will be replaced via innerHTML. Both these additions should help keep memory usage down, especially for apps that create and destroy lots of DOM nodes.



    Consult the CHANGELOG for further details.



    Download, report bugs, and get help





    Thanks to the many contributors who made this release possible!




2010/04/05
Prototype JavaScript framework - blog
  • show-hide   Prototype 1.7 RC1: Sizzle, layout/dimensions API, event delegation, and more

    We've just tagged the first release candidate of Prototype 1.7: a major new version with some major new features.


    Sizzle as the selector engine (or mix in your own)



    With Prototype 1.7, we've finally realized our long-held goal of moving to Sizzle, the middleware selector engine used by jQuery and others. I wrote our previous selector engine, used since 1.5.1, but nevertheless I'm excited to switch to a more robust engine that's shared between frameworks.



    So Sizzle is the new default. But there's more to it than that. In moving to Sizzle, we've modularized the selector engine entirely. If you want to use Diego Perini's NWMatcher library in place of Sizzle, you can. Just check out the source code and build like so:



    rake dist SELECTOR_ENGINE=nwmatcher


    If you're a sentimentalist, you can use the legacy Prototype selector engine by specifying SELECTOR_ENGINE=legacy_selector. Or add your own selector engine by creating a subdirectory in vendor/ and following some simple conventions.



    Element#on



    Element#on is a new way to access the Prototype event API. It provides first-class support for event delegation and simplifies event handler removal.



    In its simplest form, Element#on works just like Element#observe:



    $("messages").on("click", function(event) {
    // ...
    });


    An optional second argument lets you specify a CSS selector for event delegation. This encapsulates the pattern of using Event#findElement to retrieve the first ancestor element matching a specific selector. So this Prototype 1.6 code...



    $("messages").observe("click", function(event) {
    var element = event.findElement("a.comment_link");
    if (element) {
    // ...
    }
    });


    ...can be written more concisely with Element#on as:



    $("messages").on("click", "a.comment_link", function(event, element) {
    // ...
    });


    Element#on differs from Element#observe in one other important way: its return value is an object with a #stop method. Calling this method will remove the event handler. (Technically, this is an instance of a new class called Event.Handler.) With this pattern, there's no need to retain a reference to the handler function just so you can pass it to Element#stopObserving later.



    For example, in Prototype 1.6, where you'd need to write something like...



    start: function() {
    this.clickHandler = function(event) {
    // ...
    };

    $("messages").observe("click", this.clickHandler);
    },

    stop: function() {
    $("messages").stopObserving("click", this.clickHandler);
    }


    ...you can now write:



    start: function() {
    this.clickHandler = $("messages").on("click", function(event) {
    // ...
    });
    },

    stop: function() {
    this.clickHandler.stop();
    }


    Also note that the Event.Handler class has a corresponding #start method that lets you re-attach an observer you've removed with #stop.



    So, to review, Element#on is both a new approach to event observation and an implementation of event delegation. Feel free to eschew Element#observe and use Element#on exclusively; or use Element#on just for event delegation; or keep using Element#observe the way you always have.



    Element.Layout: Your digital tape measure



    The second major feature in 1.7 is Element.Layout, a class for pixel-perfect measurement of element dimensions and offsets.



    Now you don't have to decide between properties like offsetWidth (which return numbers, but not the numbers you want) or retrieving computed styles (which have their own set of quirks and require a call to parseInt).



    The simple case



    If you want a one-off measurement of an element, use the new Element#measure:



    $('troz').measure('width'); //-> 150
    $('troz').measure('border-top'); //-> 5

    // Offsets, too:
    $('troz').measure('top'); //-> 226


    The argument passed to measure is one of a handful of intuitive names, most of which are derived from their CSS equivalents. So width means the width of the content box, just like in CSS ? but we throw in extra properties (e.g., padding-box-width, margin-box-height) for some common measurements. This approach gives you far more granularity than common DHTML properties like offsetWidth and clientHeight.



    These measurements are guaranteed to be in pixels. Even in IE. (In fact, Prototype works around a handful of IE quirks that would ordinarily result in inaccurate measurments.) It can even measure elements that are hidden, as long as their parents are visible. (Like when you want to animate an element from a hidden state and need to know how tall it will be.)



    The complex case



    If you need to measure several things at once, though, Element#measure is not the most efficient way to do it. Often an element will need a bit of manipulation before it reports its dimensions accurately, which means measurements can be costly.



    The Element.Layout class tries to minimize that cost. It's a read-only subclass of Hash that remembers values in order to avoid re-computing.



    First, use Element#getLayout to obtain an instance of Element.Layout:



    var layout = $('troz').getLayout();


    Now use Element.Layout#get to retrieve values, using the same property names you used for Element#measure:



    layout.get('width');  //-> 150
    layout.get('height'); //-> 500

    layout.get('padding-left'); //-> 10
    layout.get('margin-left'); //-> 25
    layout.get('border-top'); //-> 5
    layout.get('border-bottom'); //-> 5

    layout.get('padding-box-width'); //-> 170
    layout.get('border-box-height'); //-> 510

    layout.get('width'); //-> 150


    Here's where the remembered values (or memoization, if you prefer) come in. When I ask for width, Prototype measures the element ? which, as we discussed, is a costly operation ? and returns a value. A few lines later, I ask for width again, and I get the same value. But this time it didn't do any measuring. It remembered the value from last time.



    There's more. When I ask for border-box-height, Prototype knows that's just height plus border-top plus border-bottom. All three of those properties are already memoized, since I asked for them earlier, so it skips the measurement phase and just gives me the sum.



    How does it know when an element's dimensions change' It doesn't. Don't hang onto an instance of Element.Layout for too long; it's meant for short-term efficiency, not long-term caching. You can grab a new instance by calling Element#getLayout again.



    Believe it or not, this is the short version. Read the documentation to learn more.



    JSON fixes, ES5 compliance



    The JSON interface slated for ECMAScript 5 is already being implemented in major browsers. It uses many of the same method names as Prototype's existing JSON implementation, but with different behavior, so we rewrote ours to be ES5-compliant and to fall back to the native JSON support where possible. A few other methods, like Object.keys, received similar treatment.



    And, of course, bug fixes



    Consult the CHANGELOG for further details.



    Download, report bugs, and get help





    As always: thanks to the many contributors who made this release possible!




2009/09/10
Prototype JavaScript framework - blog
  • show-hide   Documentation: not just new, but also improved

    When we officially released 1.6.1 last week, we also published new documentation, the first official docs generated with PDoc.


    Tobie, ear to the ground, brought to my attention what many of you were saying (on the blog and on Twitter): the new docs were harder to navigate and, therefore, harder to browse. Though I had eventual plans to re-do the navigation, the instant feedback showed it was a more critical issue than I?d guessed. So I spent the last week making some changes to the template we use to generate the docs.



    You can see the results at api.prototypejs.org. The biggest change is obvious: a fixed, always-visible sidebar that makes it easier to move from section to section. Typing in the search box replaces the hierarchical navigation with a list of matching results. Clearing the search box (use the ESC key as a shortcut) switches back to the ordinary navigation. The sidebar will preserve state from page to page ? it?ll remember your search term and the scrollbar position.



    The docs aren?t perfect yet, but they?re good enough to use. I?ve tested them on Firefox 3.5, Safari 4.0, and IE 7?8. If there are glitches in these browsers or others, please open issues on the GitHub project. (If you, as a JavaScript developer, are still using IE 6; I?d like to take you out for a beer and ask you why.)



    We intend for this to be default template included with PDoc, albeit without the Prototype branding. And now that we?ve accomplished the most pressing goal ? getting PDoc to generate comprehensive and canonical docs for Prototype ? we can focus on the big ideas we?ve got for the next version of our inline documentation tool.




2008/08/01
Installation MAMP
Installation WAMP
Installation LAMP Ubuntu
Les effets javascript avec Scriptaculous
jquery 1.2.3
http://www.mysql.com/
Le site officiel du serveur de base de donnée Mysql.
http://www.apache.org/
Le site officiel du célèbre serveur Web.
http://www.php.net/
Le site officiel du langage de programmation Php
http://www.jquery.info/
Le site français de la célèbre librairie Javascript (ajax, effets d'animation, drag and drop...)
http://xajaxproject.org/
Le site officiel de la librairie (Javascript / Php) pour utiliser Ajax facilement et proprement.
http://validator.w3.org/
Pour valider son code Web (xhtml, html...)

Wall

+/-
Bienvenue !

Posted on 2008/08/01 11:07 by Ludovic Raymond.

Bienvenue sur le réseau des concepteurs Web LAMP !
N'hésitez pas à partager vos connaissances, vos expériences, vos exclus !

les concepteurs web LAMP / MAMP / WAMP
les concepteurs web LAMP / MAMP / WAMP

Creates on 2008/07/31 by Ludovic Raymond,
expert in "Développeur Web, Web Mobile", Communication - Computers - Internet.

Public network

Subject : Computing

Actions Actions

Director Director

Moderator Moderator

Share this Share this