Today marks the beginning of a new stage for DOMAssistant. It is time for version 2.6 to see the lights of day, and it is packed with improvements, features and an infrastructure to back it up!

What’s new

Overall fastest CSS selector performance in the market

One of things we have focused very hard on with this release is performance. Performance is vital in any web site or application, but it is often overlooked, or at least underrated. Therefore, a lot of work has gone into fine-tuning the CSS selectors in DOMAssistant, to give results as fast as possible, while also making sure the selectors return accurate matches.

I’m proud to say that DOMAssistant currently has the fastest overall CSS selector performance, where it is noticeably faster than the other JavaScript libraries in all web browsers, but Internet Explorer. In Internet Explorer, it is the second fastest (marginally faster than jQuery), behind Ext JS.

Using querySelectorAll and native getElementsByClassName

Safari has implemented querySelectorAll in their latest nightly builds of WebKit, which means that it will be in an upcoming version of Safari. It is a native support (and in a W3C draft) for using CSS selectors to select elements, and the results are astounding! Download a nightly build of WebKit (don’t worry, it won’t mess up existing installations) and hold on to something!

Upcoming versions of Safari, Firefox and Opera will support getElementsByClassName natively, so DOMAssistant utilizes that where it’s available.

XPath

Where querySelectorAll and getElementsByClassName aren’t available, DOMAssistant resorts to XPath to select elements, which is an approach that also has very impressive performance results, not to mention native web browser support. The only web browser not supporting XPath is Internet Explorer, where the only option is “regular” looping through elements.

Plugins

The idea is to keep the DOMAssistant core functionality as small, slimmed and optimized as possible, while we definitely respect and understand the needs other web developers, as well as us, have regarding extending that functionality. Now DOMAssistant offers an extremely easy-to-use plugin functionality, which hooks in on top of the DOMAssistant core.

For example, you might need a script to validate all the input fields in a document, if they have the class mandatory. Just customize your own validate function and use the plugin approach to add it to the DOMAssistant core. For example, your syntax can then look like this:

All plugins created will be publicly listed in the plugins page, sorted into categories so you can find the type of plugin you’re looking for. If you feel a certain plugin is missing, feel free to submit your own plugin.

The $$ method

In earlier versions, there has been some confusion about what to send in to the $ method. It would accept plain ids, CSS selectors and objects. However, by supporting the mix of ids and CSS selectors, it ruled out sending in just a certain tag, since it would then be interpreted as an id rather than a CSS selector.

With the new plugin structure in place as well, this change was inevitable. It had to become consistent so everyone could start adding their own functionality, and get back expected results.

Another factor was that there are times when there’s a need to work directly with properties and methods on the native DOM element (e.g. offsetHeight, style etc), whereas the $ method returns a DOMAssistant collection of elements mainly intended for DOMAssistant methods and chaining.

Therefore, we have decided to introduce the $$ method, which returns a direct DOM reference, but with all the extra DOMAssistant methods applied to it as well. So, to summarize:

Accepts either a CSS selector or an object reference. E.g. $("#container .external-links"), $(document). Fails silently if you try to call a method when the selector didn’t return any matches; i.e., $("input[type=text]").addClass("text-fields") won’t throw an error trying to call the addClass method, even if the $ selector didn’t match any elements.

Returns: A collection of one or several nodes for CSS selectors/object reference when an object was sent in.

Accepts a string parameter, expected to be the id of an element. E.g. $$("container"), $$("navigation"). Will throw an error if you try to call a method, if there wasn’t any match.

Returns: A direct reference to the DOM element.

Backwards compatibility issue

The result of this is that if you have used the $ method and only passed in ids, then it will not work with this new release. It will be regarded as a CSS selector and element names. I am truly sorry for this, but it was vital for the future of DOMAssistant.

But fret not! The very simple solution for those scenarios is to just replace $ with $$, and it will work exactly as before! So, make the change now and you should be DOMAssistant future compatible.

Support for multiple simultaneous AJAX calls

Before, the get and post methods would just allow one call at the time, and if another was started before the previous had finished, the previous call got cancelled. This has now been addressed, so you can have as many simultaneous calls as you want.

Bug fixes

Fix for addContent method calls on a collection.

Fix for replaceContent method calls on a collection.

Fix for id bug in Internet Explorer and Opera, where it matched elements with that name as well (id and name mixups bug).

