To Go Native Or Not To Go Native… That Is The Question

Over the past couple of weeks I have been slowly planning and revamping my iPhone app to address user concerns, bugs, and problems. And as part of the rework I decided to support other platforms, in addition to the iPhone, such as the iPad, Android, and Windows Phone 7. However with this new focus, I had one huge problem, how was I going to learn each new SDK. This problem led me to struggle with if I should develop for each platform natively in its own language and SDK or use a cross platform programming language that would basically put a shim on top of the native SDK. The pros and cons of each approach where the following: ...

October 20, 2010 · 3 min · 638 words · Nick Berardi

jQuery 1.4 Alpha 1 Released

Looks like some great new improvements coming to the 1.4 release. It doesn’t look like any new methods are being added, but updating many of the new ones released with 1.3. There are a few areas in jQuery that have seen extensive changes since 1.3.2 was released: live was drastically overhauled and now supports submit, change, mouseenter, mouseleave, focus, and blur events in all browsers. Also now supports context and data. append, prepend, etc. have been heavily optimized. add has been adjusted to always return elements in document order. find, empty, remove, addClass, removeClass, hasClass, attr, and css have been heavily optimized. Full details concerning the release are forthcoming - for now we just need your help in catch regressions. Some more details can be found in John Resig’s keynote at the 2009 jQuery Conference. ...

December 4, 2009 · 1 min · 177 words · Nick Berardi

Create an attractive loading panel in jQuery

One of the important things about web programming, especially when using AJAX, from a usability standpoint is to provide a responsive user interface to the audience. This level of responsiveness to the user’s actions can be achieved in many different ways; showing messages, changing colors, adding animation, changing contexts, basically anything that provides a natural transition from the action performed by the user to the reaction by the application to indicate that their action is actually causing something to happen. ...

November 12, 2009 · 6 min · 1128 words · Nick Berardi

Add Your Twitter Status To Your Blog

For the longest time I have been wanting to add my Twitter status to my blog in place of my quote right under my blogs name in the header. (see above) Today I sat down and figured out what I needed to do to accomplish this and to my surprise it only took all of 10 minutes to complete. What you need in order to achieve the same for your own blog is: ...

October 11, 2008 · 2 min · 380 words · Nick Berardi

jQuery and Visual Studio Shipping Together

I have been a huge fan of jQuery ever since I started working on IdeaPipe about 10 months ago. Mostly because of its simplistic DOM access using standard CSS syntax that we all have to learn anyways in the modern Web 2.0 world. In addition to the ease of finding elements on your page, it also works very nicely with other frameworks, I have used it in combination with Microsoft AJAX, Google’s GData JavaScript, and TinyMCE. ...

September 28, 2008 · 2 min · 299 words · Nick Berardi

How to create a non-Native jQuery event

Today I had the need to create a custom event using jQuery, in order to launch a customized form validation event from a global submit event. I did this so I could focus in on the first form field that had an error. My event from the global.js script, that is included on every page of IdeaPipe, looks like this: $("form").submit(function () { var valid = $(this).validate(); // if the form didn't validate then focus the input on the first error if (!valid) $(this).find(":input[error]:first").focus(); return valid; }); This is pretty standard jQuery. What this code above does is set a custom function for the submit event for any tag on the page. The submit event will only be allowed to continue if a return value of true is returned from the function. ...

May 23, 2008 · 2 min · 349 words · Nick Berardi

Is MVC Right For Your Application?

There is a simple way to tell if you can use MVC in your web application. If any of the following are true, you probably shouldn’t: You require the ViewState This includes any 3rd party control… Quick way to check this is disable ViewState and check to see if you application works as expected. You require post backs This usually is required by Web Forms or Microsoft AJAX Toolkit… Fortunately most of the post back functionality can be duplicated on the client side with AJAX. I fine jQuery makes a real easy job of this. So that is all that you need to ask your self when thinking of upgrading or deciding which route to take when planning your new application.

March 16, 2008 · 1 min · 121 words · Nick Berardi