Archive for the ‘ajaxed’ Category.
July 11, 2007, 12:27 pm
Hey it is really cool that one of the most popular Ajax websites (Ajaxian) have posted a short article about the ajaxed Library. Thanks to Dion Almaer who wrote about it. I like the comments there where ppl are talking about ASP and ASP.net. Especially the first one is funny:
Ian: Just who the hell is having to use Classic ASP still?… oh.. wait.. thats me! Thanks, Dion!
I have done some updates and the version 0.2 is coming soon guys…
July 3, 2007, 11:28 am
I thought its better to create an own page dedicated to the ajaxed Library. It is easier to follow the current changes, bugs, feature requests, etc. The page can be found in the menu on the right or just here. Because I got some nice feedback I will come up with more tutorial within the next weeks. Promise ;)
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’ »