Programming


Friday, December 16th, 2005

Business Logic: Server or Browser?

Category: Programming

Eric Pascarello says keep business logic in the server for speed and security. Security: (A)nything that is rendered in a browser is basically “Open Source” since there is no way to really protect it. All of this information is “downloaded” into the cache so everyone has a copy of it. You can destroy all the Read the rest…

Posted by Michael Mahemoff at 2:04 pm
7 Comments

+++--
3.1 rating from 7 votes

Thursday, December 15th, 2005

Yahoo! JSON API

Category: Programming, Remoting, Security

Simon Willison, now at Yahoo!, reports that Yahoo! has JSONified itsAPI: As of today, JSON is supported as an alternative output format for nearly all of Yahoo!’s Web Service APIs. This is a Really Big Deal, because it makes Yahoo!’s APIs available to JavaScript running anywhere on the web without any of the normal problems Read the rest…

Posted by Michael Mahemoff at 6:51 pm
7 Comments

++++-
4.2 rating from 13 votes

Wednesday, December 14th, 2005

Javascript closures for object oriented Ajax

Category: Articles, JavaScript, Programming, Prototype

Alex Vollmer has posted a nifty article on using closures for object oriented ajax, using Prototype’s Ajax.Request object as the example. Many developers coming from the more static Java/C++/C# worlds have problems wrapping their head around closures when they first start doing ajax work with callbacks for XHR. Alex’s writes: …a closure allows JavaScript to Read the rest…

Posted by Rob Sanheim at 1:35 pm
1 Comment

+++--
3.9 rating from 12 votes

Monday, December 5th, 2005

Dynodes: Cross-Domain JS Demo

Category: JavaScript, Programming, XmlHttpRequest

Another cross-domain scripting effort: Dynodes is a demo of cross-domain scripting using the On-Demand Javascript trick. It’s “Dynodes” because the script tag is created via DOM manipulation. var remoteScript=document.createElement(‘script’); remoteScript.id = ‘rs’; remoteScript.setAttribute(‘type’,’text/javascript’); remoteScript.setAttribute(‘src’,’http://www.speculations.com/bar_js.php’); var hd=document.getElementsByTagName(‘head’)[0]; // Gotcha: set attribute and src BEFORE appending, or Safari won’t work hd.appendChild(remoteScript); The script tag is repeatedly created Read the rest…

Posted by Michael Mahemoff at 3:46 pm
1 Comment

+++--
3.6 rating from 20 votes

Thursday, December 1st, 2005

QuirksBlog: JavaScript and “Serious” Programmers

Category: Programming

Peter-Paul Koch asks: Who will create the AJAX apps? In his view, client-side programmers aren’t qualified: I think that client side programmers can use a bit of education in application design and software development. Typically, our scripts are rather small, both in extent of user interaction and in number of lines, and they don’t constitute Read the rest…

Posted by Michael Mahemoff at 12:41 am
16 Comments

+++--
3.4 rating from 7 votes

Thursday, November 24th, 2005

AHAH: Asychronous HTML and HTTP

Category: Ajax, Programming

The Microformats people have been talking about a minimalist subset of Ajax: Asychronous HTML and HTTP (AHAH). In AHAH, HTML snippets are injected directly onto existing elements. There’s also a tiny library function available that accepts two arguments: a page element and a URL for the HTML snippet. In Kevin Marks’ demo, “change” is a Read the rest…

Posted by Michael Mahemoff at 3:25 pm
14 Comments

++++-
4 rating from 24 votes