07.14.2010

Dynamically Create vCard Download from LotusScript

Tags: LotusScript development vCard WebDevelopment

Reading Matt's entry about the content-disposition http header reminded me of a LotusScript agent I wrote recently which also uses this technique.

I have created a nice looking office locator for one of our clients which uses the Google Maps API and Dojo Toolkit to display the results. For every office you can also download a vCard which is dynamically created from a company record stored in a Notes document*. The vCard is created by an agent which is called with the UNID of the company doc in a URL parameter. The agent created the vCard text and returns it as an attachment with a custom file name using the aforementioned content-disposition http header.

Please read on for the agent code.

02.08.2008

Complicated? Yes!

Tags: development WebDevelopment
Today I received an email from a customer with an attached database. A ready designed and tested version which should go to production at the beginning of march. Attached was also a short documentation.
Because I didn't know the developer I seriously looked at the document and the database. But while reading I felt there might be something wrong with this application. No description of how to set the ACL. No description of the included agents. No description of the configuration within the database. Nothing. But hey, what is the test environmet for? So I took the nsf, copied it to the server and had a look.
Launch options for browser opens a frameset. And the frameset opens a welcome page and a form. After starting from the browser, there was an agent printing the following to the server console three times a second:

HTTP Server: Agent 'AgentName' error: Object variable not set

I closed the browser and the message was gone. Next step: a look to the form in the Designer. The form contains some fields, some buttons and some html. And there were two JavaScripts: JS Header and onLoad. I found the agent causing the error in one of the Buttons started with a @Command. But I didn't see the button in the browser and so I didn't press it. The Notes Hide when's were empty but I've found somethingin the Button Extra HTML: ID: button, Style: display=none. But where the heck is the developer starting the agent? There must be something I've overseen. Then I looked into the onLoad JavaScript and gues what I've found:

document.all.button.click()

This is the first agent I've seen, which is started on the web by a hidden button clicked from a JavaScript.

I don't think this application will be used on our production server in march...

Shoot the developer!

12.11.2006

Using IE6 and IE7 to test web applications

Tags: WebDevelopment

Since the release of Microsoft Internet Explorer 7 many web developers need to test their applications in IE6 and in IE7. There are several ways to accomplish this.

You can use two separate machines. Tor prevent one machine from upgrading automatically you can install Microsoft's Internet Explorer 7 Blocker Toolkit (which also includes a template for group policies) or you can set the DWORD registry key DoNotAllowIE70 in
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\Setup\7.0
to 1 on single machines.

You may also want to install IE6 and IE7 in parallel which is described in Manfred Staudinger's article Taming Your Multiple IE Standalones (which I haven't tried yet).

The solution Microsoft offers is a Virtual PC image (Internet Explorer 6 Application Compatibility VPC Image) containing a pre-activated Windows XP SP2, IE6 and the IE7 readiness toolkit. The image expires on April 1st, 2007 but that leaves at least some time for us developers.

Search

Calendar

MiscLinks

We Use Ytria Lotus Notes Tools For Faster Notes Development and Better Domino Administration

Tags

Site Info