Submitted by Kenneth Axi on Jul 14, 2010 2:42:24 AM

Integrating Ajax into traditional IBM Lotus Domino Web applications

I also see a minor flaw in the code... If the agent returns the error "result = "Error: did not find document for that employee""

then the JavaScript will not produce an ARRAY with three items and the code will fail when You try to access array[1] and array[2]. You therefore must process the JavaScript to check for the error first before creating the array.

Submitted by Kenneth Axi on Jul 14, 2010 2:37:08 AM

Integrating Ajax into traditional IBM Lotus Domino Web applications

It is unnecessary complicated to process the agent result with JavaScript when You have this format in the response from the agent:

Response Text

Instead; Change the format of the result to a TRUE XML response by changing the output in the agent:

Print |Content-Type:text/xml| & Chr$(13)

Print result

This will override the default creation of HTML tags and You will now have absolute control over the response text. It can now be only text or XML formatted response. This will make it MUCH easier to process the xmlHttp.responseText() - not necessary to use indexOf etc... just process the text as-is!

Submitted by jaggu eedara on Jun 5, 2010 11:43:18 PM

Integrating Ajax into traditional IBM Lotus Domino Web applications

Nice Info... regarding AJAX in DOMINO

Thanks alot, its helping me alott!!