HTML5 data-dojo Attribute Support

Dojo has long provided support for declaring widgets and specifying other information directly in HTML. This support makes it extremely quick and easy to get an application started. You can start instantiating widgets by adding attributes to HTML elements before even writing any code. This is not only a very convenient tool, but using a declarative approach to binding widgets to elements can be viewed as cleaner and more organized than using the imperative mechanics of JavaScript.HTML5 Powered with Semantics Widgets declared in markup have an encapsulated construction, avoiding instantiation that requires spanning and synchronizing HTML and code manually.

However, the use of Dojo’s declarative tools has been avoided by some because it uses custom attributes that are outside the HTML specification. While this approach works in every browser on the market and is implicitly allowed, it does not validate against the HTML4 validators. Now, the new HTML5 specification provides a namespace for custom attributes. The data-* attributes are available for libraries and authors to use for their own purposes and extensions while still having validating markup. The HTML5 specification further recommends that library use a sub-namespace for their custom attributes to avoid conflicts with other code. All of the Dojo custom attributes begin with data-dojo-. Let’s look at the new Dojo attributes.

Continue reading

Bookmark and Share

The Year of Dojo is Here!

Welcome to 2012 – The Year of Dojo!  We are expecting an amazing year! Make SitePen your one stop shop for all of your web application needs; Dojo workshops, JavaScript support and web app development.  Together, with SitePen, you will meet your 2012 goals!  When you’re happy, so are we.

Learn Dojo - We are dedicated to providing you with the highest quality Dojo Toolkit workshops in the industry.  Whether you want to learn the basics of Dojo or sharpen your Dojo skills, we have a workshop just for you.  All of our Dojo Workshops are taught by our Dojo experts.  We promise you won’t be subjected to listening to some trainer who can’t live without his slides.  Wondering if our Dojo Workshops will cover Dojo 1.7?  The answer is yes!

Ready to learn Dojo?  Check out our full list of 2012 workshop dates and locations.  Sign up for any of our 2012 Dojo Workshops by January 31, 2012 with promo code IHEARTDOJO and get 10% off!

Here to help - Did you know we also have support plans to fit every size and every need?  No matter which support plan you choose, our expert engineers will help you by answering questions, resolving bugs, and solving problems. We offer no-hassle ways to get in touch with your SitePen Support team, which means no waiting on hold, or having to explain your issue over and over again until you get to the right person.  With us, you always have access to the right people. If your project runs in to a critical issue, our expert SitePen engineers will jump in to help you quickly get back on track. Oh, and yes, all of our support plans include support for dGrid and Dojo 1.7! Having a SitePen Support plan is preparing for possibilities.  Even football teams have backup quarterbacks.

From 2 support hours to 200 support hours, SitePen has a support plan to fit your needs.  Take a look!

Perfect match of design and development - We are your one stop shop for your next project, including mobile web applications! Our expert team will take your web application from concept to launch.  We’ve mastered the front end and are here to help you build powerful, simple, and usable web apps, every single time.

Whether you need a traditional web application, mobile web application or installable mobile web app store application, SitePen can help!

Still not sure how we can help you?  Contact us today! (You can even call us if you want.)  Celebrate 2012 – The Year of Dojo!

Bookmark and Share

Native JSON Parsing in Dojo

Dojo 1.7 introduces a new JSON module available at dojo/json. This differs from the legacy dojo.fromJson and dojo.toJson in that it is based on the new native JSON API in the JavaScript language (introduced in EcmaScript 5). It also delegates to the native JSON parser and serializer when they are available, providing the fastest possible execution for any given browser.

Continue reading

Bookmark and Share

Learn about AMD at SitePen’s Dojo Workshops

If you’ve been reading about Dojo 1.7, the first thing you’re probably wondering is, what is this AMD thing that everyone is talking about? Check out Dylan’s post at the Dojo Toolkit blog to “Learn more about AMD!“.

In addition to the useful links Dylan provides, you can also learn more about AMD at a SitePen Dojo Workshop.  AMD + Dojo 1.7= Awesomeness.

Bookmark and Share

Touching and Gesturing on iPhone, Android, and More

One of the most important parts of creating an effective and intuitive user interface on touch-enabled smartphones has nothing to do with visual appearance—instead, it has to do with creating an interface that properly responds to user input based on touch. For Web applications, this means replacing mouse events with touch events. In Dojo 1.7, new touch APIs help make this process easy.

This is an updated version of the post Touching and Gesturing on the iPhone, published in 2008.

Continue reading

Bookmark and Share

Dojo Drag’n’Drop Redux

dojo/dnd is one of Dojo’s core APIs and is designed to manage the process of dragging and dropping items between two or more containers. It offers advanced features like multiple selections, item acceptance filtering on drop targets, and other behavioral tweaks. Let’s learn how to use it!

This is an updated version of the original article, Dojo Drag and Drop, Part 1, published in 2008.

Continue reading

Bookmark and Share

We’ve (unofficially) declared 2012 as the Year of Dojo!

2012 Year of Dojo

