xmlns="http://www.w3.org/2005/Atom" xmlns:thr="http://purl.org/syndication/thread/1.0" xml:lang="en" xml:base="http://www.flensed.com/fresh/wp-atom.php" > the Fresh! the latest from flensed 2009-09-22T21:35:19Z WordPress http://www.flensed.com/fresh/feed/atom/ getify http://www.flensed.com <![CDATA[SXSWi 2010 Voting is on! Votes needed!]]> http://www.flensed.com/fresh/?p=167 2009-08-21T13:29:32Z 2009-08-21T13:17:23Z Vote for 'Dude, where's my UI architecture?' Go vote for “Dude, where’s my UI architecture?” for SXSWi 2010! That’s right, your’s truly is hoping to speak about improving UI architecture for the SXSWi 2010 event.

This is a topic I’m very passionate about and I hope I can count on your support to help the talk get picked for the event. There’s over 3000 submissions for only 300 spots, so every vote counts!

Also, there’s lots of other great technical topics to vote on. I’ve started a list of a few I’m stoked about on this linked-in thread, so if you’re feeling generous, lend some votes their way as well.

]]>
0
getify http://www.flensed.com <![CDATA[Improved event support for flXHRproxy plugins for jQuery, Dojo, Prototype, and Mootools!]]> http://www.flensed.com/fresh/?p=160 2009-07-10T00:49:51Z 2009-07-10T00:49:51Z Thanks to Zohaib (MaXpert), flXHR now has a flXHRproxy plugin for Mootools! If you’re using Mootools and doing cross-domain Ajax, flXHRproxy is your new best friend!

Also, inspired by the code we worked out for the Mootools plugin, I have released updates to the jQuery plugin, Dojo plugin, and the Prototype plugin. These three plugins now play nicely with each respective framework’s built in error mechanism for normal Ajax calls.

Prior to this release, error handling was only possible by manually setting the “onerror” property in the flXHR instance configuration properties. This same functionality is still supported. But now the recommended approach is to specify your error callbacks directly in your Ajax/Xhr calls as you normally would. Note: Do only one or the other, not both, to avoid duplicate callback execution in some circumstances.

Now that flXHRproxy is more tightly integrated with each framework’s event mechanism, the ease with which you can make cross-domain Ajax calls just keeps getting better and better! Really, what excuse do you still have for not using flXHR for your next cross-domain Ajax call?

One last note: the jQuery update also includes one additional change. The “success” callback function signature is now extended to include a third parameter, which is set to the flXHR instance (XHR) that generated the call/response. This makes it much easier to determine which specific Ajax call the response comes from.

]]> 0
getify http://www.flensed.com <![CDATA[Some Javascript/Ajax projects: “LABjs” and “mpAjax”]]> http://www.flensed.com/fresh/?p=144 2009-08-06T14:10:58Z 2009-06-29T20:15:57Z I wanted to slightly diverge from flensed project discussions for this post to talk briefly about two other projects I’ve recently released. The reason for talking about them here is that one or both of them may find some cooperative use or even code sharing with flXHR/flensed in the next version releases, so there is a symbiotic relationship between them.

The first project is called LABjs (Loading And Blocking JavaScript). Put simply, this is a little tool (2.5k compressed) that lets you load Javascript assets dynamically, in parallel, but still allows you to define “blocking”, which is to wait for one or a set of scripts to load before executing other code, such as perhaps loading more scripts.

The main purpose of LABjs is to load scripts dynamically, in parallel, instead of old-school <script> tags which only load one at a time, and block everything else on the page. This significantly speeds up your page load. At the same time, you do sometimes still need to block and wait for some script to get loaded before doing other things. So, you get both in one simple loader API.

For instance, say you’re on a page that needs jQuery, but also needs a number of jQuery plugins. You need to load jQuery core itself, blocking on that download, and the ideally load all the other plugin files afterwards, in parallel, to get the page rendered and functional as quickly as possible. LABjs makes this type of functionality drop-dead simple.

So, this old style of <script> tags:

<script src="http://www.flensed.com/jquery.js"></script>
<script src="http://www.flensed.com/jquery.myplugin1.js"></script>
<script src="http://www.flensed.com/jquery.myplugin2.js"></script>
<script src="http://www.flensed.com/jquery.myplugin3.js"></script>

Becomes:

$LAB
.script("jquery.js")
.block()
.script("jquery.myplugin1.js")
.script("jquery.myplugin2.js")
.script("jquery.myplugin3.js")
.block(function(){
    // init myplugin1, 2, and 3
});

