Archive for the ‘AJAX’ Category.
December 15, 2008, 4:48 am
Today I found what I was looking for quite a while now: A magazine-like feed reader. Tabbloid (from HP!!!) is an online tool which lets you subscribe to your favorite feeds and delivers them bundled as a PDF magazine right to your mailbox. Its up to you if you want it daily or weekly. The whole service is pretty simple as it consists of only one form (which is fully ajaxed) and does not require any registration. Now I’m proud to have an HP notebook ;)
I dont know about you guys, but I am having some feeds which I usually read on weekends cause they tend to write long detailed articles. Its them I’ve added to my magazine which is delivered right before the weekend every Friday noon. The days where I used to be sitting bored on my pool are over now :) Great idea, perfect solution! Google will follow soon ;)

March 26, 2008, 10:41 am
wow, google recently released an API for their translation services called Google language API. Thats a good news but it even gets better! The api is really easy to use and applications can be boosted within minutes. The reference can be found here
Here is a quick example of how to translate something...
JAVASCRIPT:
-
google.language.translate('my mum is swimming', 'en', 'de', function(result) {
-
alert(result.translation);
-
});
and it gets better and even easier: its possible to let the API detect the language .. so nothing you have to take care about anymore.
JAVASCRIPT:
-
google.language.detect('Deutsch ist auch eine Sprache',
-
function(result) {
-
alert(result.language);
-
});
Further reading: An introduction to the language API and translation tools.
Now its time to come up with some nice little tools, widgets which use this service. "a user selects a paragraph an your page, clicks a button and suddenly the text is translated into the desired language".
December 18, 2007, 7:28 pm
i have updated ajaxed (classic asp ajax library) to its 0.3 version. Thanks to all contributors who helped me with their feedback. Here are the updates... Continue reading ‘ajaxed 0.3 released’ »
July 2, 2007, 12:50 am
My last post (about an ASP RSS component) included a demonstration which made use of a cool ajax technique simply called "ajaxed". See the demonstration here again. If you play around you will recognize that there is no conventional postback and AJAX is up in here ;) I have developed a small "library" which easily allows you to call server side ASP VBScrtipt procedures from the client side. No low-level Ajax knowledge is required... Continue reading ‘ajaxed: Calling server side VBScript procedures from client side (equivalent to PHP xajax)’ »
April 26, 2007, 5:18 pm
When working with JSON it's nice to have a generator for your language which transforms all the datatypes from your chosen programming language into the JSON grammar so that you can use them within javascript. For a lot of popular languages it's done already (i suppose) but I haven't found one for classic ASP .. so here it comes. The following example quickly demonstrates what the goal is:
ASP:
-
set RS = getRecordset("SELECT * FROM table")
-
response.write((new JSON).toJSON("rows", RS))
A simple usage of JSON normally is that you create a page which outputs data as JSON as the only response. This page is called later from another page and the returned data is used within a javascript function (known as callback). So the snippet above gets some data from the database and stores it in an adodb.recordset which is passed then to the JSON generator and the result is printed on the page. The consuming page would like to access the data now as it originally was within the recordset. like this:
JAVASCRIPT:
-
function callback(rows) {
-
for (i = 0; i <rows.length; i++) {
-
alert(rows[i].columName);
-
}
-
}
read on to get the details... Continue reading ‘Generate JSON from VBScript (ASP) datatypes’ »
April 26, 2007, 11:14 am
If you are into advanced AJAX techniques you probably will stumble across JSON (www.json.org) which makes developing (and therefore the life) a lot easier when working with AJAX. If you already stumbled across and you use JSON within classic ASP you might find this article useful. It deals with escaping characters for JSON acording to the RFC4627#2.5 Continue reading ‘JSON character escaping function in classic ASP’ »