Removed unnecessary attribute removal in the replaceWithAJAXContent method for the AJAX module.

(Re)Added support for XUL events (DOMMouseScroll etc) with the addEvent method (this fell out in between versions).

Infrastructure

Talking about infrastructure, I mean what has happened around the DOMAssistant JavaScript library.

Discussion forum

Something that has been asked for numerous times is a public forum where peole can ask questions about or discuss DOMAssistant. Now there is a DOMAssistant discussion forum where anyone can get help, or discuss how to implement a certain thing

The DOMAssistant Team

A DOMAssistant team has been formed, and its tasks consist of testing DOMAssistant, helping out in the discussion forum, evangelizing, analyzing and helping out with the code itself and general advisory functions. They are invaluable to DOMAssistant, and the team members are:

Offline documentation

Something which has been requested is the ability to download the DOMAssistant documentation to read it through or print it, without having to use the DOMAssistant web site itself. Now there’s a PDF download in the documentation section to cater to those needs.

Web site and blog

Previously, DOMAssistant was hosted at http://www.robertnyman.com/, but it had to stand on its own. It also features this blog to talk about DOMAssistant or general JavaScript topics, and to make announcements about releases.

What about animations?

I’ve gotten a lot of feedback from people saying that they love DOMAssistant, but now and then they have a need to use animations in a web page. My philosophy is to have as little as possible in the DOMAssistant core code, I’d rather take things out than add more methods, and I don’t regard animation functionality as being important enough to be in there.

However, of course there’s a need for animations, and just as we speak, Pelle of the DOMAssistant team is working hard on putting together a plugin to DOMAssistant with just that. Stay tuned, we’ll alert you in the blog as soon as it’s available.