LABjs is now in v0.7, and is demo’d and hosted on: http://labjs.com.

As I said, this type of loading logic is powerful and clean, and will probably replace the code loading logic in flensed/CheckPlayer/flXHR projects for their next releases.

Joe McCann wrote a great blog post describing and showing off the LABjs tool.

Next up, I’m gonna talk about mpAjax, which allows for easy parsing of multi-part Ajax responses.

]]>
0
getify http://www.flensed.com <![CDATA[Twikini – a great twitter tool for Windows Mobile]]> http://www.flensed.com/fresh/?p=137 2009-05-24T20:43:50Z 2009-05-24T20:40:55Z Allow me to take a quick break from writing about cross-domain Ajax, flXHR, and other such geeky things. I will be brief in mentioning an application I just ran across and my suggestion you take a look at it.

I recently switched phones to the Samsung Propel Pro. This is a big switch for me, as I’ve been on the Treo line of phones, with PalmOS, for a very long time (since before most of you knew what a smartphone was).

Actually, I’m really just biding my time until the Palm Pre is released in GSM/unlocked form (non-Sprint), hopefully sometime early next year. Mobile phone vendors, if you are listening, the better future for mobile app development is in Javascript/HTML/CSS stacks, not these proprietary hinderances we’ve been forced to endure for so long.

For now, naturally, I have to replace all my old mobile applications with ones that will work for the Windows Mobile 6.1 Standard OS that Propel Pro runs. No small task as it turns out.

The real trick is that Propel Pro doesn’t run “Classic” or “Professional”, because it doesn’t have a touchscreen. This causes many problems with a lot of WinMob apps, because they are all written assuming a touch screen, and so those apps fail for those of us unfortunate (or fortunate, depending on how you look at it!) to not have touchscreens on our smart phones.

In any case, as my quest continues to find mobile apps that will work on my touchscreen-less phone, I finally found a twitter client that works well for me. @Twikini. Strange name, but a solid app none-the-less.

Twikini screenshot

I’m particularly impressed by how usable the app is despite its “burden” of being without a touch-screen. On any tweet update, you can move the directional control left to do a “@reply” to the author, and right will give you a “RT @” retweet with the text already quoted. These two simple tasks have become so ingrained into DNA of what tweet’ing is about, it’s nice to see that they didn’t have to be buried in some menu option or rely on some fancy finger guesture to get at. They are quite literally at your fingertip, and I find that smart and well executed.

And the best part? The app costs just $4.95. What could be even better than that? It’s actually free! That’s right, all you have to do is write a simple blog post, like this one, and they give it to you for free. Genius, huh!?

Check out Twikini on twitter and by all means, if you have a Windows Mobile 6.1 STANDARD phone like I do, check out the app for yourself!

PS. Though this app unfortunately doesn’t do so (maybe they will, I can only hope!), if you are writing any kind of mobile app, you should be using PhoneGap!

]]>
0
getify http://www.flensed.com <![CDATA[flXHR gets some Prototype love, cross-domain Ajax wins!]]> http://www.flensed.com/fresh/?p=128 2009-05-22T14:58:27Z 2009-05-22T14:41:04Z In the wake of the jQuery flXHRproxy and Dojo flXHRproxy plugins recently released, Prototype was unfortunately left out of having a good solid plugin for flXHR… until now!

Austin resident Prototype guru Andrew Dupont recently wrote an initial version of the plugin, which I then modified and tested, and we now have a great plugin for Prototype to support flXHR in the same way as the other frameworks.

Just like with the other framework plugin versions, you simply call ‘registerOptions(…)’ to register a URL (or partial URL) destination target and a set of flXHR options to be used for that location. Then, when you later make various Ajax calls, Prototype will internally figure out if you are calling to a location that is registered and will use flXHR with the options you specified.

There is simply no other way to get easier cross-domain Ajax with Prototype than with flXHR and flXHRproxy. Take a look at flXHRproxy documentation or give the Prototype+flXHR demo a whirl.

Typical page usage might look like this:

Ajax.flXHRproxy.registerOptions('http://www.mydomain.com/',{xmlResponseText:false...});
Ajax.flXHRproxy.registerOptions('http://rss.mydomain.com/',{xmlResponseText:true...});
...
Ajax.Request('http://www.mydomain.com/something.html',{...});
...
Ajax.Request('http://rss.mydomain.com/feed.html',{...});

Enjoy the new world of possibilities and fun that Prototype and flXHRproxy now gives you for doing easy cross-domain Ajax!

]]> 0