Monday, November 08, 2010 at 12:06 AM.

on iqLoggedIn ( connection, mesAdr, iq, query) {
		<<5/14/02; 1:51:34 PM by JB
			<<Changelog created.
	<<This script handles the response from the server if the login is successful
	try {
		local ( type, iqTag, idTbl );
		iqTag = xml.getAddress ( mesAdr, "iq" );
		type = xml.getAttribute(iqTag, "type")^;
		if type == "result" and connection^.state == "LOGGING IN" {
			connection^.state = "LOGGED IN";
			semaphore.unlock(connection^.loginSemName)}; // unlocks the open connection
		if type == "result" and connection^.state == "CREATING ACCOUNT" {
			connection^.state = "ACCOUNT CREATED";

This listing is for code that runs in the OPML Editor environment. I created these listings because I wanted the search engines to index it, so that when I want to look up something in my codebase I don't have to use the much slower search functionality in my object database. Dave Winer.