Mines and elixir routinely harvest the currencies once positioned within the floor.
While it definitely didn’t have the opening weekend of the
similar ’300′ ($70. He does show up for the gig but he and Gunnar almost come
to blows before they go on stage.

This skill encourages you to use guns with smaller clips, which generally is advantageous to this
build anyway. You will miss a lot, but when you do hit,
your damage will be insanely high. Release the Beast (B+) – Release
the Beast is a great skill, but it is incredibly hard to actually use.
What can be garnered from available information ahead of its release
date, the visual style and humorous dialogue are going to be back, but what is going
to set this apart through its predecessor. Finally, if your action skill can be
used conveniently, spend about half an hour killing enemies while it
is active. Prematurely reloading a second time ends this state.

Some video games have provided improvement in “Cognitive Flexibility”, which is the ability to switch
quickly from one task to another. Sirens, kill a mob with
your action skill and you’ll get “Truly Outrageous”.

The game looks awesome so far and will most likely deliver what is to be expected.
Many of these are points you’ll probably do normally in the program of
the game so you can anticipate a fairly stable flow of Badass
Tokens between personality degrees.

Thanks for one’s marvelous posting! I genuinely enjoyed reading it, you
happen to be a great author. I will be sure to bookmark your blog and
will come back from now on. I want to encourage you to continue your great posts,
have a nice day!

I have attempted other people but there is none that suppress your urge
for food greater than this. Phen375 is yet another weight reduction product that’s
striking the current market. Phen375 (or Phentermine375) is a synthetic fat burner and urge for food suppressant.

Excellent items from you, man. I’ve take note your stuff prior to and you’re simply too great.
I really like what you have bought right here, really
like what you are saying and the way through which
you say it. You are making it enjoyable and you continue to take care of
to stay it smart. I cant wait to read much more from you.
That is actually a great site.

You can burn the grass with spray, other substances such as inhalants saliva divinorum and evaporator.
If you are interested in using a mineral foundation, but I have
no idea how to apply it, here is a simple step-by-step
guide to help you achieve light weight, flawless finish that can only mineral
substrates. Babies feel a lot of relaxation and the soothing effect
of the medicated vapors heal the congestion.

But I do not use the sponge in its mouth because it
looks too pretty, so the fish is now the guard of the sink.
Kitchen design styles change quite fast and this can also be hastened by the use of the latest modern gadgets like blenders, juicers, modern ovens, steamers and the like.

The product or service is very high priced still clearly cheaper that breast enhancement surgeries.
Triactol is made of plants extracts are widely grown in the Thailand jungle known as Pueraria mirifica.

This method is not recommended because it is highly inconvenient and painful.

The other day, while I was at work, my cousin stole my
apple ipad and tested to see if it can survive a
twenty five foot drop, just so she can be a youtube sensation.
My iPaad is now broken and shhe has 83 views. I know this is totally off topic but I had to
share it with someone!

A country is what the countrymen make it and countrymen of Bhutan are the most
peace loving beings one can ever come across thus making every tourist feel welcome in their
land. This is an overview of the major hospitals in India catering to medical tourists
and what you can expect for medical care and medical facilities.
The Phoenix area, in my opinion is the greatest winter
golfing destination in the US.

This will be ideal for any individual that travels and desires to hold their
current mobile cell phone. If customers want versatility in their
cellphone, then they have to have to have the Blackberry code generator.
The Black – Berry Daring 9650 can be unlocked and employed with any GSM-centered mobile carrier.

Examine the frame tto see if there are any noticeable
cracks, andd look for huge portions with rust. As we
all know that many of the fresh erbs and spices used in Thai cooking – such as turmeric, galangal,
coriander, lemongrass, and fresh chillies
- have immune-boosting and disease-fighting power. This also means that you should wait your jeep
to cool down before washing it after a ride.

Heey I knopw this is off topic but I was ondering if you knew
of any widgets I could add to my blog that automatically tweet
my newest twitter updates. I’ve been looking for a plug-in like this for
quite some time and was hoping maybe you would have some experience with something
like this. Please let me knoow if you run into anything.

I truly enjoy reading your blpg and I look forward to your
new updates.

Hi! I know this iss kinda ooff topic nevertheless I’d figured I’d ask.
Would you be interested in exchanging links orr maybe guest authoring a
bog post or vice-versa? My site covers a lott of thhe
same subjects as yours and I beelieve wwe could greatly benefit from
each other. If you might be interested feel free
to shoot me aan e-mail. I look forward to hearing from you!
Superb blog by thee way!

It’s a pity you don’t have a donate button! I’d without a
doubt donate to this excellent blog! I suppose for now i’ll settle
for bookmarking and adding your RSS feed to my Google
account. I look forward to brand new updates and will talk about this site with
my Facebook group. Chat soon!

Hi, I ddo believe this is a great website. I stumbledupon it I’m going to return yet again since i have book
marked it. Money and freedom is the greatest easy way to make
money onlikne free (Ava) to change, may
you be rich and continue to guide others.

Good day I am so glad I found your web site, I really found
you by accident, while I was searching on Digg for something else, Regardless I am here
now and would just like to say kudos for a marvelous
post and a all round exciting blog (I also love the theme/design), I don’t have time to browse it all at the moment but I have bookmarked it and also included
your RSS feeds, so when I have time I will be back to read more, Please do keep
up the fantastic job.

Oh my goodness! Amazing article dude! Many thanks, However I
am having issues with your RSS. I don’t know why
I am unable to join it. Is there anybody having similar RSS problems?
Anybody who knows the answer can you kindly respond?
Thanx!!

When henna becomes dry, just wash your hair with simple water and do not use shampoo.
You will see a significant difference in your hair just from selecting the correct natural products and getting basic trims.
Instead of being simply a means of concealing gray hair,
as it was once regarded, hair color is now used for many purposes by women of all ages.

Wilkinson has been devastated since reports surfaced in June 2014 that her
husband, former NFL star Hank Baskett, had cheated on her
with transsexual model Ava Sabrina London just one month
after Kendra gave birth to their second child. An effective weight loss pill can help you to break bad habits, jump start your metabolism and help you achieve the
weight loss you want. Many weight loss methods are available on the market but experts recommend that you
avoid quick-fix solutions.

At the same time, with the Shanghai World Expo, the South African World Cup
is approaching, and the second half of 3D television pilot, both for the
color TV market into a new life and power, integrated LED backlight, network
multimedia and 3D stereoscopic display. 18 per share of common stock, payable June 7, 2012, to shareholders of record on May 1, 2012.
If you want a faster processor, you don’t have to buy a new phone and you don’t need
to be a computer whiz, you simply need to root your system.

Thank you for all that you have given to me,cara pemesanan gold g hopefully all of these are useful for all of us.
Thanks for some other fantastic article. Where else could anyone get that type of information in such a perfect method of writing? I have a presentation next week, and I am on the search for such info.

I think the article is quite important for the bloggers who want to learn SEO beginner like me , however , the above article my friend that I so know that usually I just bermokentar Nice Post Gan but now I know how to comment that is good and right .