Archive for the ‘JSON’ Category

ASP JSON utility version 1.5 released

1 Star2 Stars3 Stars4 Stars5 Stars (3 votes, average: 5 out of 5)
Loading ... Loading ...
Thursday, July 10th, 2008

Its long time ago since there has been an update to the JSON utility class. Thats because its working very stable thanks to your support! Nevertheless we have a new version with new features and some minor bugfixes. The following has been updated: (more…)

ASP JSON utility class 1.4 released

1 Star2 Stars3 Stars4 Stars5 Stars (3 votes, average: 4.67 out of 5)
Loading ... Loading ...
Tuesday, December 18th, 2007

I did check all your comments on the JSON utility class and fixed the existing bugs. The new changes are available in version 1.4 which is available for download now. I really appreciate your help by posting your comments and solutions. Most of them have been considered in the new version. Have fun and please keep me informed about new issues.

Download JSON 1.4

JSON Utility class 1.3 released

1 Star2 Stars3 Stars4 Stars5 Stars (10 votes, average: 3.9 out of 5)
Loading ... Loading ...
Tuesday, August 21st, 2007

The summer here in Austria is really hot this year and therefore I had not much time to do a lot for webdevbros. Enjoying the sun as much as possible ;) However I was very happy about getting a big amount of feedback for my JSON utility class which showed me that you guys out there are using it. Thanks for that! As a gift for that I spent some time to update the class and released a 1.3 version. Changes are the following:

  • The class can easily be used with “Option Explicit” now
  • Multidimensional arrays are supported (unlimited dimensions)

Go to the download and grab your version. It is backwards compatible so it is not a problem to override your old version .. hopefully you didnt change anything ;). Have fun with it and feedback is welcomed.

ajaxed: Calling server side VBScript procedures from client side (equivalent to PHP xajax)

1 Star2 Stars3 Stars4 Stars5 Stars (45 votes, average: 4.58 out of 5)
Loading ... Loading ...
Monday, July 2nd, 2007

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… (more…)

Generate JSON from VBScript (ASP) datatypes

1 Star2 Stars3 Stars4 Stars5 Stars (62 votes, average: 4.45 out of 5)
Loading ... Loading ...
Thursday, April 26th, 2007

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:
  1. set RS = getRecordset("SELECT * FROM table")
  2. 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:
  1. function callback(rows) {
  2.    for (i = 0; i <rows.length; i++) {
  3.       alert(rows[i].columName);
  4.    }
  5. }

read on to get the details... (more...)

JSON character escaping function in classic ASP

1 Star2 Stars3 Stars4 Stars5 Stars (13 votes, average: 4.23 out of 5)
Loading ... Loading ...
Thursday, April 26th, 2007

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 (more...)