Archive for the ‘classic ASP (VBScript)’ Category.
June 28, 2007, 7:16 pm
You might know it from other plattforms but hardly seen it in classic ASP apps: Templates. Some time ago I have written a Template component which i recently updated and decided to make it publicly available. It allows you to load a template file and replace its placeholders with actual values. It comes up with featues like e.g. repeating blocks Continue reading ‘Template component for classic ASP’ »
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’ »
March 30, 2007, 9:56 am
Today I was browsing through the microsoft.public.inetserver.asp.general newsgroup and found a nice article linked within a topic where people are talking about classic ASP and its brother .net. The article outlines 8 reasons to stick with the good old classic ASP ... Unfortunately I cannot really figure out when the article was written but i think it must be quite recent because they bring up VS2005 and web 2.0.
As I have done already some projects with .net I love this statement (refers to web-projects):
Sluggish is a word to describe the whole of the .NET development environment. Starting a new project? Go make a cup of coffee. Switching between tabs? 'Go large' with your coffee. Pressing F1 for help? Make your coffee a take-out and go and have a stroll in the park.
http://www.packtpub.com/article/Classic-ASP
December 4, 2006, 12:00 am
Some weeks ago I had to build a couple of regular expressions for my classic ASP apps and I was sick of playing around directly in the code. For this purpose I've created a small web tool which helps me playing & testing around directly in a web form. Type in a regex pattern, set some options and test if it executes as desired or not.
The tool is available at Continue reading ‘VBScript Regular Expression builder’ »
November 26, 2006, 12:00 am
While I was testing my web apps in the new Internet Explorer 7 I discovered that sometimes a page is not rendered properly after a refresh. After some testing I realized that somehow the browser is randomly showing a blank (white) page when I hit the reload button a couple of times. The interesting thing was that when I viewed the sourcecode everything was there but the page wasn't displayed at all. I did some research and found the reasons/solutions for it. Continue reading ‘IE7 Bug: Blank page (white screen) after some refresh’s’ »
November 20, 2006, 6:47 pm
I've just thought of extracting another class of my framework called StringOperations and publish it on here for free use because I think there are some useful things in it which you need for everyday work. Beside that it includes some functions which are also available in the .net framework. So whenever you have to deal with classic ASP again and you want to have a more powerful base for your work then this is a must. Continue reading ‘Collection of VBScript string functions for classic ASP’ »
November 18, 2006, 6:25 pm
As I have written my own framework for building web based applications with classic ASP I thought of posting some classes, components, controls, etc. on here. The complete framework is not publicly available (yet). Nevertheless I want to publish some fragments of it here if they are somehow standalone, so its not a real mission to use them without the full framework.
Lately I needed to write a RSS component which reads all kind of RSS Feeds, writes its own and so on. What's more is that I thought it would be nice to cache some RSS Feeds for all users on the server. Especially the ones which arent updated so often. Thats a nice thing because normally we would send a request to the server where the feed is located and this may take some while (depending on the network) whereas with the cache we could get it directly from our server if it has not expired yet. Continue reading ‘Cache object for classic ASP’ »
November 17, 2006, 12:00 am
Everyone who gets in touch with classic ASP should have a look at www.aspforum.de. Thats one of the best resources for classic ASP. Response time is extremely good and participants have really good knowledge about web scripting. Unfortunately the language is German.