SitePen is so dedicated to providing you with the highest quality Dojo Toolkit education in the industry that we will be in 11 states, providing 22 Dojo Workshops throughout 2012.  Whether you want to learn the basics of Dojo or sharpen your Dojo skills, we have a workshop just for you.  We guarantee that all of our Dojo Workshops will be taught by our expert engineers.  We promise you won’t be subjected to listening to some trainer who can’t live without his slides.  Wondering if our Dojo Workshops will cover Dojo 1.7?  The answer is yes.

Register in 2011. Attend in 2012. Where will you start your 2012 Year of Dojo celebration? Check out the full list of SitePen’s 2012 Dojo workshops.

Dojo Toolkit has some vocal fans. Here’s a random sample of what we’ve found recently on Twitter:

Have I been living under a rock? How come I’ve never come across Dojo toolkit? I am going to have to learn the ins and outs… @ deshiknaves

Working on my #Dojo 1.7 presentation, it’s so tough to pick the best new bits in 1.7, there’s so much amazing stuff! @ thomasj

i’ve been working with design part of this system and found out that #dojo is better than #JQuery in terms of performance.. #toolkit @ hayadeen

Psst! What’s that you say?  You want to learn Dojo in January? No problem! Join us in Las Vegas, NV or Raleigh, NC. (Did we mention all of our 2012 workshops will cover Dojo 1.7?)

jUMP into Dojo - Las Vegas, NV - January 9, 2012
jUMP into Dojo is the best starting point for any developer wanting to learn about Dojo, Ajax and Rich Internet Application development. This workshop gives a rapid introduction to the capabilities of Dojo as well as the experience in applying them to solve real-world problems.  And did we mention this one is in Las Vegas?  Enuff said.

Dojo Master – Raleigh, NC - January 18-19, 2012
Dojo Master is our black diamond workshop, taking the advanced scripter through the expert techniques needed when tackling the unique problems web applications can bring. This workshop is best for the intermediate-advanced developer who has used Dojo in several projects and who wants to get the most out of Dojo and JavaScript to make reliable and scalable applications.

What are you waiting for? Register today! Use promo code IHEARTDOJO and get 10% off!

Bookmark and Share

Rich Web Experience 2011 – And so it was!

SitePen’s Dylan Schiemann delivered the last of his three Rich Web Experience 2011 presentations yesterday, Never Bet Against the Open Web.

Dylan had this to say about his time at #RWX2011:

The level of interest in AMD, object stores, and mobile is impressive. And the excitement around the potential of xstyle and put-selector was also very cool to see. The community is seemingly rabid for new tools and features that make development easier, and it’s incredible to be part of that.

And if you haven’t seen this already- Dojo 1.7 Released!

We have made all of Dylan’s Rich Web Experience 2011 (and many other) presentations available here.  Don’t forget to follow SitePen on Twitter and Google+!

Bookmark and Share

Rich Web Experience 2011- Day 2- Dojo 2.0

After an amazing Real Time, Real Fast keynote address on the opening night of Rich Web Experience 2011, Dylan delivered an authoritative presentation on Dojo 2.0: Modular, Mobile, and Reinventing Web App Development.  He talked about the reinvention of the Dojo Toolkit, showed off the wide variety of features and approaches currently available in Dojo, and even gave a sneak peak of the forthcoming Dojo 2.0 release!

Hot off the presses! Dylan just penned this announcement on the release of Dojo 1.7!

Today Dylan will share his passion for the open web with all Rich Web Experience 2011 attendees through his Never Bet Against the Open Web presentation.  He will showcase his expert knowledge of the open web through explanations of how the open web is quickly replacing, diminishing or lowering the barrier to entry for all native platform capabilities.

For those of you not attending Rich Web Experience 2011, or if you were so amazed that you want to see his presentations again, we will be making all of Dylan’s Rich Web Experience 2011 presentations available online shortly after the conference.  To be one of the first to know when they are available, get social with SitePen.   Follow us on SlideShareTwitterGoogle+.

Bookmark and Share

Rich Web Experience 2011- Day 1 – Killer Keynote

SitePen’s Dylan Schiemann delivered a powerful keynote, Real Time, Real Fast, during the opening ceremony of Rich Web Experience 2011 last night in Fort Lauderdale, FL.  His presentation covered the evolution of web app development through modern real time technologies, cost and benefits of different transports, provided a deep dive into WebSocket, and advocated for using a scalable architecture with constant time and space event distribution.  In case you missed it, you can view his presentation here.  (We think it was pretty awesome.)

Today, Dylan will present Dojo 2.0: Modular, Mobile, and Reinventing Web App Development covering the reinvention of the Dojo Toolkit, one of the original Ajax toolkits, showing off the wide variety of features and approaches currently available in Dojo and give a sneak peak of the forthcoming Dojo 2.0 release.  This is one presentation you won’t want to miss!

For those of you not attending Rich Web Experience 2011, or if you were so amazed that you want to see his presentations again, we will be making all of Dylan’s Rich Web Experience 2011 presentations available online shortly after the conference.  To be one of the first to know when they are available, get social with SitePen.   Follow us on SlideShareTwitterGoogle+.

Bookmark and Share