Programming
Friday, December 16th, 2005
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…
Thursday, December 15th, 2005
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…
Wednesday, December 14th, 2005
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…
Monday, December 5th, 2005
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…
Thursday, December 1st, 2005
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…
Thursday, November 24th, 2005
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…